I have a few rules running in OpenHab 1.8, but I can’t find a solution to the following issue.
If I put the following rule it works.
rule "Shut Media Blind"
when
Item HarmonyMActivity changed
then
logDebug(“Harmony”, “Activity”, HarmonyMActivity)
sendCommand(WindowCoveringStatus, OFF)
end
But I need the rule to only trigger for some activities, so I put the following, as well as several other options, but I can’t get the rule to trigger.
when
Item HarmonyMActivity changed to "Waych TV"
then
From my items file, HarmonyMActivity is defined as follows.
String HarmonyMActivity “activity [%s]” (GP1) { harmonyhub="*[Media:currentActivity]" }
I can’t even find the value of HarmonyMActivity by doing a logDebug.
I also tried checking the value of HarmonyMActivity inside the then clause, but this did not work either.
Does anyone know the correct way to determine the triggered activity on the Harmony binding?