Elk not noticing counter value changed by UltraM1G?
Hello, I having a problem with Elk detecting changes to a counter set through UltraM1G (current version). I know that I am setting it correctly through a HS EVENT since I can see the counter (announce_elk) value (0 or 1) changing under Counters in the UltraM1G page. The time/date stamp change as well.
But Elk does not notice this change. Elk does notice when I do this with a F1 keypad toggle using this logic in Elk:
WHENEVER F1 KEY ON ANY KEYPAD ACTIVATES
THEN TOGGLE announce_elk (Counter 8) BETWEEN 0 AND 1
** The next several lines below only work with the F1 toggle above and not when UltraM1G sets the counter
WHENEVER announce_elk (Counter 8) CHANGES TO 1
THEN DISPLAY "Announce ON" IN Our House (Area 1) INDEFINITELY,[*]CLEARS
THEN SET CHIME TO DING AND VOICE IN Our House (Area 1)
WHENEVER announce_elk (Counter 8) CHANGES TO 0
THEN DISPLAY "Announce OFF" IN Our House (Area 1) INDEFINITELY,[*]CLEARS
THEN DISABLE CHIME IN Our House (Area 1)
Am I missing something? I have reloaded my entire Elk settings to UltraM1G and no errors come up in the HS log.
I'm using an Event and set the action:
Add Action > Elk M1 Counter > Select Counter (I then select the counter name and value).
Here is my log:
2/20/2011 9:04:33 AM - Event - Event Trigger "Announce On"
2/20/2011 9:04:33 AM - UltraM1G Debug - Entered TriggerAction() function.
2/20/2011 9:04:33 AM - UltraM1G Debug - Entered ActionUIFormat() function.
2/20/2011 9:04:33 AM - UltraM1G Debug - ActionUIFormat() received string: UltraM1GElk M1 Counter-Counter 081
2/20/2011 9:04:33 AM - UltraM1G Debug - ActionUIFormat() return string: Counter 08 [announce_elk] Set Value: 1 Notes:
2/20/2011 9:04:33 AM - UltraM1G Debug - Entered ActionUIFormat() function.
2/20/2011 9:04:33 AM - UltraM1G Debug - ActionUIFormat() received string: UltraM1GElk M1 Counter-Counter 080
2/20/2011 9:04:33 AM - UltraM1G Debug - ActionUIFormat() return string: Counter 08 [announce_elk] Set Value: 0 Notes:
2/20/2011 9:04:33 AM - UltraM1G Debug - TriggerAction() received string: UltraM1GElk M1 Counter-Counter 081
2/20/2011 9:04:33 AM - UltraM1G Debug - Entered WriteCounterValue() function.
2/20/2011 9:04:33 AM - UltraM1G Debug - WriteCounterValue() is writting custom value 08 1.
2/20/2011 9:04:33 AM - UltraM1G Debug - Sending command: 'cx080000100' to Elk M1, attempt # 1
2/20/2011 9:04:33 AM - UltraM1G Debug - Entered SendToM1G() function.
2/20/2011 9:04:33 AM - UltraM1G Debug - Sending 0Dcx080000100F8 to M1G via Ethernet.
2/20/2011 9:04:33 AM - UltraM1G Debug - Waiting for the M1 to respond with 'CV' for up to 1.5 seconds...
2/20/2011 9:04:34 AM - UltraM1G Debug - Entered ProcessReceived() function with a string '0DCV0800001003A'
2/20/2011 9:04:34 AM - UltraM1G Debug - Entered ProcessCommand() subroutine.
2/20/2011 9:04:34 AM - UltraM1G Debug - Command CV response received by Elk M1.
2/20/2011 9:04:34 AM - UltraM1G Debug - Processing response [CV]
2/20/2011 9:04:34 AM - UltraM1G Debug - Waited 102 milliseconds for the command response.
2/20/2011 9:04:36 AM - Event - Event Trigger "Announce Off"
2/20/2011 9:04:36 AM - UltraM1G Debug - Entered TriggerAction() function.
2/20/2011 9:04:36 AM - UltraM1G Debug - Entered ActionUIFormat() function.
2/20/2011 9:04:36 AM - UltraM1G Debug - ActionUIFormat() received string: UltraM1GElk M1 Counter-Counter 081
2/20/2011 9:04:36 AM - UltraM1G Debug - ActionUIFormat() return string: Counter 08 [announce_elk] Set Value: 1 Notes:
2/20/2011 9:04:36 AM - UltraM1G Debug - Entered ActionUIFormat() function.
2/20/2011 9:04:36 AM - UltraM1G Debug - ActionUIFormat() received string: UltraM1GElk M1 Counter-Counter 080
2/20/2011 9:04:36 AM - UltraM1G Debug - ActionUIFormat() return string: Counter 08 [announce_elk] Set Value: 0 Notes:
2/20/2011 9:04:36 AM - UltraM1G Debug - TriggerAction() received string: UltraM1GElk M1 Counter-Counter 080
2/20/2011 9:04:36 AM - UltraM1G Debug - Entered WriteCounterValue() function.
2/20/2011 9:04:36 AM - UltraM1G Debug - WriteCounterValue() is writting custom value 08 0.
2/20/2011 9:04:36 AM - UltraM1G Debug - Sending command: 'cx080000000' to Elk M1, attempt # 1
2/20/2011 9:04:36 AM - UltraM1G Debug - Entered SendToM1G() function.
2/20/2011 9:04:36 AM - UltraM1G Debug - Sending 0Dcx080000000F9 to M1G via Ethernet.
2/20/2011 9:04:36 AM - UltraM1G Debug - Waiting for the M1 to respond with 'CV' for up to 1.5 seconds...
2/20/2011 9:04:36 AM - UltraM1G Debug - Entered ProcessReceived() function with a string '0DCV0800000003B'
FYI, after this did not work, I created a task in Elk called AnnounceOnChange. So now I can set the counter exactly as above and send and an action to activate the task AnnounceOnChange as that does work. I use this Elk progrmming now:
WHENEVER AnnounceOnChange (Task 4) IS ACTIVATED
AND announce_elk (Counter 8) IS EQUAL TO 1
etc.... turn on chime
So two things that I need to change. I could just create two tasks called AnnounceOn and AnnounceOff but I need to track the status so I need to set a counter variable.
Sonny