Hi all
1) Give a description of the problem
I have an IKEA socket, that I want to be activated IF my Hue Lightstrip changes to online (electrical plugged in), and vice versa, deactivate IF the Hue Lightstrip changes to offline (electrical unplugged).
2) What is the expected behaviour?
I had a piston that used to work, but it hasn’t been working since the begining of October when the hub was updated. The piston used this condition: DeviceWatch-DeviceStatus to see if the device changed from offline to online and vice versa.
What can I do instead to check if a device changes state from online to offline, and offline to online?
3) What is happening/not happening?
Well, it stopped working. When i check the device info in SmartThings Groovy IDE, under Current States, and hover DeviceWatch-DeviceStatus the “tooltip” says that the it hasn’t updated status since Oct.5th.
**4) Post a Green Snapshot of the piston![image|45x37]
5) Attach logs after turning logging level to Full
You might notice some differences when comparing the log to the piston. This is because I tried changing some things, to for testing purposes, but I changed it all back to the original piston design, that used to work. Notice the two oldest logs from 05.10.2020 when the piston still was working.
12.11.2020 11.58.47 +900ms
+1ms ╔Received event [Mit hjem].test = 1605178727898 with a delay of 1ms
+98ms ║RunTime Analysis CS > 21ms > PS > 5ms > PE > 72ms > CE
+100ms ║Runtime (37447 bytes) successfully initialized in 5ms (v0.3.110.20191009) (97ms)
+102ms ║╔Execution stage started
+118ms ║║Condition #2 evaluated false (9ms)
+119ms ║║Condition group #1 evaluated false (state did not change) (11ms)
+128ms ║║Condition #4 evaluated false (6ms)
+129ms ║║Condition group #3 evaluated false (state did not change) (7ms)
+138ms ║╚Execution stage complete. (36ms)
+139ms ╚Event processed successfully (139ms)
16.10.2020 21.11.28 +941ms
+1ms ╔Starting piston... (v0.3.110.20191009)
+163ms ║╔Subscribing to devices...
+198ms ║║Subscribing to Køkkenbord lys.DeviceWatch-DeviceStatus...
+295ms ║║Subscribing to Elkedel...
+297ms ║╚Finished subscribing (142ms)
+353ms ╚Piston successfully started (352ms)
16.10.2020 16.54.25 +734ms
+0ms ╔Received event [Mit hjem].test = 1602860065731 with a delay of 2ms
+75ms ║RunTime Analysis CS > 14ms > PS > 4ms > PE > 57ms > CE
+78ms ║Runtime (37419 bytes) successfully initialized in 4ms (v0.3.110.20191009) (75ms)
+79ms ║╔Execution stage started
+96ms ║║Condition #2 evaluated false (10ms)
+98ms ║║Condition group #1 evaluated false (state did not change) (13ms)
+104ms ║║Condition #4 evaluated false (3ms)
+106ms ║║Condition group #3 evaluated false (state did not change) (4ms)
+111ms ║╚Execution stage complete. (32ms)
+113ms ╚Event processed successfully (114ms)
16.10.2020 16.54.16 +282ms
+1ms ╔Starting piston... (v0.3.110.20191009)
+178ms ║╔Subscribing to devices...
+212ms ║║Subscribing to Køkkenbord lys.$status...
+277ms ║║Subscribing to Elkedel...
+278ms ║╚Finished subscribing (107ms)
+328ms ╚Piston successfully started (328ms)
16.10.2020 16.09.24 +125ms
+1ms ╔Received event [Mit hjem].test = 1602857364123 with a delay of 2ms
+92ms ║RunTime Analysis CS > 27ms > PS > 5ms > PE > 60ms > CE
+95ms ║Runtime (37286 bytes) successfully initialized in 5ms (v0.3.110.20191009) (91ms)
+97ms ║╔Execution stage started
+112ms ║║Condition #2 evaluated false (9ms)
+114ms ║║Condition group #1 evaluated false (state did not change) (11ms)
+124ms ║║Condition #4 evaluated false (7ms)
+126ms ║║Condition group #3 evaluated false (state did not change) (8ms)
+131ms ║╚Execution stage complete. (35ms)
+133ms ╚Event processed successfully (133ms)
16.10.2020 16.08.58 +134ms
+0ms ╔Received event [Mit hjem].test = 1602857338131 with a delay of 2ms
+101ms ║RunTime Analysis CS > 27ms > PS > 7ms > PE > 68ms > CE
+104ms ║Runtime (37287 bytes) successfully initialized in 7ms (v0.3.110.20191009) (101ms)
+106ms ║╔Execution stage started
+139ms ║║Condition #2 evaluated false (26ms)
+141ms ║║Condition group #1 evaluated false (state did not change) (27ms)
+152ms ║║Condition #4 evaluated false (8ms)
+154ms ║║Condition group #3 evaluated false (state did not change) (9ms)
+160ms ║╚Execution stage complete. (54ms)
+162ms ╚Event processed successfully (163ms)
14.10.2020 21.04.31 +815ms
+0ms ╔Starting piston... (v0.3.110.20191009)
+134ms ║╔Subscribing to devices...
+164ms ║║Subscribing to Køkkenbord lys.DeviceWatch-DeviceStatus...
+218ms ║║Subscribing to Elkedel...
+220ms ║╚Finished subscribing (93ms)
+271ms ╚Piston successfully started (271ms)
14.10.2020 18.47.10 +972ms
+1ms ╔Starting piston... (v0.3.110.20191009)
+140ms ║╔Subscribing to devices...
+174ms ║║Subscribing to Køkkenbord lys.DeviceWatch-DeviceStatus...
+261ms ║║Subscribing to Elkedel...
+263ms ║╚Finished subscribing (132ms)
+315ms ╚Piston successfully started (314ms)
14.10.2020 18.22.48 +954ms
+1ms ╔Starting piston... (v0.3.110.20191009)
+165ms ║╔Subscribing to devices...
+203ms ║║Subscribing to LeKlint.DeviceWatch-DeviceStatus...
+406ms ║║Subscribing to Elkedel...
+407ms ║╚Finished subscribing (253ms)
+463ms ╚Piston successfully started (461ms)
14.10.2020 17.54.20 +270ms
+1ms ╔Received event [Mit hjem].test = 1602690860267 with a delay of 2ms
+161ms ║RunTime Analysis CS > 23ms > PS > 4ms > PE > 135ms > CE
+164ms ║Runtime (37095 bytes) successfully initialized in 4ms (v0.3.110.20191009) (161ms)
+165ms ║╔Execution stage started
+180ms ║║Condition #2 evaluated false (8ms)
+182ms ║║Condition group #1 evaluated false (state did not change) (9ms)
+191ms ║║Condition #4 evaluated false (6ms)
+192ms ║║Condition group #3 evaluated false (state did not change) (7ms)
+197ms ║╚Execution stage complete. (32ms)
+199ms ╚Event processed successfully (199ms)
14.10.2020 10.39.48 +970ms
+1ms ╔Starting piston... (v0.3.110.20191009)
+132ms ║╔Subscribing to devices...
+163ms ║║Subscribing to Køkkenbord lys.DeviceWatch-DeviceStatus...
+213ms ║║Subscribing to Elkedel...
+214ms ║╚Finished subscribing (90ms)
+241ms ║Cancelling condition #2's schedules...
+242ms ║Cancelling condition #1's schedules...
+266ms ╚Piston successfully started (266ms)
5.10.2020 14.46.57 +658ms
+1ms ╔Received event [Køkkenbord lys].DeviceWatch-DeviceStatus = online with a delay of 44ms
+69ms ║RunTime Analysis CS > 21ms > PS > 4ms > PE > 45ms > CE
+72ms ║Runtime (37109 bytes) successfully initialized in 4ms (v0.3.110.20191009) (70ms)
+73ms ║╔Execution stage started
+80ms ║║Comparison (string) online changes_to (string) online = true (1ms)
+82ms ║║Cancelling condition #2's schedules...
+83ms ║║Condition #2 evaluated true (6ms)
+84ms ║║Cancelling condition #1's schedules...
+85ms ║║Condition group #1 evaluated true (state changed) (8ms)
+87ms ║║Cancelling statement #7's schedules...
+104ms ║║Executed physical command [Elkedel].on() (14ms)
+105ms ║║Executed [Elkedel].on (16ms)
+111ms ║║Comparison (string) online changes_to (string) offline = false (1ms)
+113ms ║║Cancelling condition #4's schedules...
+114ms ║║Condition #4 evaluated false (6ms)
+115ms ║║Cancelling condition #3's schedules...
+116ms ║║Condition group #3 evaluated false (state changed) (8ms)
+118ms ║╚Execution stage complete. (46ms)
+119ms ╚Event processed successfully (119ms)
5.10.2020 07.36.22 +940ms
+1ms ╔Received event [Køkkenbord lys].DeviceWatch-DeviceStatus = offline with a delay of 55ms
+96ms ║RunTime Analysis CS > 26ms > PS > 4ms > PE > 65ms > CE
+98ms ║Runtime (37112 bytes) successfully initialized in 4ms (v0.3.110.20191009) (96ms)
+99ms ║╔Execution stage started
+108ms ║║Comparison (string) offline changes_to (string) online = false (0ms)
+109ms ║║Cancelling condition #2's schedules...
+110ms ║║Condition #2 evaluated false (6ms)
+112ms ║║Cancelling condition #1's schedules...
+113ms ║║Condition group #1 evaluated false (state changed) (8ms)
+119ms ║║Comparison (string) offline changes_to (string) offline = true (0ms)
+120ms ║║Cancelling condition #4's schedules...
+121ms ║║Condition #4 evaluated true (6ms)
+122ms ║║Cancelling condition #3's schedules...
+123ms ║║Condition group #3 evaluated true (state changed) (8ms)
+126ms ║║Cancelling statement #5's schedules...
+153ms ║║Executed physical command [Elkedel].off() (22ms)
+154ms ║║Executed [Elkedel].off (24ms)
+157ms ║╚Execution stage complete. (58ms)
+158ms ╚Event processed successfully (158ms)
REMOVE BELOW AFTER READING