I want a rule to Power On my Sony TV, controlled by a Global Caché ItachIR device, when I say “Alexa Télé”.
As explained in the Global Caché Binding doc I have the following configuration:
.items
String SonyTV {channel=“globalcache:itachIR:000C1E0248C0:ir_m1#c3”}
.map
SonyTV_PowerOn = 40000,4,1,96,24,24,24,48,24,48,24,48,24,24,24,48,24,24,24,48,24,24,24,24,24,24,24,24,1013
.rules
rule “TV” //Power On TV on “Alexa Télé” voice command
when
Item amazonechocontrol_echoshow_e5e78250_G000WV069115071C_lastVoiceCommand changed to “télé”
then
SonyTV.sendCommand(“SonyTV_PowerOn”)
end
The rule starts on Alexa voice command but with no PowerOn action on the TV.
I have the following log:
18:43:09.706 [INFO ] [smarthome.event.ItemStateChangedEvent] - amazonechocontrol_echoshow_e5e78250_G000WV069115071C_lastVoiceCommand changed from to télé
18:43:09.768 [INFO ] [smarthome.event.ItemCommandEvent ] - Item ‘SonyTV’ received command SonyTV_PowerOn
18:43:09.784 [INFO ] [arthome.event.ItemStatePredictedEvent] - SonyTV predicted to become NULL
For information when I am replacing in the rule ‘SonyTV’ by ‘globalcache_itachIR_000C1E0248C0_ir_m1_c3’ it works and that is an OK workaround but I am trying to learn how to properly use OpenHab and I would like to understand why the SonyTV item approach does not work.
Any help is welcome