Welcome home announce piston for one or multiple people


#41

this


#42

Thanks I’ll give it a try


#43

I have imported the jm067 piston and made all the necessary changes. However, I notice that when I save it and I look at my list of pistons, it is counting down from 25. Then it says pending and then starts over again. Is this supposed to do this?

Just checked it and now it is counting down from 21 hours. Must have had to have something happen.


#44

I am trying to get this working again (long story). I am not getting a push notification when soneome arrives. I changed it a bit so that the announcement on the speakers would only go between the times 8:00am-10:00pm but I want the push notification to go anytime. What have I done wrong? It also doesn’t seem to be announcing arrivals. I have attached a log:

4/4/2019, 11:42:11 AM +762ms
+1ms ╔Starting piston… (v0.3.10a.20190223)
+305ms ║╔Subscribing to devices…
+386ms ║║Subscribing to Jane.presence…
+404ms ║║Subscribing to Tom.presence…
+422ms ║║Subscribing to Lauren.presence…
+437ms ║║Subscribing to Front Door Sensor.contact…
+454ms ║║Subscribing to Garage Door Sensor.contact…
+582ms ║║Subscribing to Kitchen Sonos…
+583ms ║╚Finished subscribing (305ms)
+621ms ║Calculating (datetime) 1554392532377 - (datetime) 1554390691453 >> (datetime) 1840924
+629ms ║Comparison (datetime) 1840924 is_greater_than (integer) 350000 = true (3ms)
+631ms ║Cancelling condition #27’s schedules…
+633ms ║Cancelling condition #24’s schedules…
+668ms ║Calculating (integer) 3 - (integer) 1 >> (integer) 2
+676ms ║Comparison (integer) 2 is_inside_of_range (integer) 0 … (integer) 2 = true (4ms)
+714ms ║Comparison (boolean) false is (boolean) false = true (2ms)
+729ms ║Comparison (time) 42132485 happens_daily_at (datetime) 1554390691453 = false (1ms)
+731ms ║Cancelling condition #49’s schedules…
+742ms ║Cancelling statement #49’s schedules…
+750ms ║Requesting time schedule wake up at Fri, Apr 5 2019 @ 11:12:01 AM EDT
+770ms ║Comparison (boolean) true is (boolean) false = false (2ms)
+784ms ║Comparison (integer) 0 is_greater_than (integer) 0 = false (2ms)
+816ms ║Comparison (time) 42132560 is_between (time) 28800000 … (time) 79200000 = true (15ms)
+818ms ║Time restriction check passed
+828ms ║Setting up scheduled job for Fri, Apr 5 2019 @ 11:12:01 AM EDT (in 84588.864s)
+843ms ╚Piston successfully started (841ms)
4/4/2019, 11:12:00 AM +245ms
+0ms ╔Received event [Home].time = 1554390721453 with a delay of -1209ms
+207ms ║RunTime Analysis CS > 45ms > PS > 71ms > PE > 91ms > CE
+212ms ║Runtime (76593 bytes) successfully initialized in 71ms (v0.3.10a.20190223) (211ms)
+214ms ║╔Execution stage started
+230ms ║║Calculating (datetime) 1554390720469 - (datetime) 1554390691453 >> (datetime) 29016
+237ms ║║Comparison (datetime) 29016 is_greater_than (integer) 350000 = false (3ms)
+239ms ║║Cancelling condition #27’s schedules…
+241ms ║║Condition #27 evaluated false (18ms)
+242ms ║║Cancelling condition #24’s schedules…
+243ms ║║Condition group #24 evaluated false (state changed) (22ms)
+264ms ║║Condition #20 evaluated false (12ms)
+266ms ║║Condition group #55 evaluated false (state did not change) (13ms)
+267ms ║║Condition group #11 evaluated false (state did not change) (17ms)
+275ms ║║Comparison (time) 40320516 happens_daily_at (datetime) 1554390691453 = true (1ms)
+277ms ║║Time restriction check passed
+279ms ║║Cancelling condition #49’s schedules…
+280ms ║║Condition #49 evaluated true (8ms)
+281ms ║║Cancelling statement #49’s schedules…
+287ms ║║Requesting time schedule wake up at Fri, Apr 5 2019 @ 11:12:01 AM EDT
+303ms ║║Comparison (boolean) true is (boolean) false = false (2ms)
+305ms ║║Condition #48 evaluated false (14ms)
+306ms ║║Condition group #38 evaluated false (state did not change) (36ms)
+317ms ║║Comparison (integer) 0 is_greater_than (integer) 0 = false (3ms)
+320ms ║║Condition #65 evaluated false (8ms)
+321ms ║║Condition group #61 evaluated false (state did not change) (11ms)
+326ms ║╚Execution stage complete. (112ms)
+328ms ║Setting up scheduled job for Fri, Apr 5 2019 @ 11:12:01 AM EDT (in 86400.881s)
+336ms ╚Event processed successfully (336ms)
4/4/2019, 11:11:31 AM +22ms
+2ms ╔Received event [Lauren].presence = present with a delay of 89ms
+161ms ║RunTime Analysis CS > 24ms > PS > 49ms > PE > 88ms > CE
+166ms ║Runtime (76593 bytes) successfully initialized in 49ms (v0.3.10a.20190223) (162ms)
+167ms ║╔Execution stage started
+180ms ║║Calculating (datetime) 1554390691197 - (datetime) 1554383252143 >> (datetime) 7439054
+186ms ║║Comparison (datetime) 7439054 is_greater_than (integer) 350000 = true (2ms)
+188ms ║║Condition #27 evaluated true (15ms)
+189ms ║║Condition group #24 evaluated true (state did not change) (16ms)
+192ms ║║Cancelling statement #25’s schedules…
+307ms ║║Executed virtual command setVariable (111ms)
+314ms ║║Executed virtual command setVariable (3ms)
+324ms ║║Cancelling statement #3’s schedules…
+341ms ║║Executed virtual command setVariable (4ms)
+361ms ║║Calculating (integer) 3 - (integer) 1 >> (integer) 2
+366ms ║║Comparison (integer) 2 is_inside_of_range (integer) 0 … (integer) 2 = true (3ms)
+368ms ║║Cancelling condition #8’s schedules…
+370ms ║║Condition #8 evaluated true (24ms)
+371ms ║║Cancelling condition #2’s schedules…
+372ms ║║Condition group #2 evaluated true (state changed) (27ms)
+375ms ║║Cancelling statement #34’s schedules…
+386ms ║║Calculating (dynamic) present == (dynamic) present >> (boolean) true
+394ms ║║Executed virtual command setVariable (3ms)
+417ms ║║Calculating (string) + (string) >> (string)
+421ms ║║Calculating (string) + (string) Lauren >> (string) Lauren
+428ms ║║Executed virtual command setVariable (4ms)
+436ms ║║Executed virtual command setVariable (4ms)
+454ms ║║Condition #20 evaluated false (11ms)
+455ms ║║Condition group #55 evaluated false (state did not change) (14ms)
+456ms ║║Condition group #11 evaluated false (state did not change) (16ms)
+465ms ║║Comparison (time) 40291482 happens_daily_at (datetime) 1554390691453 = false (0ms)
+467ms ║║Condition #49 evaluated false (6ms)
+468ms ║║Cancelling statement #49’s schedules…
+473ms ║║Requesting time schedule wake up at Thu, Apr 4 2019 @ 11:12:01 AM EDT
+476ms ║║Condition group #38 evaluated false (state did not change) (16ms)
+484ms ║║Comparison (integer) 0 is_greater_than (integer) 0 = false (2ms)
+487ms ║║Condition #65 evaluated false (7ms)
+488ms ║║Condition group #61 evaluated false (state did not change) (9ms)
+492ms ║╚Execution stage complete. (325ms)
+493ms ║Setting up scheduled job for Thu, Apr 4 2019 @ 11:12:01 AM EDT (in 29.938s)
+507ms ╚Event processed successfully (507ms)


#45

try moving your push statement up a few lines (line 105) in the code so that its above the set variables. i think the task is canceling once you set the variable back


#46

Did you manage to get this working ?


#47

Has anyone else tried this in Hubitat? it works but with some errors


#48

I have a different one that uses Life360 and Echospeaks. I don’t know if push notifications work anymore. What problems are you having?


#49

getting errors but it was running correctly. but now I wasn’t able to open up the piston so have to force remove it.