Hi there,
I’m sorry if this question has been asked before but I can’t find anything similar. I’m planning to put all remote control button of my air conditioner to OpenHAB sitemap. Right now i’m able to put in only ON/OFF for Switch item. It won’t take other values than ON/OFF.
May I know how and what item should I use if say I wanna use mappings = On, Off, 23C, 24C, 25C, Fan1, Fan2, Fan3 and such? I have tried item=string but still not working. Appreciate anyone could shed some light and thank you in advanced
Current config:
default.sitemap
Switch item=bedroomac label= "Bedroom Air Cond" mappings=[ON= "Turn On" , OFF= "Turn Off" ]
default.rules
rule "bedroomac"
when
Item bedroomac received command
then
if (receivedCommand==ON ) {
executeCommandLine("python /usr/share/openhab2/exec/BlackBeanControl.py -c room_ac_23")
}
else if (receivedCommand==OFF ) {
executeCommandLine("python /usr/share/openhab2/exec/BlackBeanControl.py -c room_ac_off")
}
end