Select the cog under the “With” section of any action and change “Disable statement” to “Yes”.
Awesome, thank you! Great work on the fuel stream! I couldn’t believe you could bring in analytics to everyone and with ease!!!
This is an attempt at a simple postal mail delivery script using a simple zigbee sensor. It works, but I’d really love some ideas on making it smarter without sending too many alerts or false alerts. For example,
- How to deal with notifications if the malibox is stuffed and the sensor doesn’t close.
- How to deal with mail that is ignored until the next day but still receive a notification if mail is picked up in the morning and the mailman comes again and delivers in the afternoon
- Display a message that says the mail was delivered today at 3:00pm. Yesterday it was deliver at 2:45pm, 15 minutes earlier
Just some ideas I am kicking around… Thoughts?
@kpdillon nice. thanks for sharing. what does the last if check do? trying to understand why it checks the same sensor for two different conditions with an and condition where one of the two conditions is a trigger?
Thank you.
Thank you!
I had the same issue with a piston that users is greater/less than rules. All I could do to make it work again was roll back to c4 version of all 4 apps. Still works great. Tried c7 and c9 and it did not work.
Trying one more time if any one can help. When there is an intrusion, i see the message showing up in webcore dashboard. How do I programmatcally see that message in the script?
@bangali the last if statement attempts to notify me in the scenario where the mailman opens up the mailbox, stuffs it with a bunch of junk mail and it doesn’t close. When someone goes out to get the mail, this condition should in theory notify me that they grabbed the overstuffed mail because now the mailbox should close. I hope that makes sense.
I changed the expression to “rises above” and it looks like it is working now. I should read this thread more to find out if my mistake was simply using a condition rather than a trigger or if this is a bug.
Well, I will know for sure if it works next time the humidity goes up when I take a shower.
If I am not mistaken, that remains above is a new gimmick trigger that will be true every time the attribute is reported and it was both previously and currently over the threshold. It will not be true the first time the attribute is reported as above, after it’s been previously at or below the threshold.
Im trying to find why this piston works great under c4 but c7 and c9 it does not. no matter what under 7 and 9 it alwats thinks the if statement is true
Which statement is always true?
And to rehash my post from when I found it worked in c4
So I rolled back to 4c of all 4 apps and now the piston works as it should
Got any full logs for that? Which of the two conditions is true when you’re expecting it to be false? What are the values involved?
here is a full log with it working. I can upgrade to 7 8 or 9 if you want to get failed logs
6/22/2017, 10:28:42 PM +916ms
+1ms ╔Received event [Kid Kitchen AC].switch = on with a delay of 115ms
+629ms ║RunTime Analysis CS > 32ms > PS > 329ms > PE > 268ms > CE
+640ms ║Piston waited at a semaphore for 258ms
+643ms ║Runtime (36519 bytes) successfully initialized in 329ms (v0.2.0c4.20170619) (640ms)
+644ms ║╔Execution stage started
+663ms ║║Comparison :4cd9924b46ea060326a57d40e0752562: is_any_of :6a187b45ceddc8d2c0ba79c6fbce17ed:,:4cd9924b46ea060326a57d40e0752562:,:7e7c75dfa3030e8ba98acc3cb706a29f:,:25463329eee62eb716256f5bb01a9096: = true (5ms)
+666ms ║║Condition #1 evaluated true (12ms)
+667ms ║║Condition group #null evaluated true (state did not change) (14ms)
+693ms ║║Calculating (decimal) 72.1 + (decimal) 1.5 >> (decimal) 73.6
+699ms ║║Comparison 73.5 is_greater_than_or_equal_to 73.6 = false (3ms)
+702ms ║║Condition #10 evaluated false (29ms)
+713ms ║║Comparison on is on = true (3ms)
+716ms ║║Cancelling condition #11’s schedules…
+717ms ║║Condition #11 evaluated true (14ms)
+719ms ║║Cancelling condition #2’s schedules…
+720ms ║║Condition group #2 evaluated true (state changed) (49ms)
+724ms ║║Cancelling statement #8’s schedules…
+754ms ║║Executed physical command [HVAC Fan Front].on() (23ms)
+755ms ║║Executed [HVAC Fan Front].on (25ms)
+783ms ║║Executed physical command [HVAC Fan Rear].on() (24ms)
+784ms ║║Executed [HVAC Fan Rear].on (27ms)
+790ms ║╚Execution stage complete. (146ms)
+803ms ╚Event processed successfully (803ms)
6/22/2017, 10:28:42 PM +248ms
+2ms ╔Received event [TV Room Motion].temperature = 73.5 with a delay of 227ms
+484ms ║RunTime Analysis CS > 128ms > PS > 110ms > PE > 246ms > CE
+497ms ║Runtime (36461 bytes) successfully initialized in 110ms (v0.2.0c4.20170619) (493ms)
+498ms ║╔Execution stage started
+517ms ║║Comparison :4cd9924b46ea060326a57d40e0752562: is_any_of :6a187b45ceddc8d2c0ba79c6fbce17ed:,:4cd9924b46ea060326a57d40e0752562:,:7e7c75dfa3030e8ba98acc3cb706a29f:,:25463329eee62eb716256f5bb01a9096: = true (5ms)
+520ms ║║Condition #1 evaluated true (12ms)
+521ms ║║Condition group #null evaluated true (state did not change) (14ms)
+545ms ║║Calculating (decimal) 72.1 + (decimal) 1.5 >> (decimal) 73.6
+550ms ║║Comparison 73.5 is_greater_than_or_equal_to 73.6 = false (3ms)
+553ms ║║Condition #10 evaluated false (28ms)
+569ms ║║Comparison on is on = true (3ms)
+571ms ║║Cancelling condition #11’s schedules…
+573ms ║║Condition #11 evaluated true (18ms)
+574ms ║║Cancelling condition #2’s schedules…
+575ms ║║Condition group #2 evaluated true (state changed) (50ms)
+579ms ║║Cancelling statement #8’s schedules…
+612ms ║║Executed physical command [HVAC Fan Front].on() (27ms)
+614ms ║║Executed [HVAC Fan Front].on (29ms)
+643ms ║║Executed physical command [HVAC Fan Rear].on() (25ms)
+644ms ║║Executed [HVAC Fan Rear].on (27ms)
+649ms ║╚Execution stage complete. (152ms)
+659ms ╚Event processed successfully (660ms)
6/22/2017, 10:26:42 PM +191ms
+1ms ╔Received event [TV Room Motion].temperature = 73.3 with a delay of 166ms
+407ms ║RunTime Analysis CS > 21ms > PS > 74ms > PE > 312ms > CE
+420ms ║Runtime (36458 bytes) successfully initialized in 74ms (v0.2.0c4.20170619) (417ms)
+421ms ║╔Execution stage started
+440ms ║║Comparison :4cd9924b46ea060326a57d40e0752562: is_any_of :6a187b45ceddc8d2c0ba79c6fbce17ed:,:4cd9924b46ea060326a57d40e0752562:,:7e7c75dfa3030e8ba98acc3cb706a29f:,:25463329eee62eb716256f5bb01a9096: = true (5ms)
+443ms ║║Condition #1 evaluated true (13ms)
+445ms ║║Condition group #null evaluated true (state did not change) (15ms)
+467ms ║║Calculating (decimal) 72.0 + (decimal) 1.5 >> (decimal) 73.5
+473ms ║║Comparison 73.3 is_greater_than_or_equal_to 73.5 = false (3ms)
+476ms ║║Condition #10 evaluated false (26ms)
+491ms ║║Comparison off is on = false (4ms)
+494ms ║║Condition #11 evaluated false (16ms)
+496ms ║║Condition group #2 evaluated false (state did not change) (47ms)
+517ms ║║Calculating (decimal) 72.0 + (decimal) 1.4 >> (decimal) 73.4
+522ms ║║Comparison 73.3 is_less_than 73.4 = true (3ms)
+525ms ║║Condition #6 evaluated true (25ms)
+539ms ║║Comparison off is off = true (3ms)
+541ms ║║Condition #7 evaluated true (15ms)
+543ms ║║Condition group #3 evaluated true (state did not change) (44ms)
+547ms ║║Cancelling statement #4’s schedules…
+557ms ║║Skipped execution of physical command [HVAC Fan Front].off([]) because it would make no change to the device. (4ms)
+558ms ║║Executed [HVAC Fan Front].off (6ms)
+566ms ║║Skipped execution of physical command [HVAC Fan Rear].off([]) because it would make no change to the device. (3ms)
+567ms ║║Executed [HVAC Fan Rear].off (6ms)
+573ms ║╚Execution stage complete. (152ms)
+583ms ╚Event processed successfully (582ms)
6/22/2017, 10:22:42 PM +223ms
+2ms ╔Received event [TV Room Motion].temperature = 73.1 with a delay of 217ms
+605ms ║RunTime Analysis CS > 25ms > PS > 92ms > PE > 488ms > CE
+619ms ║Runtime (36467 bytes) successfully initialized in 92ms (v0.2.0c4.20170619) (616ms)
+621ms ║╔Execution stage started
+644ms ║║Comparison :4cd9924b46ea060326a57d40e0752562: is_any_of :6a187b45ceddc8d2c0ba79c6fbce17ed:,:4cd9924b46ea060326a57d40e0752562:,:7e7c75dfa3030e8ba98acc3cb706a29f:,:25463329eee62eb716256f5bb01a9096: = true (8ms)
+647ms ║║Condition #1 evaluated true (15ms)
+649ms ║║Condition group #null evaluated true (state did not change) (18ms)
+672ms ║║Calculating (decimal) 71.8 + (decimal) 1.5 >> (decimal) 73.3
+678ms ║║Comparison 73.1 is_greater_than_or_equal_to 73.3 = false (3ms)
+681ms ║║Cancelling condition #10’s schedules…
+683ms ║║Condition #10 evaluated false (29ms)
+697ms ║║Comparison off is on = false (3ms)
+700ms ║║Condition #11 evaluated false (15ms)
+701ms ║║Cancelling condition #2’s schedules…
+703ms ║║Condition group #2 evaluated false (state changed) (50ms)
+725ms ║║Calculating (decimal) 71.8 + (decimal) 1.4 >> (decimal) 73.2
+731ms ║║Comparison 73.1 is_less_than 73.2 = true (3ms)
+734ms ║║Condition #6 evaluated true (26ms)
+747ms ║║Comparison off is off = true (3ms)
+749ms ║║Condition #7 evaluated true (14ms)
+751ms ║║Condition group #3 evaluated true (state did not change) (45ms)
+755ms ║║Cancelling statement #4’s schedules…
+790ms ║║Executed physical command [HVAC Fan Front].off() (29ms)
+791ms ║║Executed [HVAC Fan Front].off (31ms)
+824ms ║║Executed physical command [HVAC Fan Rear].off() (28ms)
+825ms ║║Executed [HVAC Fan Rear].off (30ms)
+832ms ║╚Execution stage complete. (211ms)
+844ms ╚Event processed successfully (844ms)
6/22/2017, 10:20:42 PM +174ms
+2ms ╔Received event [TV Room Motion].temperature = 73.0 with a delay of 159ms
+378ms ║RunTime Analysis CS > 38ms > PS > 79ms > PE > 261ms > CE
+390ms ║Runtime (36471 bytes) successfully initialized in 79ms (v0.2.0c4.20170619) (387ms)
+391ms ║╔Execution stage started
+410ms ║║Comparison :4cd9924b46ea060326a57d40e0752562: is_any_of :6a187b45ceddc8d2c0ba79c6fbce17ed:,:4cd9924b46ea060326a57d40e0752562:,:7e7c75dfa3030e8ba98acc3cb706a29f:,:25463329eee62eb716256f5bb01a9096: = true (5ms)
+413ms ║║Condition #1 evaluated true (12ms)
+414ms ║║Condition group #null evaluated true (state did not change) (15ms)
+436ms ║║Calculating (decimal) 71.5 + (decimal) 1.5 >> (decimal) 73.0
+441ms ║║Comparison 73.0 is_greater_than_or_equal_to 73.0 = true (3ms)
+444ms ║║Cancelling condition #10’s schedules…
+446ms ║║Condition #10 evaluated true (27ms)
+447ms ║║Cancelling condition #2’s schedules…
+448ms ║║Condition group #2 evaluated true (state changed) (30ms)
+452ms ║║Cancelling statement #8’s schedules…
+478ms ║║Executed physical command [HVAC Fan Front].on() (20ms)
+480ms ║║Executed [HVAC Fan Front].on (22ms)
+506ms ║║Executed physical command [HVAC Fan Rear].on() (23ms)
+507ms ║║Executed [HVAC Fan Rear].on (25ms)
+513ms ║╚Execution stage complete. (121ms)
+525ms ╚Event processed successfully (525ms)
6/22/2017, 10:18:42 PM +161ms
+2ms ╔Received event [TV Room Motion].temperature = 72.8 with a delay of 147ms
+609ms ║RunTime Analysis CS > 21ms > PS > 77ms > PE > 511ms > CE
+623ms ║Runtime (36465 bytes) successfully initialized in 77ms (v0.2.0c4.20170619) (620ms)
+624ms ║╔Execution stage started
+643ms ║║Comparison :4cd9924b46ea060326a57d40e0752562: is_any_of :6a187b45ceddc8d2c0ba79c6fbce17ed:,:4cd9924b46ea060326a57d40e0752562:,:7e7c75dfa3030e8ba98acc3cb706a29f:,:25463329eee62eb716256f5bb01a9096: = true (4ms)
+646ms ║║Condition #1 evaluated true (12ms)
+647ms ║║Condition group #null evaluated true (state did not change) (15ms)
+669ms ║║Calculating (decimal) 71.4 + (decimal) 1.5 >> (decimal) 72.9
+675ms ║║Comparison 72.8 is_greater_than_or_equal_to 72.9 = false (2ms)
+678ms ║║Cancelling condition #10’s schedules…
+679ms ║║Condition #10 evaluated false (28ms)
+694ms ║║Comparison off is on = false (3ms)
+697ms ║║Cancelling condition #11’s schedules…
+698ms ║║Condition #11 evaluated false (18ms)
+700ms ║║Cancelling condition #2’s schedules…
+701ms ║║Condition group #2 evaluated false (state changed) (51ms)
+723ms ║║Calculating (decimal) 71.4 + (decimal) 1.4 >> (decimal) 72.80000000000001
+728ms ║║Comparison 72.8 is_less_than 72.80000000000001 = true (3ms)
+731ms ║║Condition #6 evaluated true (24ms)
+744ms ║║Comparison off is off = true (4ms)
+747ms ║║Condition #7 evaluated true (14ms)
+749ms ║║Condition group #3 evaluated true (state did not change) (43ms)
+752ms ║║Cancelling statement #4’s schedules…
+781ms ║║Executed physical command [HVAC Fan Front].off() (22ms)
+782ms ║║Executed [HVAC Fan Front].off (25ms)
+809ms ║║Executed physical command [HVAC Fan Rear].off() (22ms)
+810ms ║║Executed [HVAC Fan Rear].off (24ms)
+816ms ║╚Execution stage complete. (193ms)
+827ms ╚Event processed successfully (827ms)
6/22/2017, 10:16:42 PM +214ms
+2ms ╔Received event [TV Room Motion].temperature = 72.7 with a delay of 183ms
+350ms ║RunTime Analysis CS > 24ms > PS > 95ms > PE > 231ms > CE
+361ms ║Runtime (36465 bytes) successfully initialized in 95ms (v0.2.0c4.20170619) (359ms)
+363ms ║╔Execution stage started
+388ms ║║Comparison :4cd9924b46ea060326a57d40e0752562: is_any_of :6a187b45ceddc8d2c0ba79c6fbce17ed:,:4cd9924b46ea060326a57d40e0752562:,:7e7c75dfa3030e8ba98acc3cb706a29f:,:25463329eee62eb716256f5bb01a9096: = true (6ms)
+392ms ║║Condition #1 evaluated true (16ms)
+394ms ║║Condition group #null evaluated true (state did not change) (20ms)
+421ms ║║Calculating (decimal) 71.2 + (decimal) 1.5 >> (decimal) 72.7
+427ms ║║Comparison 72.7 is_greater_than_or_equal_to 72.7 = true (2ms)
+429ms ║║Condition #10 evaluated true (30ms)
+431ms ║║Condition group #2 evaluated true (state did not change) (33ms)
+435ms ║║Cancelling statement #8’s schedules…
+444ms ║║Skipped execution of physical command [HVAC Fan Front].on([]) because it would make no change to the device. (3ms)
+445ms ║║Executed [HVAC Fan Front].on (6ms)
+453ms ║║Skipped execution of physical command [HVAC Fan Rear].on([]) because it would make no change to the device. (4ms)
+454ms ║║Executed [HVAC Fan Rear].on (6ms)
+459ms ║╚Execution stage complete. (97ms)
+468ms ╚Event processed successfully (467ms)
6/22/2017, 10:14:42 PM +222ms
+2ms ╔Received event [TV Room Motion].temperature = 72.6 with a delay of 216ms
+520ms ║RunTime Analysis CS > 24ms > PS > 241ms > PE > 255ms > CE
+531ms ║Runtime (36467 bytes) successfully initialized in 241ms (v0.2.0c4.20170619) (529ms)
+533ms ║╔Execution stage started
+786ms ║║Comparison :4cd9924b46ea060326a57d40e0752562: is_any_of :6a187b45ceddc8d2c0ba79c6fbce17ed:,:4cd9924b46ea060326a57d40e0752562:,:7e7c75dfa3030e8ba98acc3cb706a29f:,:25463329eee62eb716256f5bb01a9096: = true (7ms)
+790ms ║║Condition #1 evaluated true (18ms)
+792ms ║║Condition group #null evaluated true (state did not change) (22ms)
+825ms ║║Calculating (decimal) 71.1 + (decimal) 1.5 >> (decimal) 72.6
+832ms ║║Comparison 72.6 is_greater_than_or_equal_to 72.6 = true (4ms)
+836ms ║║Condition #10 evaluated true (37ms)
+838ms ║║Condition group #2 evaluated true (state did not change) (40ms)
+843ms ║║Cancelling statement #8’s schedules…
+856ms ║║Skipped execution of physical command [HVAC Fan Front].on([]) because it would make no change to the device. (5ms)
+857ms ║║Executed [HVAC Fan Front].on (8ms)
+867ms ║║Skipped execution of physical command [HVAC Fan Rear].on([]) because it would make no change to the device. (5ms)
+869ms ║║Executed [HVAC Fan Rear].on (7ms)
+877ms ║╚Execution stage complete. (344ms)
+889ms ╚Event processed successfully (889ms)
Basically what should happen is if TV room motion temp is 1.5 or more above Kid Kitchen then turn on HVAC fans front and rear. If htey drop below a difference of 1.4 turn the fans off. What happens with the newer code versions is it never turns off the if statement for the fans to come on.
When I run the new code and it does not work this is in the IDE
with the old code it looks like this
if it matters I originally had it as an “outside of rage” rule and that did not work after c4 either
@kpdillon thank you for clarifying. has that condition ever become true i.e. you have received that notification?
asking because i dont know if a trigger and a condition on the same device attribute in the same if clause with an AND will ever become true. trying to learn if that works.
thanks again.
Is it possible to control the devices on two ST hubs from one instance of webCoRE?
If so, could you give me some guidance as to how I will do that?