Hello everyone!
I’m starting to work with Openhab and a Global Cache GC100-12. Following the documentation I was able to send IR signals but I can not control the contact closure ports. Everything seems simple, but I had no response from the GC100.
Switch gc100cc1 { channel="globalcache:gc100_12:000C1E01B849:cc-m3#c1"}
Switch gc100cc1atv
sitemap map label="GC100" {
Switch item=gc100cc1atv
}
rule "cont"
when
Item gc100cc1atv received command
then
if(receivedCommand == ON) {
logWarn("myLog", "reebido on")
gc100cc1.sendCommand(ON)
}
else {
logWarn("myLog", "recebido off")
gc100cc1.sendCommand(OFF)
}
end
I appreciate any suggestions.
Thanks,
Anderson Voltolini