[SOLVED] Rule with harmony hub

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

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

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

Or better:

HarmonyHubWKSamsung.sendCommand("PowerOff")

Yours did the trick.

Thanks