does closing it reset that timer by default?
Conditions and Triggers: The difference?
just select the log text and paste it. also please post the piston green snapshot as is with trace on.
Log Text:
3/7/2018, 8:33:44 PM +381ms
+1ms âReceived event [Home].time = 1520472825823 with a delay of -1443ms
+179ms âRunTime Analysis CS > 24ms > PS > 66ms > PE > 89ms > CE
+182ms âRuntime (37838 bytes) successfully initialized in 66ms (v0.3.000.20180224) (181ms)
+183ms ââExecution stage started
+192ms ââCancelling condition #5âs schedulesâŚ
+192ms ââCondition #5 evaluated true (1ms)
+194ms ââCancelling condition #1âs schedulesâŚ
+195ms ââCondition group #1 evaluated true (state changed) (4ms)
+197ms ââCancelling statement #2âs schedulesâŚ
+364ms ââExecuted physical command [SONOS].playTextAndResume([Refrigerator door has been left open, 50]) (158ms)
+365ms ââExecuted [SONOS].playTextAndResume (160ms)
+395ms ââExecuted virtual command [SONOS].sendNotificationToContacts (21ms)
+398ms ââExecution stage complete. (215ms)
+400ms âEvent processed successfully (399ms)
3/7/2018, 8:28:45 PM +451ms
+1ms âReceived event [Refrigerator].contact = open with a delay of 1070ms
+352ms âRunTime Analysis CS > 24ms > PS > 233ms > PE > 95ms > CE
+355ms âRuntime (37843 bytes) successfully initialized in 233ms (v0.3.000.20180224) (353ms)
+356ms ââExecution stage started
+369ms ââComparison (enum) open stays (string) open = true (2ms)
+371ms ââAdding a timed trigger schedule for condition 5
+373ms ââCondition #5 evaluated false (10ms)
+374ms ââCondition group #1 evaluated false (state did not change) (12ms)
+377ms ââExecution stage complete. (21ms)
+379ms âSetting up scheduled job for Wed, Mar 7 2018 @ 8:33:45 PM EST (in 299.994s)
+388ms âEvent processed successfully (388ms)
3/7/2018, 8:28:27 PM +923ms
+1ms âReceived event [Refrigerator].contact = closed with a delay of 256ms
+152ms âRunTime Analysis CS > 18ms > PS > 47ms > PE > 88ms > CE
+155ms âRuntime (37840 bytes) successfully initialized in 47ms (v0.3.000.20180224) (154ms)
+156ms ââExecution stage started
+167ms ââComparison (enum) closed stays (string) open = false (2ms)
+170ms ââCancelling any timed trigger schedules for condition 5
+170ms ââCancelling statement #5âs schedulesâŚ
+171ms ââCondition #5 evaluated false (9ms)
+172ms ââCondition group #1 evaluated false (state did not change) (11ms)
+175ms ââExecution stage complete. (18ms)
+176ms âEvent processed successfully (176ms)
3/7/2018, 8:28:23 PM +435ms
+2ms âReceived event [Refrigerator].contact = open with a delay of 298ms
+192ms âRunTime Analysis CS > 24ms > PS > 64ms > PE > 103ms > CE
+195ms âRuntime (37841 bytes) successfully initialized in 64ms (v0.3.000.20180224) (193ms)
+196ms ââExecution stage started
+209ms ââComparison (enum) open stays (string) open = true (2ms)
+211ms ââAdding a timed trigger schedule for condition 5
+214ms ââCondition #5 evaluated false (11ms)
+215ms ââCondition group #1 evaluated false (state did not change) (13ms)
+218ms ââExecution stage complete. (21ms)
+219ms âSetting up scheduled job for Wed, Mar 7 2018 @ 8:33:23 PM EST (in 299.993s)
+226ms âEvent processed successfully (226ms)
3/7/2018, 6:48:48 PM +315ms
+1ms âReceived event [Home].time = 1520466529239 with a delay of -924ms
+156ms âRunTime Analysis CS > 27ms > PS > 46ms > PE > 82ms > CE
+158ms âRuntime (37839 bytes) successfully initialized in 46ms (v0.3.000.20180224) (157ms)
+159ms ââExecution stage started
+160ms ââExecution stage complete. (1ms)
+161ms âEvent processed successfully (161ms)
3/7/2018, 6:44:04 PM +175ms
+1ms âReceived event [Refrigerator].contact = closed with a delay of 1293ms
+179ms âRunTime Analysis CS > 22ms > PS > 64ms > PE > 93ms > CE
+182ms âRuntime (37841 bytes) successfully initialized in 64ms (v0.3.000.20180224) (179ms)
+182ms ââExecution stage started
+191ms ââComparison (enum) closed stays (string) open = false (1ms)
+193ms ââCancelling any timed trigger schedules for condition 5
+194ms ââCancelling statement #5âs schedulesâŚ
+194ms ââCondition #5 evaluated false (7ms)
+195ms ââCondition group #1 evaluated false (state did not change) (8ms)
+197ms ââExecution stage complete. (15ms)
+198ms âEvent processed successfully (198ms)
3/7/2018, 6:43:49 PM +80ms
+1ms âReceived event [Refrigerator].contact = open with a delay of 114ms
+144ms âRunTime Analysis CS > 18ms > PS > 42ms > PE > 84ms > CE
+147ms âRuntime (37840 bytes) successfully initialized in 42ms (v0.3.000.20180224) (146ms)
+148ms ââExecution stage started
+157ms ââComparison (enum) open stays (string) open = true (2ms)
+159ms ââAdding a timed trigger schedule for condition 5
+160ms ââCondition #5 evaluated false (8ms)
+161ms ââCondition group #1 evaluated false (state did not change) (9ms)
+163ms ââExecution stage complete. (16ms)
+165ms âSetting up scheduled job for Wed, Mar 7 2018 @ 6:48:49 PM EST (in 299.995s)
+174ms âEvent processed successfully (174ms)
3/7/2018, 6:43:41 PM +112ms
+1ms âReceived event [Refrigerator].contact = closed with a delay of 601ms
+183ms âRunTime Analysis CS > 24ms > PS > 68ms > PE > 92ms > CE
+304ms âRuntime (37840 bytes) successfully initialized in 68ms (v0.3.000.20180224) (302ms)
+305ms ââExecution stage started
+314ms ââComparison (enum) closed stays (string) open = false (1ms)
+316ms ââCancelling any timed trigger schedules for condition 5
+317ms ââCancelling statement #5âs schedulesâŚ
+318ms ââCondition #5 evaluated false (7ms)
+318ms ââCondition group #1 evaluated false (state did not change) (8ms)
+320ms ââExecution stage complete. (15ms)
+322ms âEvent processed successfully (321ms)
3/7/2018, 6:43:40 PM +81ms
+1ms âReceived event [Refrigerator].contact = open with a delay of 806ms
+474ms âRunTime Analysis CS > 21ms > PS > 366ms > PE > 87ms > CE
+477ms âRuntime (37842 bytes) successfully initialized in 366ms (v0.3.000.20180224) (475ms)
+478ms ââExecution stage started
+487ms ââComparison (enum) open stays (string) open = true (1ms)
+488ms ââAdding a timed trigger schedule for condition 5
+490ms ââCondition #5 evaluated false (7ms)
+491ms ââCondition group #1 evaluated false (state did not change) (9ms)
+493ms ââExecution stage complete. (15ms)
+495ms âSetting up scheduled job for Wed, Mar 7 2018 @ 6:48:40 PM EST (in 299.995s)
+528ms âEvent processed successfully (528ms)
3/7/2018, 6:09:35 PM +662ms
+1ms âReceived event [Home].time = 1520464176898 with a delay of -1236ms
+236ms âRunTime Analysis CS > 42ms > PS > 71ms > PE > 122ms > CE
+240ms âRuntime (37841 bytes) successfully initialized in 71ms (v0.3.000.20180224) (237ms)
+241ms ââExecution stage started
+242ms ââExecution stage complete. (2ms)
+243ms âEvent processed successfully (243ms)
3/7/2018, 6:04:40 PM +521ms
+1ms âReceived event [Refrigerator].contact = closed with a delay of 240ms
+201ms âRunTime Analysis CS > 24ms > PS > 66ms > PE > 112ms > CE
+205ms âRuntime (37841 bytes) successfully initialized in 66ms (v0.3.000.20180224) (202ms)
+206ms ââExecution stage started
+217ms ââComparison (enum) closed stays (string) open = false (2ms)
+219ms ââCancelling any timed trigger schedules for condition 5
+220ms ââCancelling statement #5âs schedulesâŚ
+221ms ââCondition #5 evaluated false (10ms)
+222ms ââCondition group #1 evaluated false (state did not change) (11ms)
+224ms ââExecution stage complete. (19ms)
+226ms âEvent processed successfully (226ms)
3/7/2018, 6:04:36 PM +487ms
+1ms âReceived event [Refrigerator].contact = open with a delay of 547ms
+392ms âRunTime Analysis CS > 23ms > PS > 68ms > PE > 301ms > CE
+395ms âRuntime (37841 bytes) successfully initialized in 68ms (v0.3.000.20180224) (393ms)
+396ms ââExecution stage started
+408ms ââComparison (enum) open stays (string) open = true (2ms)
+410ms ââAdding a timed trigger schedule for condition 5
+413ms ââCondition #5 evaluated false (11ms)
+414ms ââCondition group #1 evaluated false (state did not change) (12ms)
+417ms ââExecution stage complete. (20ms)
+418ms âSetting up scheduled job for Wed, Mar 7 2018 @ 6:09:36 PM EST (in 299.993s)
+426ms âEvent processed successfully (426ms)
Snapshot:
I should note that I can verify the fridge was completely shut and had been for at least a minute or so before the announcement went off. I can also verify that it had not been left open for 5 mins prior to that at any point this evening.
thanks. here is a trimmed down version of the log:
3/7/2018, 8:33:44 PM +381ms
+1ms âReceived event [Home].time = 1520472825823 with a delay of -1443ms
+179ms âRunTime Analysis CS > 24ms > PS > 66ms > PE > 89ms > CE
+182ms âRuntime (37838 bytes) successfully initialized in 66ms (v0.3.000.20180224) (181ms)
+183ms ââExecution stage started
+192ms ââCancelling condition #5âs schedulesâŚ
+192ms ââCondition #5 evaluated true (1ms)
+194ms ââCancelling condition #1âs schedulesâŚ
+195ms ââCondition group #1 evaluated true (state changed) (4ms)
+197ms ââCancelling statement #2âs schedulesâŚ
+364ms ââExecuted physical command [SONOS].playTextAndResume([Refrigerator door has been left open, 50]) (158ms)
+365ms ââExecuted [SONOS].playTextAndResume (160ms)
+395ms ââExecuted virtual command [SONOS].sendNotificationToContacts (21ms)
+398ms ââExecution stage complete. (215ms)
+400ms âEvent processed successfully (399ms)
3/7/2018, 8:28:45 PM +451ms
+1ms âReceived event [Refrigerator].contact = open with a delay of 1070ms
+371ms ââAdding a timed trigger schedule for condition 5
+379ms âSetting up scheduled job for Wed, Mar 7 2018 @ 8:33:45 PM EST (in 299.994s)
3/7/2018, 8:28:27 PM +923ms
+1ms âReceived event [Refrigerator].contact = closed with a delay of 256ms
+170ms ââCancelling any timed trigger schedules for condition 5
3/7/2018, 8:28:23 PM +435ms
+2ms âReceived event [Refrigerator].contact = open with a delay of 298ms
+211ms ââAdding a timed trigger schedule for condition 5
+219ms âSetting up scheduled job for Wed, Mar 7 2018 @ 8:33:23 PM EST (in 299.993s)
3/7/2018, 6:48:48 PM +315ms
+1ms âReceived event [Home].time = 1520466529239 with a delay of -924ms
+156ms âRunTime Analysis CS > 27ms > PS > 46ms > PE > 82ms > CE
+158ms âRuntime (37839 bytes) successfully initialized in 46ms (v0.3.000.20180224) (157ms)
+159ms ââExecution stage started
+160ms ââExecution stage complete. (1ms)
+161ms âEvent processed successfully (161ms)
3/7/2018, 6:44:04 PM +175ms
+1ms âReceived event [Refrigerator].contact = closed with a delay of 1293ms
+193ms ââCancelling any timed trigger schedules for condition 5
3/7/2018, 6:43:49 PM +80ms
+1ms âReceived event [Refrigerator].contact = open with a delay of 114ms
+159ms ââAdding a timed trigger schedule for condition 5
+165ms âSetting up scheduled job for Wed, Mar 7 2018 @ 6:48:49 PM EST (in 299.995s)
3/7/2018, 6:43:41 PM +112ms
+1ms âReceived event [Refrigerator].contact = closed with a delay of 601ms
+316ms ââCancelling any timed trigger schedules for condition 5
3/7/2018, 6:43:40 PM +81ms
+1ms âReceived event [Refrigerator].contact = open with a delay of 806ms
+488ms ââAdding a timed trigger schedule for condition 5
+495ms âSetting up scheduled job for Wed, Mar 7 2018 @ 6:48:40 PM EST (in 299.995s)
3/7/2018, 6:09:35 PM +662ms
+1ms âReceived event [Home].time = 1520464176898 with a delay of -1236ms
+236ms âRunTime Analysis CS > 42ms > PS > 71ms > PE > 122ms > CE
+240ms âRuntime (37841 bytes) successfully initialized in 71ms (v0.3.000.20180224) (237ms)
+241ms ââExecution stage started
+242ms ââExecution stage complete. (2ms)
+243ms âEvent processed successfully (243ms)
3/7/2018, 6:04:40 PM +521ms
+1ms âReceived event [Refrigerator].contact = closed with a delay of 240ms
+219ms ââCancelling any timed trigger schedules for condition 5
3/7/2018, 6:04:36 PM +487ms
+1ms âReceived event [Refrigerator].contact = open with a delay of 547ms
+410ms ââAdding a timed trigger schedule for condition 5
+418ms âSetting up scheduled job for Wed, Mar 7 2018 @ 6:09:36 PM EST (in 299.993s)
from this the refrigerator was last opened at 8:28:45 PM but it was not closed. so at 8:33:44 PM i.e. 5 minutes later the announcement was made.
thats not to say you did not close the fridge more likely:
- the close event was never received by ST
- the close event was never received by the piston
here 1 is more likely than 2.
what kind of contact sensor are you using? a repeater might help if this is happening frequently.
@ipaterson check out the home.time event from 3/7/2018, 6:09:35 PM and 3/7/2018, 6:48:48 PM neither of those events should have been received by the piston because the logs clearly shows those schedules had been canceled at 3/7/2018, 6:04:40 and 3/7/2018, 6:43:41 PM respectively.
i will leave you to dig through the code.
cheers.
I am using lowes iris ones. I have about 8-9 of them on the windows on my first floor. My hub is in the same room as the fridge (great room layout), i used to have a lot of interference from my router when it was upstairs ext to hit, but now its over right on a shelf in the open about 20 feet from the fridge. I worked with the ST staff to refine my zigbee network, so I am pretty sure a repeater wouldnât make much difference.
I wouldnât say this happens a lot. Maybe once a week and I canât really find any pattern to it when i do hear the sonos tell me.
I have had some random times when my basement door was telling me it was left open, but i think that was a sensor issue. The sensor would show as open (even tho it was closed). However, I use aeotec z-wave recessed contact sensors.
Is there any way to test the commands being sent? Like would leaving the live logging open on my server be a way of seeing if the sensor is not sending the command vs the piston not receiving from the hub?
Iâm open to whateverâŚ
sure if you keep ST live logging open on a server and full logging turned on for the piston then that would help triage the issue when it happens again.
Not sure if this helps, but here is the log after the event. The next morning i opened it to get a 5 hour energy before work but that never showed in the log, it only shows the close event:
3/8/2018, 7:19:16 AM +671ms
+1ms âReceived event [Refrigerator].contact = closed with a delay of 114ms
+159ms âRunTime Analysis CS > 13ms > PS > 44ms > PE > 101ms > CE
+161ms âRuntime (37836 bytes) successfully initialized in 44ms (v0.3.000.20180224) (159ms)
+162ms ââExecution stage started
+173ms ââComparison (enum) closed stays (string) open = false (2ms)
+175ms ââCancelling any timed trigger schedules for condition 5
+176ms ââCancelling statement #5âs schedulesâŚ
+177ms ââCancelling condition #5âs schedulesâŚ
+178ms ââCondition #5 evaluated false (10ms)
+179ms ââCancelling condition #1âs schedulesâŚ
+180ms ââCondition group #1 evaluated false (state changed) (11ms)
+182ms ââExecution stage complete. (20ms)
+183ms âEvent processed successfully (183ms)
3/7/2018, 8:33:44 PM +381ms
+1ms âReceived event [Home].time = 1520472825823 with a delay of -1443ms
+179ms âRunTime Analysis CS > 24ms > PS > 66ms > PE > 89ms > CE
+182ms âRuntime (37838 bytes) successfully initialized in 66ms (v0.3.000.20180224) (181ms)
+183ms ââExecution stage started
+192ms ââCancelling condition #5âs schedulesâŚ
+192ms ââCondition #5 evaluated true (1ms)
+194ms ââCancelling condition #1âs schedulesâŚ
+195ms ââCondition group #1 evaluated true (state changed) (4ms)
+197ms ââCancelling statement #2âs schedulesâŚ
+364ms ââExecuted physical command [SONOS].playTextAndResume([Refrigerator door has been left open, 50]) (158ms)
+365ms ââExecuted [SONOS].playTextAndResume (160ms)
+395ms ââExecuted virtual command [SONOS].sendNotificationToContacts (21ms)
+398ms ââExecution stage complete. (215ms)
+400ms âEvent processed successfully (399ms)
When I look at the recent events for the fridge contact it does match what is in the log:
if you go to the contact sensor device in the IDE and click on the list events link towards the bottom of the page do you see both the open and close event? heres a sample from my garage entry door as an example of the open/close events you should be seeing:
I use the Iris contact sensors inside the fridge and freezer as well but only for temperature. Contact was too unreliable but I just assumed it was my clumsy sensor setup.
Iâve noticed many contact sensors occasionally fire off invalid events. Had one wired to a relay on the smoke detectors that was throwing false positives about once a week until I swapped it with a different brand - even still a false positive (gets stuck in the contact state) about once every three months. Probably not related just feeling anecdotal.
Iâll see what I can find⌠the logs certainly seem contradictory.
Wouldnât i have to have the live logging on when the event happens? I can run it from my server until i have another false alarm. Or is there a way to pull historical events?
I seem to have written a piston that has 4 triggers, and obviously, its not working. Any help on how to go about fixing this. (I dont think conditions will work).
I have a variable @garageDoorShut that is set by another piston, but occasionally, the global variable is not set (zigbee issues), so I did this piston to make sure they stay in sync.
Could someone explain what the lightning bolt represents. I was under the impression that it represented triggers, and if I had two triggers in an if statement, then the piston wouldnt fire. (And Iâve been telling this to others on this forum).
However, the help text says that itâs a condition that subscribes to events. Now Iâm bamboozled. Does it show conditions or triggers, or both, or something, and is the presence of two lightning bolts in an if statement problematic? (if one doesnât change the default subscribe method)
I first noticed it when I had some conditions with the lightning bolt, and thought it was an error.
Thanks for this. I was under the impression that âwasâ statements were past looking.
Reason for piston: i have a garage door sensor, and I like to be notified when it opens, but more importantly, shuts. My zigbee network is a little flakey and sometimes the zigbee message of the garage door doesnt get through, so I have created this piston to check the status of the garage door contact sensor and a global variable @gargeDoorShut. Another piston actually sets the status of the variable, this piston is only if the zigbee message doesnt get through, and so, if contact sensor and Glorbal variable are different, then I get notified, and the global variable is correctly set to represent the status of the door.