Harmony Activity Detect


#1

1) Give a description of the problem
Trying to detect the activity of a Harmony unit

2) What is the expected behavior?
When I turn my Harmony on, ie select activity, I want to detect that an activity started.

3) What is happening/not happening?
It doesn’t seem to detect that an activity has started.

**4) Post a Green Snapshot of the piston![image|45x37]

5) Attach any logs (From ST IDE and by turning logging level to Full)
+0ms ╔Received event [Home].execute = 72.161.53.28 with a delay of 92ms +106ms ║RunTime Analysis CS > 15ms > PS > 28ms > PE > 64ms > CE +116ms ║Runtime (38982 bytes) successfully initialized in 28ms (v0.2.0ff.20171129) (115ms) +117ms ║╔Execution stage started +132ms ║║Comparison (string) Watch Roku is (string) "ROKU" = false (2ms) +133ms ║║Condition #6 evaluated false (10ms) +141ms ║║Comparison (string) Watch Roku is (string) DVD = false (2ms) +143ms ║║Condition #7 evaluated false (8ms) +150ms ║║Comparison (string) Watch Roku is (string) Watch TV = false (1ms) +152ms ║║Condition #8 evaluated false (9ms) +153ms ║║Condition group #1 evaluated false (state did not change) (29ms) +155ms ║║Cancelling statement #11's schedules... +162ms ║║Sending internal web request to: 192.168.1.105:55001/UIC?cmd=%3Cname%3ESetVolume%3C/name%3E%3Cp%20type=%22dec%22%20name=%22Volume%22%20val=%2212%22/%3E


#2

I thought the harmony activity gets converted to virtual switches? You could just watch the status of those switches if they turn on/off?


#3

Yeah, I kinda just figured that out. The problem seems to be those switches don’t seem to update on their own. I have to do a refresh to get the current status.

And that brings me to the question I was just researching. If I create a piston to do a refresh on those say every 15 seconds or so will that be a problem? My timing on what i am doing is not critical so a 15 second delay is no problem. Even 30 seconds for that matter. I just didn’t know if that kind of repeat execution would be a problem or not.


#4

I refreshed my Harmony of every minute. Here’s a snapshot of my piston.


#5

I’m trying every 30 seconds. I had to do a refresh on the activities rather than the hub itself.

I just wanted to make sure it wasn’t a problem with overloading webcore by doing it that often.

Thanks for all the help.


#6

I got tired of listing the 20 or so activities. So i just did a hub refresh. That refreshes all activities.