I added my hub through PaperUI. I added the following items:
String HarmonyCurrentActivity "Current Activity [%s]" {channel="harmonyhub:hub:FamilyRoomHub:currentActivity"}
String HarmonyStartingActivity "Starting Activity [%s]" {channel="harmonyhub:hub:FamilyRoomHub:activityStarting"}
String HarmonyActivityStarted "Activity Started [%s]" {channel="harmonyhub:hub:FamilyRoomHub:activityStarted"}
and I now see HarmonyCurrentActivity log entries when I start and stop activities with my remote control. Strangely I don’t see the activityStarting or activityStarted events, but they aren’t that important to me.
But what I want to do now is start and stop activities with rules. How do I do that?
rule "Armed away. Turn the TV off"
when
Item ArmUpState received update "Armed with Exit Timer working"
then
// turn the "watch tv" activity off
end