1) Give a description of the problem
As soon as I added a second device in kidsLightDevice, the IF statement will no longer ever evaluate to TRUE. I can’t figure out how to have the IF evaluate to TRUE if any of the devices in kidsLightDevice match $currentEventDevice
2) What is the expected behaviour?
If any of the devices in kidsLightDevice match the $currentEventDevice, the earlier start time for the dimming is set
3) What is happening/not happening?
The earlier dim time is never set as soon as I add more than one device in kidsLightDevice
**4) Post a Green Snapshot of the piston
5) Attach logs after turning logging level to Full
7/2/2019, 9:04:31 PM +472ms
+2ms ╔Received event [Master Toilet Light].switch = on with a delay of 214ms
+161ms ║RunTime Analysis CS > 31ms > PS > 69ms > PE > 61ms > CE
+164ms ║Runtime (47570 bytes) successfully initialized in 69ms (v0.3.10e.20190628) (161ms)
+165ms ║╔Execution stage started
+181ms ║║Comparison (enum) on is (string) on = true (2ms)
+183ms ║║Condition #20 evaluated true (14ms)
+184ms ║║Condition group #null evaluated true (state did not change) (15ms)
+225ms ║║Comparison (enum) on changes_to (string) on = true (1ms)
+228ms ║║Condition #3 evaluated true (40ms)
+229ms ║║Condition group #1 evaluated true (state did not change) (43ms)
+240ms ║║Comparison (dynamic) Master Toilet Light is_equal_to (dynamic) Upstairs Bathroom Light = false (1ms)
+241ms ║║Condition #27 evaluated false (9ms)
+250ms ║║Comparison (dynamic) Master Toilet Light is_equal_to (dynamic) Kids Bedroom Closet Light = false (2ms)
+252ms ║║Condition #28 evaluated false (10ms)
+253ms ║║Condition group #24 evaluated false (state did not change) (22ms)
+272ms ║║Comparison (time) 75871729 is_after (time) 75600000 = true (8ms)
+273ms ║║Time restriction check passed
+275ms ║║Condition #10 evaluated true (18ms)
+277ms ║║Condition group #6 evaluated true (state did not change) (20ms)
+280ms ║║Cancelling statement #7’s schedules…
+515ms ║║Executed physical command [Master Toilet Light].setLevel([30]) (227ms)
+517ms ║║Executed [Master Toilet Light].setLevel (228ms)
+520ms ║╚Execution stage complete. (355ms)
+522ms ╚Event processed successfully (521ms)
NOTE: Yes, I know that the LOGS are not for the event where a device in the kidsLightDevice was activated but the kids are sleeping and I can’t trigger it now. Either way, this piston was working until I added two device in kidsLightDevice so I am quite sure it is not working due to a bad condition. I am also quite sure that my code is awful so any improvements are quite welcome!!