Implements StringItem/ implements change of state

StringItem to receive state to be able to know that a device is offline.