Sending a state to an item, after splitting the state item

That just makes it difficult for you to manage and debug. They do not cost you anything.

Okay, that is a string

Strings do not have a .sendCommand() method.

There is a sendCommand("someItem", "someCommand") Action, you would need to give that two strings as arguments.

That’s a string as well.

Strings do not have a .state method.

Not so easy to work around this time, you need the technique to get hold of an Item object from its itemname string

1 Like