Presence Tiles Code Seems To Work But Tile Still Says No Event


#1

1) Give a description of the problem
This code is from the examples on the webcore wiki, all I did was put in my phone and my name for the presence device and thats all. The code runs, and I thought it was getting home events, the last log entry is around 4:57pm which is around the time I got home today but the presence tile never updates and it doesn’t seem to be getting updates from my phone but it works in the smartthings app because it says I am currently home and when at school it said away so the ‘sensor’ works, but the piston doesn’t seem to be getting updates. The ‘presence device’ is listed in the dashboard so webcore knows about it.

2) What is the expected behaviour?
when piston receives presence event from phone it should update the presence tile in the dashboard to home or something like that, definitely not ‘no event yet’

3) What is happening/not happening?
According to the author they made the code so that once it starts to run it would wait 8 minutes and then if no event had happened yet it would put up a tile in the dashboard to say that no event had been received yet. That part works but it never changes even though the piston seems to receive events from my phone. The phone is a samsung note 10+ if that matters, it shouldn’t.

4) Post a Green Snapshot of the pistonimage

5) Attach logs after turning logging level to Full
9/9/2019, 7:13:29 PM +449ms
+0ms ╔Received event [My home].time = 1568074410308 with a delay of -860ms
+137ms ║RunTime Analysis CS > 34ms > PS > 42ms > PE > 61ms > CE
+140ms ║Runtime (59097 bytes) successfully initialized in 42ms (v0.3.10f.20190822) (139ms)
+141ms ║╔Execution stage started
+181ms ║║Calculating (integer) 1 + (integer) 1 >> (integer) 2
+210ms ║║Comparison (boolean) false is_not (boolean) true = true (2ms)
+212ms ║║Condition #241 evaluated true (6ms)
+213ms ║║Condition group #238 evaluated true (state did not change) (8ms)
+215ms ║║Cancelling statement #239’s schedules…
+222ms ║║Executed virtual command setVariable (4ms)
+225ms ║║Cancelling statement #242’s schedules…
+231ms ║║Calculating (integer) 0 + (integer) 1 >> (integer) 1
+236ms ║║Executed virtual command setVariable (3ms)
+263ms ║║Calculating (string) Home == (string) >> (boolean) false
+272ms ║║Calculating (string) Home == (string) >> (boolean) false
+283ms ║║Calculating (enum) present == (enum) present >> (boolean) true
+294ms ║║Calculating (boolean) false == (boolean) false >> (boolean) true
+321ms ║║Calculating (string) present == (string) present >> (boolean) true
+332ms ║║Executed virtual command setTile (4ms)
+337ms ║║Cancelling statement #213’s schedules…
+345ms ║║Executed virtual command setVariable (4ms)
+357ms ║║Calculating (integer) 1 + (integer) 1 >> (integer) 2
+364ms ║║Cancelling statement #216’s schedules…
+371ms ║║Executed virtual command clearTile (3ms)
+379ms ║╚Execution stage complete. (238ms)
+382ms ║Setting up scheduled job for Mon, Sep 9 2019 @ 7:21:30 PM CDT (in 480.478s)
+390ms ╚Event processed successfully (391ms)
9/9/2019, 7:05:29 PM +118ms
+1ms ╔Received event [My home].time = 1568073930308 with a delay of -1190ms
+182ms ║RunTime Analysis CS > 55ms > PS > 49ms > PE > 78ms > CE
+186ms ║Runtime (59098 bytes) successfully initialized in 49ms (v0.3.10f.20190822) (184ms)
+187ms ║╔Execution stage started
+212ms ║║Calculating (integer) 1 + (integer) 1 >> (integer) 2
+238ms ║║Comparison (boolean) false is_not (boolean) true = true (2ms)
+240ms ║║Condition #241 evaluated true (8ms)
+241ms ║║Condition group #238 evaluated true (state did not change) (10ms)
+243ms ║║Cancelling statement #239’s schedules…
+250ms ║║Executed virtual command setVariable (4ms)
+253ms ║║Cancelling statement #242’s schedules…
+258ms ║║Calculating (integer) 0 + (integer) 1 >> (integer) 1
+264ms ║║Executed virtual command setVariable (4ms)
+293ms ║║Calculating (string) Home == (string) >> (boolean) false
+301ms ║║Calculating (string) Home == (string) >> (boolean) false
+309ms ║║Calculating (enum) present == (enum) present >> (boolean) true
+318ms ║║Calculating (boolean) false == (boolean) false >> (boolean) true
+335ms ║║Calculating (string) present == (string) present >> (boolean) true
+341ms ║║Executed virtual command setTile (2ms)
+344ms ║║Cancelling statement #213’s schedules…
+350ms ║║Executed virtual command setVariable (2ms)
+358ms ║║Calculating (integer) 1 + (integer) 1 >> (integer) 2
+363ms ║║Cancelling statement #216’s schedules…
+367ms ║║Executed virtual command clearTile (0ms)
+373ms ║╚Execution stage complete. (187ms)
+375ms ║Setting up scheduled job for Mon, Sep 9 2019 @ 7:13:30 PM CDT (in 480.816s)
+383ms ╚Event processed successfully (383ms)
9/9/2019, 6:57:29 PM +140ms
+1ms ╔Received event [My home].time = 1568073450308 with a delay of -1168ms
+130ms ║RunTime Analysis CS > 28ms > PS > 39ms > PE > 63ms > CE
+133ms ║Runtime (59098 bytes) successfully initialized in 39ms (v0.3.10f.20190822) (131ms)
+135ms ║╔Execution stage started
+159ms ║║Calculating (integer) 1 + (integer) 1 >> (integer) 2
+180ms ║║Comparison (boolean) false is_not (boolean) true = true (2ms)
+182ms ║║Condition #241 evaluated true (5ms)
+183ms ║║Condition group #238 evaluated true (state did not change) (6ms)
+185ms ║║Cancelling statement #239’s schedules…
+191ms ║║Executed virtual command setVariable (2ms)
+194ms ║║Cancelling statement #242’s schedules…
+198ms ║║Calculating (integer) 0 + (integer) 1 >> (integer) 1
+202ms ║║Executed virtual command setVariable (2ms)
+233ms ║║Calculating (string) Home == (string) >> (boolean) false
+241ms ║║Calculating (string) Home == (string) >> (boolean) false
+248ms ║║Calculating (enum) present == (enum) present >> (boolean) true
+256ms ║║Calculating (boolean) false == (boolean) false >> (boolean) true
+273ms ║║Calculating (string) present == (string) present >> (boolean) true
+278ms ║║Executed virtual command setTile (2ms)
+281ms ║║Cancelling statement #213’s schedules…
+286ms ║║Executed virtual command setVariable (2ms)
+294ms ║║Calculating (integer) 1 + (integer) 1 >> (integer) 2
+298ms ║║Cancelling statement #216’s schedules…
+302ms ║║Executed virtual command clearTile (1ms)
+307ms ║╚Execution stage complete. (173ms)
+309ms ║Setting up scheduled job for Mon, Sep 9 2019 @ 7:05:30 PM CDT (in 480.86s)
+318ms ╚Event processed successfully (317ms)
9/9/2019, 6:49:29 PM +232ms
+0ms ╔Received event [My home].time = 1568072970308 with a delay of -1077ms
+154ms ║RunTime Analysis CS > 34ms > PS > 52ms > PE > 69ms > CE
+158ms ║Runtime (59098 bytes) successfully initialized in 52ms (v0.3.10f.20190822) (156ms)
+159ms ║╔Execution stage started
+182ms ║║Calculating (integer) 1 + (integer) 1 >> (integer) 2
+203ms ║║Comparison (boolean) false is_not (boolean) true = true (2ms)
+205ms ║║Condition #241 evaluated true (6ms)
+206ms ║║Condition group #238 evaluated true (state did not change) (8ms)
+208ms ║║Cancelling statement #239’s schedules…
+215ms ║║Executed virtual command setVariable (3ms)
+218ms ║║Cancelling statement #242’s schedules…
+222ms ║║Calculating (integer) 0 + (integer) 1 >> (integer) 1
+227ms ║║Executed virtual command setVariable (3ms)
+253ms ║║Calculating (string) Home == (string) >> (boolean) false
+261ms ║║Calculating (string) Home == (string) >> (boolean) false
+268ms ║║Calculating (enum) present == (enum) present >> (boolean) true
+277ms ║║Calculating (boolean) false == (boolean) false >> (boolean) true
+293ms ║║Calculating (string) present == (string) present >> (boolean) true
+298ms ║║Executed virtual command setTile (1ms)
+301ms ║║Cancelling statement #213’s schedules…
+306ms ║║Executed virtual command setVariable (3ms)
+314ms ║║Calculating (integer) 1 + (integer) 1 >> (integer) 2
+318ms ║║Cancelling statement #216’s schedules…
+323ms ║║Executed virtual command clearTile (1ms)
+328ms ║╚Execution stage complete. (170ms)
+329ms ║Setting up scheduled job for Mon, Sep 9 2019 @ 6:57:30 PM CDT (in 480.747s)
+338ms ╚Event processed successfully (339ms)
9/9/2019, 6:41:29 PM +120ms
+1ms ╔Received event [My home].time = 1568072490308 with a delay of -1188ms
+287ms ║RunTime Analysis CS > 176ms > PS > 42ms > PE > 68ms > CE
+291ms ║Runtime (59099 bytes) successfully initialized in 42ms (v0.3.10f.20190822) (287ms)
+292ms ║╔Execution stage started
+325ms ║║Calculating (integer) 1 + (integer) 1 >> (integer) 2
+346ms ║║Comparison (boolean) false is_not (boolean) true = true (2ms)
+348ms ║║Condition #241 evaluated true (5ms)
+349ms ║║Condition group #238 evaluated true (state did not change) (7ms)
+351ms ║║Cancelling statement #239’s schedules…
+358ms ║║Executed virtual command setVariable (3ms)
+361ms ║║Cancelling statement #242’s schedules…
+366ms ║║Calculating (integer) 0 + (integer) 1 >> (integer) 1
+370ms ║║Executed virtual command setVariable (3ms)
+398ms ║║Calculating (string) Home == (string) >> (boolean) false
+406ms ║║Calculating (string) Home == (string) >> (boolean) false
+413ms ║║Calculating (enum) present == (enum) present >> (boolean) true
+421ms ║║Calculating (boolean) false == (boolean) false >> (boolean) true
+437ms ║║Calculating (string) present == (string) present >> (boolean) true
+442ms ║║Executed virtual command setTile (1ms)
+445ms ║║Cancelling statement #213’s schedules…
+451ms ║║Executed virtual command setVariable (3ms)
+459ms ║║Calculating (integer) 1 + (integer) 1 >> (integer) 2
+464ms ║║Cancelling statement #216’s schedules…
+468ms ║║Executed virtual command clearTile (1ms)
+474ms ║╚Execution stage complete. (182ms)
+475ms ║Setting up scheduled job for Mon, Sep 9 2019 @ 6:49:30 PM CDT (in 480.714s)
+483ms ╚Event processed successfully (482ms)
9/9/2019, 6:33:29 PM +143ms
+0ms ╔Received event [My home].time = 1568072010308 with a delay of -1165ms
+134ms ║RunTime Analysis CS > 23ms > PS > 48ms > PE > 63ms > CE
+138ms ║Runtime (59098 bytes) successfully initialized in 48ms (v0.3.10f.20190822) (137ms)
+140ms ║╔Execution stage started
+170ms ║║Calculating (integer) 1 + (integer) 1 >> (integer) 2
+190ms ║║Comparison (boolean) false is_not (boolean) true = true (1ms)
+192ms ║║Condition #241 evaluated true (6ms)
+193ms ║║Condition group #238 evaluated true (state did not change) (7ms)
+195ms ║║Cancelling statement #239’s schedules…
+201ms ║║Executed virtual command setVariable (3ms)
+204ms ║║Cancelling statement #242’s schedules…
+209ms ║║Calculating (integer) 0 + (integer) 1 >> (integer) 1
+213ms ║║Executed virtual command setVariable (3ms)
+239ms ║║Calculating (string) Home == (string) >> (boolean) false
+246ms ║║Calculating (string) Home == (string) >> (boolean) false
+254ms ║║Calculating (enum) present == (enum) present >> (boolean) true
+262ms ║║Calculating (boolean) false == (boolean) false >> (boolean) true
+279ms ║║Calculating (string) present == (string) present >> (boolean) true
+285ms ║║Executed virtual command setTile (2ms)
+288ms ║║Cancelling statement #213’s schedules…
+294ms ║║Executed virtual command setVariable (2ms)
+301ms ║║Calculating (integer) 1 + (integer) 1 >> (integer) 2
+306ms ║║Cancelling statement #216’s schedules…
+309ms ║║Executed virtual command clearTile (1ms)
+315ms ║╚Execution stage complete. (176ms)
+317ms ║Setting up scheduled job for Mon, Sep 9 2019 @ 6:41:30 PM CDT (in 480.849s)
+325ms ╚Event processed successfully (325ms)
9/9/2019, 6:25:29 PM +117ms
+0ms ╔Received event [My home].time = 1568071530308 with a delay of -1192ms
+201ms ║RunTime Analysis CS > 39ms > PS > 77ms > PE > 86ms > CE
+205ms ║Runtime (59097 bytes) successfully initialized in 77ms (v0.3.10f.20190822) (203ms)
+206ms ║╔Execution stage started
+231ms ║║Calculating (integer) 1 + (integer) 1 >> (integer) 2
+253ms ║║Comparison (boolean) false is_not (boolean) true = true (2ms)
+255ms ║║Condition #241 evaluated true (5ms)
+256ms ║║Condition group #238 evaluated true (state did not change) (8ms)
+258ms ║║Cancelling statement #239’s schedules…
+266ms ║║Executed virtual command setVariable (5ms)
+269ms ║║Cancelling statement #242’s schedules…
+274ms ║║Calculating (integer) 0 + (integer) 1 >> (integer) 1
+279ms ║║Executed virtual command setVariable (3ms)
+308ms ║║Calculating (string) Home == (string) >> (boolean) false
+317ms ║║Calculating (string) Home == (string) >> (boolean) false
+325ms ║║Calculating (enum) present == (enum) present >> (boolean) true
+334ms ║║Calculating (boolean) false == (boolean) false >> (boolean) true
+351ms ║║Calculating (string) present == (string) present >> (boolean) true
+356ms ║║Executed virtual command setTile (1ms)
+360ms ║║Cancelling statement #213’s schedules…
+368ms ║║Executed virtual command setVariable (6ms)
+377ms ║║Calculating (integer) 1 + (integer) 1 >> (integer) 2
+382ms ║║Cancelling statement #216’s schedules…
+386ms ║║Executed virtual command clearTile (1ms)
+392ms ║╚Execution stage complete. (187ms)
+393ms ║Setting up scheduled job for Mon, Sep 9 2019 @ 6:33:30 PM CDT (in 480.798s)
+400ms ╚Event processed successfully (400ms)
9/9/2019, 6:17:30 PM +369ms
+2ms ╔Received event [My home].time = 1568071050308 with a delay of 60ms
+203ms ║RunTime Analysis CS > 40ms > PS > 76ms > PE > 88ms > CE
+207ms ║Runtime (59094 bytes) successfully initialized in 76ms (v0.3.10f.20190822) (202ms)
+208ms ║╔Execution stage started
+304ms ║║Calculating (integer) 1 + (integer) 1 >> (integer) 2
+363ms ║║Comparison (boolean) false is_not (boolean) true = true (3ms)
+365ms ║║Condition #241 evaluated true (10ms)
+366ms ║║Condition group #238 evaluated true (state did not change) (11ms)
+369ms ║║Cancelling statement #239’s schedules…
+376ms ║║Executed virtual command setVariable (3ms)
+380ms ║║Cancelling statement #242’s schedules…
+385ms ║║Calculating (integer) 0 + (integer) 1 >> (integer) 1
+389ms ║║Executed virtual command setVariable (3ms)
+418ms ║║Calculating (string) Home == (string) >> (boolean) false
+426ms ║║Calculating (string) Home == (string) >> (boolean) false
+434ms ║║Calculating (enum) present == (enum) present >> (boolean) true
+443ms ║║Calculating (boolean) false == (boolean) false >> (boolean) true
+460ms ║║Calculating (string) present == (string) present >> (boolean) true
+466ms ║║Executed virtual command setTile (2ms)
+470ms ║║Cancelling statement #213’s schedules…
+475ms ║║Executed virtual command setVariable (3ms)
+483ms ║║Calculating (integer) 1 + (integer) 1 >> (integer) 2
+489ms ║║Cancelling statement #216’s schedules…
+492ms ║║Executed virtual command clearTile (1ms)
+520ms ║╚Execution stage complete. (312ms)
+542ms ║Setting up scheduled job for Mon, Sep 9 2019 @ 6:25:30 PM CDT (in 479.398s)
+551ms ╚Event processed successfully (550ms)
9/9/2019, 6:09:29 PM +104ms
+0ms ╔Received event [My home].time = 1568070570308 with a delay of -1204ms
+140ms ║RunTime Analysis CS > 30ms > PS > 45ms > PE > 64ms > CE
+144ms ║Runtime (59098 bytes) successfully initialized in 45ms (v0.3.10f.20190822) (143ms)
+146ms ║╔Execution stage started
+192ms ║║Calculating (integer) 1 + (integer) 1 >> (integer) 2
+216ms ║║Comparison (boolean) false is_not (boolean) true = true (2ms)
+218ms ║║Condition #241 evaluated true (5ms)
+219ms ║║Condition group #238 evaluated true (state did not change) (8ms)
+221ms ║║Cancelling statement #239’s schedules…
+228ms ║║Executed virtual command setVariable (4ms)
+231ms ║║Cancelling statement #242’s schedules…
+236ms ║║Calculating (integer) 0 + (integer) 1 >> (integer) 1
+241ms ║║Executed virtual command setVariable (3ms)
+267ms ║║Calculating (string) Home == (string) >> (boolean) false
+275ms ║║Calculating (string) Home == (string) >> (boolean) false
+282ms ║║Calculating (enum) present == (enum) present >> (boolean) true
+291ms ║║Calculating (boolean) false == (boolean) false >> (boolean) true
+308ms ║║Calculating (string) present == (string) present >> (boolean) true
+314ms ║║Executed virtual command setTile (2ms)
+317ms ║║Cancelling statement #213’s schedules…
+322ms ║║Executed virtual command setVariable (2ms)
+330ms ║║Calculating (integer) 1 + (integer) 1 >> (integer) 2
+336ms ║║Cancelling statement #216’s schedules…
+340ms ║║Executed virtual command clearTile (1ms)
+346ms ║╚Execution stage complete. (200ms)
+347ms ║Setting up scheduled job for Mon, Sep 9 2019 @ 6:17:30 PM CDT (in 480.857s)
+356ms ╚Event processed successfully (356ms)
9/9/2019, 6:01:29 PM +138ms
+0ms ╔Received event [My home].time = 1568070090308 with a delay of -1171ms
+158ms ║RunTime Analysis CS > 35ms > PS > 52ms > PE > 72ms > CE
+161ms ║Runtime (59098 bytes) successfully initialized in 52ms (v0.3.10f.20190822) (160ms)
+162ms ║╔Execution stage started
+188ms ║║Calculating (integer) 1 + (integer) 1 >> (integer) 2
+210ms ║║Comparison (boolean) false is_not (boolean) true = true (2ms)
+212ms ║║Condition #241 evaluated true (6ms)
+213ms ║║Condition group #238 evaluated true (state did not change) (8ms)
+215ms ║║Cancelling statement #239’s schedules…
+223ms ║║Executed virtual command setVariable (3ms)
+226ms ║║Cancelling statement #242’s schedules…
+231ms ║║Calculating (integer) 0 + (integer) 1 >> (integer) 1
+237ms ║║Executed virtual command setVariable (4ms)
+266ms ║║Calculating (string) Home == (string) >> (boolean) false
+276ms ║║Calculating (string) Home == (string) >> (boolean) false
+282ms ║║Calculating (enum) present == (enum) present >> (boolean) true
+291ms ║║Calculating (boolean) false == (boolean) false >> (boolean) true
+310ms ║║Calculating (string) present == (string) present >> (boolean) true
+316ms ║║Executed virtual command setTile (1ms)
+319ms ║║Cancelling statement #213’s schedules…
+326ms ║║Executed virtual command setVariable (4ms)
+336ms ║║Calculating (integer) 1 + (integer) 1 >> (integer) 2
+341ms ║║Cancelling statement #216’s schedules…
+345ms ║║Executed virtual command clearTile (0ms)
+351ms ║╚Execution stage complete. (189ms)
+352ms ║Setting up scheduled job for Mon, Sep 9 2019 @ 6:09:30 PM CDT (in 480.818s)
+360ms ╚Event processed successfully (361ms)
9/9/2019, 5:53:30 PM +615ms
+1ms ╔Received event [My home].time = 1568069610308 with a delay of 305ms
+1383ms ║RunTime Analysis CS > 1234ms > PS > 68ms > PE > 83ms > CE
+1387ms ║Runtime (59099 bytes) successfully initialized in 68ms (v0.3.10f.20190822) (1383ms)
+1388ms ║╔Execution stage started
+1465ms ║║Calculating (integer) 1 + (integer) 1 >> (integer) 2
+1532ms ║║Comparison (boolean) false is_not (boolean) true = true (4ms)
+1535ms ║║Condition #241 evaluated true (12ms)
+1537ms ║║Condition group #238 evaluated true (state did not change) (14ms)
+1540ms ║║Cancelling statement #239’s schedules…
+1549ms ║║Executed virtual command setVariable (5ms)
+1554ms ║║Cancelling statement #242’s schedules…
+1559ms ║║Calculating (integer) 0 + (integer) 1 >> (integer) 1
+1565ms ║║Executed virtual command setVariable (3ms)
+1597ms ║║Calculating (string) Home == (string) >> (boolean) false
+1605ms ║║Calculating (string) Home == (string) >> (boolean) false
+1612ms ║║Calculating (enum) present == (enum) present >> (boolean) true
+1622ms ║║Calculating (boolean) false == (boolean) false >> (boolean) true
+1639ms ║║Calculating (string) present == (string) present >> (boolean) true
+1645ms ║║Executed virtual command setTile (2ms)
+1648ms ║║Cancelling statement #213’s schedules…
+1654ms ║║Executed virtual command setVariable (3ms)
+1662ms ║║Calculating (integer) 1 + (integer) 1 >> (integer) 2
+1668ms ║║Cancelling statement #216’s schedules…
+1671ms ║║Executed virtual command clearTile (1ms)
+1701ms ║╚Execution stage complete. (313ms)
+1725ms ║Setting up scheduled job for Mon, Sep 9 2019 @ 6:01:30 PM CDT (in 477.97s)
+1734ms ╚Event processed successfully (1734ms)
9/9/2019, 5:45:29 PM +222ms
+1ms ╔Received event [My home].time = 1568069130308 with a delay of -1086ms
+146ms ║RunTime Analysis CS > 23ms > PS > 54ms > PE > 69ms > CE
+150ms ║Runtime (59098 bytes) successfully initialized in 54ms (v0.3.10f.20190822) (147ms)
+151ms ║╔Execution stage started
+175ms ║║Calculating (integer) 1 + (integer) 1 >> (integer) 2
+196ms ║║Comparison (boolean) false is_not (boolean) true = true (2ms)
+198ms ║║Condition #241 evaluated true (6ms)
+199ms ║║Condition group #238 evaluated true (state did not change) (7ms)
+201ms ║║Cancelling statement #239’s schedules…
+208ms ║║Executed virtual command setVariable (5ms)
+213ms ║║Cancelling statement #242’s schedules…
+217ms ║║Calculating (integer) 0 + (integer) 1 >> (integer) 1
+223ms ║║Executed virtual command setVariable (3ms)
+248ms ║║Calculating (string) Home == (string) >> (boolean) false
+257ms ║║Calculating (string) Home == (string) >> (boolean) false
+264ms ║║Calculating (enum) present == (enum) present >> (boolean) true
+272ms ║║Calculating (boolean) false == (boolean) false >> (boolean) true
+289ms ║║Calculating (string) present == (string) present >> (boolean) true
+294ms ║║Executed virtual command setTile (1ms)
+297ms ║║Cancelling statement #213’s schedules…
+303ms ║║Executed virtual command setVariable (3ms)
+311ms ║║Calculating (integer) 1 + (integer) 1 >> (integer) 2
+315ms ║║Cancelling statement #216’s schedules…
+319ms ║║Executed virtual command clearTile (0ms)
+324ms ║╚Execution stage complete. (174ms)
+325ms ║Setting up scheduled job for Mon, Sep 9 2019 @ 5:53:30 PM CDT (in 480.761s)
+334ms ╚Event processed successfully (334ms)
9/9/2019, 5:37:29 PM +141ms
+0ms ╔Received event [My home].time = 1568068650308 with a delay of -1168ms
+124ms ║RunTime Analysis CS > 30ms > PS > 34ms > PE > 60ms > CE
+127ms ║Runtime (59098 bytes) successfully initialized in 34ms (v0.3.10f.20190822) (126ms)
+128ms ║╔Execution stage started
+156ms ║║Calculating (integer) 1 + (integer) 1 >> (integer) 2
+177ms ║║Comparison (boolean) false is_not (boolean) true = true (2ms)
+178ms ║║Condition #241 evaluated true (5ms)
+180ms ║║Condition group #238 evaluated true (state did not change) (7ms)
+182ms ║║Cancelling statement #239’s schedules…
+188ms ║║Executed virtual command setVariable (3ms)
+192ms ║║Cancelling statement #242’s schedules…
+196ms ║║Calculating (integer) 0 + (integer) 1 >> (integer) 1
+200ms ║║Executed virtual command setVariable (2ms)
+226ms ║║Calculating (string) Home == (string) >> (boolean) false
+234ms ║║Calculating (string) Home == (string) >> (boolean) false
+241ms ║║Calculating (enum) present == (enum) present >> (boolean) true
+249ms ║║Calculating (boolean) false == (boolean) false >> (boolean) true
+265ms ║║Calculating (string) present == (string) present >> (boolean) true
+270ms ║║Executed virtual command setTile (1ms)
+273ms ║║Cancelling statement #213’s schedules…
+279ms ║║Executed virtual command setVariable (3ms)
+288ms ║║Calculating (integer) 1 + (integer) 1 >> (integer) 2
+293ms ║║Cancelling statement #216’s schedules…
+296ms ║║Executed virtual command clearTile (0ms)
+302ms ║╚Execution stage complete. (174ms)
+303ms ║Setting up scheduled job for Mon, Sep 9 2019 @ 5:45:30 PM CDT (in 480.864s)
+312ms ╚Event processed successfully (312ms)
9/9/2019, 5:29:29 PM +116ms
+1ms ╔Received event [My home].time = 1568068170308 with a delay of -1192ms
+136ms ║RunTime Analysis CS > 20ms > PS > 41ms > PE > 75ms > CE
+140ms ║Runtime (59098 bytes) successfully initialized in 41ms (v0.3.10f.20190822) (138ms)
+141ms ║╔Execution stage started
+165ms ║║Calculating (integer) 1 + (integer) 1 >> (integer) 2
+187ms ║║Comparison (boolean) false is_not (boolean) true = true (1ms)
+188ms ║║Condition #241 evaluated true (7ms)
+189ms ║║Condition group #238 evaluated true (state did not change) (8ms)
+191ms ║║Cancelling statement #239’s schedules…
+198ms ║║Executed virtual command setVariable (3ms)
+201ms ║║Cancelling statement #242’s schedules…
+206ms ║║Calculating (integer) 0 + (integer) 1 >> (integer) 1
+211ms ║║Executed virtual command setVariable (3ms)
+237ms ║║Calculating (string) Home == (string) >> (boolean) false
+244ms ║║Calculating (string) Home == (string) >> (boolean) false
+250ms ║║Calculating (enum) present == (enum) present >> (boolean) true
+258ms ║║Calculating (boolean) false == (boolean) false >> (boolean) true
+275ms ║║Calculating (string) present == (string) present >> (boolean) true
+280ms ║║Executed virtual command setTile (1ms)
+283ms ║║Cancelling statement #213’s schedules…
+288ms ║║Executed virtual command setVariable (3ms)
+296ms ║║Calculating (integer) 1 + (integer) 1 >> (integer) 2
+300ms ║║Cancelling statement #216’s schedules…
+303ms ║║Executed virtual command clearTile (0ms)
+309ms ║╚Execution stage complete. (169ms)
+310ms ║Setting up scheduled job for Mon, Sep 9 2019 @ 5:37:30 PM CDT (in 480.883s)
+321ms ╚Event processed successfully (321ms)
9/9/2019, 5:21:29 PM +141ms
+0ms ╔Received event [My home].time = 1568067690308 with a delay of -1167ms
+149ms ║RunTime Analysis CS > 34ms > PS > 45ms > PE > 69ms > CE
+152ms ║Runtime (59098 bytes) successfully initialized in 45ms (v0.3.10f.20190822) (151ms)
+153ms ║╔Execution stage started
+179ms ║║Calculating (integer) 1 + (integer) 1 >> (integer) 2
+201ms ║║Comparison (boolean) false is_not (boolean) true = true (1ms)
+202ms ║║Condition #241 evaluated true (6ms)
+203ms ║║Condition group #238 evaluated true (state did not change) (7ms)
+206ms ║║Cancelling statement #239’s schedules…
+212ms ║║Executed virtual command setVariable (4ms)
+216ms ║║Cancelling statement #242’s schedules…
+221ms ║║Calculating (integer) 0 + (integer) 1 >> (integer) 1
+225ms ║║Executed virtual command setVariable (2ms)
+255ms ║║Calculating (string) Home == (string) >> (boolean) false
+265ms ║║Calculating (string) Home == (string) >> (boolean) false
+272ms ║║Calculating (enum) present == (enum) present >> (boolean) true
+281ms ║║Calculating (boolean) false == (boolean) false >> (boolean) true
+299ms ║║Calculating (string) present == (string) present >> (boolean) true
+305ms ║║Executed virtual command setTile (2ms)
+308ms ║║Cancelling statement #213’s schedules…
+314ms ║║Executed virtual command setVariable (3ms)
+323ms ║║Calculating (integer) 1 + (integer) 1 >> (integer) 2
+328ms ║║Cancelling statement #216’s schedules…
+332ms ║║Executed virtual command clearTile (0ms)
+337ms ║╚Execution stage complete. (184ms)
+339ms ║Setting up scheduled job for Mon, Sep 9 2019 @ 5:29:30 PM CDT (in 480.829s)
+347ms ╚Event processed successfully (347ms)
9/9/2019, 5:13:29 PM +75ms
+0ms ╔Received event [My home].time = 1568067210308 with a delay of -1233ms
+161ms ║RunTime Analysis CS > 24ms > PS > 60ms > PE > 76ms > CE
+165ms ║Runtime (59098 bytes) successfully initialized in 60ms (v0.3.10f.20190822) (164ms)
+167ms ║╔Execution stage started
+192ms ║║Calculating (integer) 1 + (integer) 1 >> (integer) 2
+217ms ║║Comparison (boolean) false is_not (boolean) true = true (1ms)
+220ms ║║Condition #241 evaluated true (6ms)
+221ms ║║Condition group #238 evaluated true (state did not change) (10ms)
+224ms ║║Cancelling statement #239’s schedules…
+233ms ║║Executed virtual command setVariable (4ms)
+237ms ║║Cancelling statement #242’s schedules…
+244ms ║║Calculating (integer) 0 + (integer) 1 >> (integer) 1
+250ms ║║Executed virtual command setVariable (2ms)
+287ms ║║Calculating (string) Home == (string) >> (boolean) false
+295ms ║║Calculating (string) Home == (string) >> (boolean) false
+302ms ║║Calculating (enum) present == (enum) present >> (boolean) true
+311ms ║║Calculating (boolean) false == (boolean) false >> (boolean) true
+329ms ║║Calculating (string) present == (string) present >> (boolean) true
+334ms ║║Executed virtual command setTile (1ms)
+337ms ║║Cancelling statement #213’s schedules…
+341ms ║║Executed virtual command setVariable (2ms)
+351ms ║║Calculating (integer) 1 + (integer) 1 >> (integer) 2
+356ms ║║Cancelling statement #216’s schedules…
+360ms ║║Executed virtual command clearTile (1ms)
+367ms ║╚Execution stage complete. (199ms)
+368ms ║Setting up scheduled job for Mon, Sep 9 2019 @ 5:21:30 PM CDT (in 480.865s)
+376ms ╚Event processed successfully (376ms)
9/9/2019, 5:05:29 PM +117ms
+1ms ╔Received event [My home].time = 1568066730308 with a delay of -1191ms
+176ms ║RunTime Analysis CS > 30ms > PS > 67ms > PE > 78ms > CE
+180ms ║Runtime (59098 bytes) successfully initialized in 67ms (v0.3.10f.20190822) (178ms)
+181ms ║╔Execution stage started
+211ms ║║Calculating (integer) 1 + (integer) 1 >> (integer) 2
+236ms ║║Comparison (boolean) false is_not (boolean) true = true (2ms)
+238ms ║║Condition #241 evaluated true (7ms)
+239ms ║║Condition group #238 evaluated true (state did not change) (8ms)
+242ms ║║Cancelling statement #239’s schedules…
+253ms ║║Executed virtual command setVariable (8ms)
+257ms ║║Cancelling statement #242’s schedules…
+262ms ║║Calculating (integer) 0 + (integer) 1 >> (integer) 1
+270ms ║║Executed virtual command setVariable (6ms)
+304ms ║║Calculating (string) Home == (string) >> (boolean) false
+315ms ║║Calculating (string) Home == (string) >> (boolean) false
+325ms ║║Calculating (enum) present == (enum) present >> (boolean) true
+338ms ║║Calculating (boolean) false == (boolean) false >> (boolean) true
+361ms ║║Calculating (string) present == (string) present >> (boolean) true
+369ms ║║Executed virtual command setTile (2ms)
+374ms ║║Cancelling statement #213’s schedules…
+382ms ║║Executed virtual command setVariable (3ms)
+395ms ║║Calculating (integer) 1 + (integer) 1 >> (integer) 2
+403ms ║║Cancelling statement #216’s schedules…
+409ms ║║Executed virtual command clearTile (1ms)
+418ms ║╚Execution stage complete. (237ms)
+420ms ║Setting up scheduled job for Mon, Sep 9 2019 @ 5:13:30 PM CDT (in 480.772s)
+430ms ╚Event processed successfully (430ms)
9/9/2019, 4:57:29 PM +138ms
+0ms ╔Received event [My home].time = 1568066250308 with a delay of -1170ms
+474ms ║RunTime Analysis CS > 194ms > PS > 228ms > PE > 52ms > CE
+478ms ║Runtime (59101 bytes) successfully initialized in 228ms (v0.3.10f.20190822) (477ms)
+479ms ║╔Execution stage started
+506ms ║║Calculating (integer) 1 + (integer) 1 >> (integer) 2
+527ms ║║Comparison (boolean) false is_not (boolean) true = true (2ms)
+529ms ║║Condition #241 evaluated true (5ms)
+530ms ║║Condition group #238 evaluated true (state did not change) (8ms)
+532ms ║║Cancelling statement #239’s schedules…
+538ms ║║Executed virtual command setVariable (3ms)
+541ms ║║Cancelling statement #242’s schedules…
+546ms ║║Calculating (integer) 0 + (integer) 1 >> (integer) 1
+550ms ║║Executed virtual command setVariable (2ms)
+576ms ║║Calculating (string) Home == (string) >> (boolean) false
+584ms ║║Calculating (string) Home == (string) >> (boolean) false
+591ms ║║Calculating (enum) present == (enum) present >> (boolean) true
+600ms ║║Calculating (boolean) false == (boolean) false >> (boolean) true
+616ms ║║Calculating (string) present == (string) present >> (boolean) true
+622ms ║║Executed virtual command setTile (1ms)
+625ms ║║Cancelling statement #213’s schedules…
+630ms ║║Executed virtual command setVariable (3ms)
+638ms ║║Calculating (integer) 1 + (integer) 1 >> (integer) 2
+643ms ║║Cancelling statement #216’s schedules…
+646ms ║║Executed virtual command clearTile (0ms)


Device Status Tiles
#2

I apologize, I do not have the time to look at this. My advice would be to contact the original creator of this piston, since they are likely the most familiar with it.


Pro Tip:
With only one Presence sensor, this entire piston can be written in about 5 lines of code


#3

I have more that I plan to integrate but if it doesn’t work with just one I don’t want to add the other ones


#4

I tried to contact them but for some reason the site says I cannot direct message the user, they haven’t logged in for about 6 months anyway. I will try to post in the thread to see if anyone picks it up but I don’t need an answer super quick, I just want to get it working within a week or two.


#5

I think this happens to brand new users. I am not sure when this restriction lifts, but it shouldn’t be too long.


Unless they disabled it in their settings, a message sent to a user here will also send them an email notification.


#6

Again, I can’t dig into this now, but I noticed something that might get you pointed in the right direction:

This observation is based on line 84:
IF X is false, then "No Event Yet"

Lines 62-64 basically says:
IF X is false, then set X to true
This means the tile can be drawn when someone arrives or departs

Lines 78-81 basically says:
IF X is false, then leave it false
This means the tile will be “No Event Yet” every 8 minutes

(unless I am misunderstanding this piston)


I am curious as to what your variable {TileActive} is right now? (line 42)


#7

I don’t know if this matters, but personally, I avoid {{double}} curly brackets like you have on lines 53, 55, 60 & 74…


#8

thanks for the insights, I will check this out when I have time today, I know you are busy, thats why I said its fine if it takes awhile for you or someone else to get to, it would just be nice to get it working within a few weeks but I understand that its not like I am paying for your time here.


#9

I tested it as is with a simulated presence sensor and it worked as intended. If you want to play with it without messing with your phone, you can set up one in the IDE. Look up ‘creating a virtual switch’ in the ST forum, it’s the same thing but instead of simulated switch, you’ll want to pick ‘simulated presence’.


#10

Great suggestion @eibyer!

I made a quick tutorial detailing how to create Simulated devices…
(In this case, Type can be: Simulated Presence)


#11

hey, thanks for the suggestions and time you spent on this. I feel super dumb here guys, I read the virtual switch stuff that eibyer mentioned and you wrote and I realized I never added the presence sensor to webcore, sure enough it was not checked. It showed up in the dashboard though so I assumed it was added!!! Lesson Learned. I don’t know that its working but since it works in ST I think it will work with webcore now.

Also is it still recommended to run tiles from a second instance of webcore? I seem to be getting conflicting info from threads but since my memory usage is already at 12% with just 3 pistons running it seems reasonable.


#12

No need for second instance if you don’t have a lot of pistons.


#13

Hey so evidently the fact that the presence sensor was not added to webcore wasn’t the problem, I mean it must have been a reason that it wasn’t working but even after adding it it still doesn’t update the event. I haven’t had a chance to add the simulated switch and test stuff out yet however it should have worked today if it was going to. I have the phone presence sensor added to “sensors” and also “compatibility sensors 2 > presence sensors” and I saved webcore “multiple times” until a green bar pops up and says webcore has been successfully updated. So that should be everything required right? I mean for the sensor to be shown in webcore? I only ask because I could see it in dashboard before I even had it added to “available devices” so I thought it saw it before hand.

Since the code works for the other replier when using a virtual switch I think the problem has to be with my phone but like I said before it updates just fine in smartthings classic… I really dont know


#14

You can also just create a simple piston that logs the status of your presence sensor if you want to rule out that the phone is/is not the issue.


#15

just to make sure this is all I would need for that right? And enable full logging?


#16

I was thinking more like below…


#17

ok, thanks, I have it changed now.

Also I had time to test out the simulated switch thing and you are correct, that works perfectly fine with the code so it has to be something with my phone… I am not sure what it could be though. I believe I have a sufficiently large radius set up for home, I followed all the instructions I could find online. Anyone have ideas for troubleshooting this beyond the simulated sensor? I mean beyond the logs which won’t update till tomorrow morning at the earliest, assuming that no events get sent which seems the likely outcome.

EDIT: OK so this is very weird… I found the settings for forcing my sensor to say I am away when I am not and now the piston updates… but I didn’t change anything related to it in anyway besides the simulated sensor. I will still have to see if it updates tomorrow when I do actually leave now that its set to ‘automatic’ again. Very strange…


#18

Ok so I left home this morning and still no dice. I have read that in the past you use to have yo install the sensor twice on your phone at least for android but as far as I can tell the part that didnt work was the setup button not appearing, not the issue I am having but I will try it out this afternoon.


#19

I don’t use the webcore presence app where you can set multiple locations. I only have my phone connected to ST as presence device.


#20

Yeah I removed the webcore version to try to set it up again but I can’t seem to get the button to appear now, lol of course. So I just set up a ST version which seems to know when I am away but it appears to have much less functionality vs the webcore kne