[SOLVED] How to set up switch mapping other than ON/OFF

You definitely need to use a String item.
In this case your rule needs to look like this:

rule “bedroomac”
when
Item bedroomac received command
then
if (receivedCommand=="on" ) {

Please note that you need to use “” for a string to be compared.

1 Like