1) Give a description of the problem
I wrote a simple Piston to address out Ring Security System. I’m basing it off my cell phones presence. When my presence changes to not present I want to set our Ring Alarm to Away. When my presence changes to present I want to set our Ring Alarm to Home. So far it work not 100% of the time. It may set the alarm to away, but when I return home it never set’s it to Home.
BTW, I’m using Life360 with Life360+ in Hubitat.
2) What is the expected behaviour?
When I leave set the alarm to Away. When I return set the Alarm to hime.
3) What is happening/not happening?
It sometimes set’s it to Away but It never changes it back to home when I come home
4) Post a Green Snapshot of the piston
5) Attach logs after turning logging level to Full
9/30/2023, 2:38:06 PM +298ms
+9ms ╔Received event [Home Sweet Home].test = 1696099086298 with a delay of 1ms, canQueue: true, calledMyself: false
+110ms ║RunTime initialize > 108 LockT > 1ms > r9T > 84ms > pistonT > 81ms (first state access 13 m:23 11 97)
+123ms ║Runtime (8720 bytes) initialized in 84ms (v0.3.114.20230809_HE)
+127ms ║╔Execution stage started
+147ms ║║Comparison changes_to = false (event device/attr eXcluded)
+150ms ║║Condition #2 evaluated false (14ms)
+151ms ║║Condition group #1 evaluated false (condition did not change) (16ms)
+157ms ║║Comparison changes_to = false (event device/attr eXcluded)
+161ms ║║Condition #6 evaluated false (8ms)
+165ms ║║Condition group #5 evaluated false (condition changed) (10ms)
+170ms ║╚Execution stage complete. (43ms)
+179ms ╚Event processed successfully (171ms)
9/30/2023, 2:14:30 PM +732ms
+7ms ╔Received event [Wayne].presence = present with a delay of 383ms, canQueue: true, calledMyself: false
+25ms ║RunTime initialize > 23 LockT > 1ms > r9T > 4ms > pistonT > 0ms (first state access 11 m:18 8 15)
+41ms ║Runtime (6486 bytes) initialized in 4ms (v0.3.114.20230809_HE)
+45ms ║╔Execution stage started
+60ms ║║Comparison (enum) present changes_to (string) not present = false (1ms)
+63ms ║║Condition #2 evaluated false (12ms)
+67ms ║║Condition group #1 evaluated false (condition changed) (16ms)
+74ms ║║Comparison (enum) present changes_to (string) present = true (1ms)
+77ms ║║Condition #6 evaluated true (7ms)
+80ms ║║Condition group #5 evaluated true (condition changed) (11ms)
+285ms ║║Executed device command [Ring Virtual Alarm Hub].setMode(Home) (198ms)
+295ms ║╚Execution stage complete. (250ms)
+308ms ╚Event processed successfully (302ms)
REMOVE BELOW AFTER READING
If a solution is found for your question then please mark the post as the solution.