I have the Harmony item file
String HarmonyHubWK "Action [%s]" { hannel="harmonyhub:hub:HarmonyHub:currentActivity"} String HarmonyHubWKSamsung "Samsung" { channel="harmonyhub:device:HarmonyHub:57698079:buttonPress" }
sitemap
Switch item=HarmonyHubWKSamsung mappings=["PowerOff"="PowerOff","PowerOn"="PowerOn"]
rules
rule "beneden uit"
when
Item goodnight received update
then
Echo_Living_Room_TTS.sendCommand('Goodnight Peter and Desiree, sleep well')
sendCommand(HarmonyHubWKSamsung, PowerOff)
end
This does not work, it works at the sitemap, it does not work in the rules
please help
1 Like
vzorglub
(Vincent Regaud)
October 5, 2018, 4:31pm
2
I am sorry, what does that mean?
Ah,
when i press the buttons on the site map - the television goes on/of
when the rule triggers is does not work
vzorglub
(Vincent Regaud)
October 5, 2018, 4:43pm
4
Can you show the logs when you press the button and when the rule triggers, please?
Try:
sendCommand(HarmonyHubWKSamsung, "PowerOff")
The Item
is a String so likely expects a StringType command.
If you need further help you may want to post log snippet when the rule runs.
2 Likes
vzorglub
(Vincent Regaud)
October 5, 2018, 6:11pm
6
Or better:
HarmonyHubWKSamsung.sendCommand("PowerOff")