1) Give a description of the problem
Newbie here. I want the RGBW light to be red when the alarm is armed, and green when disarmed. Red works fine but the light turns off instead of green.
Thanks
2) What is the expected behavior?
Light should be red when alarm is armed and green when it is disarmed.
3) What is happening/not happening?
Red works fine, but the bulb turns off instead of green. Logging shows the green path is being executed. If I change the if statement to “Is Not” then the bulb turns green so I know green works on the bulb.
**4) Post a Green Snapshot of the piston
5) Attach any logs (From ST IDE and by turning logging level to Full)
1/24/2019, 11:00:31 AM +534ms
+1ms ╔Received event [Home].alarmSystemStatus = off with a delay of 38ms
+88ms ║RunTime Analysis CS > 11ms > PS > 63ms > PE > 13ms > CE
+90ms ║Runtime (37941 bytes) successfully initialized in 63ms (v0.3.109.20181207) (88ms)
+91ms ║╔Execution stage started
+105ms ║║Comparison (string) off is (string) off = true (2ms)
+107ms ║║Cancelling condition #2’s schedules…
+108ms ║║Condition #2 evaluated true (11ms)
+109ms ║║Cancelling condition #1’s schedules…
+111ms ║║Condition group #1 evaluated true (state changed) (13ms)
+114ms ║║Cancelling statement #6’s schedules…
+124ms ║║Executed physical command [null].setColor([[hex: #008000, hue:33, saturation:100, level:25]]) (5ms)
+125ms ║║Executed [SYLVANIA Smart A19 RGBW].setColor (7ms)
+136ms ║║Executed physical command [null].setLevel([20]) (7ms)
+137ms ║║Executed [SYLVANIA Smart A19 RGBW].setLevel (9ms)
+144ms ║║Disarmed
+146ms ║║Executed virtual command [SYLVANIA Smart A19 RGBW].log (1ms)
+151ms ║║Skipped execution of physical command [null].on([]) because it would make no change to the device. (2ms)
+152ms ║║Executed [SYLVANIA Smart A19 RGBW].on (4ms)
+155ms ║╚Execution stage complete. (64ms)
+156ms ╚Event processed successfully (156ms)
1/24/2019, 11:00:27 AM +865ms
+0ms ╔Received event [Home].alarmSystemStatus = away with a delay of 58ms
+216ms ║RunTime Analysis CS > 19ms > PS > 176ms > PE > 21ms > CE
+219ms ║Runtime (37940 bytes) successfully initialized in 176ms (v0.3.109.20181207) (217ms)
+220ms ║╔Execution stage started
+234ms ║║Comparison (string) away is (string) off = false (3ms)
+236ms ║║Cancelling condition #2’s schedules…
+237ms ║║Condition #2 evaluated false (11ms)
+239ms ║║Cancelling condition #1’s schedules…
+240ms ║║Condition group #1 evaluated false (state changed) (13ms)
+243ms ║║Cancelling statement #3’s schedules…
+262ms ║║Executed physical command [null].setColor([[hex: #FF0000, hue:0, saturation:100, level:50]]) (12ms)
+263ms ║║Executed [SYLVANIA Smart A19 RGBW].setColor (16ms)
+276ms ║║Executed physical command [null].setLevel([10]) (9ms)
+277ms ║║Executed [SYLVANIA Smart A19 RGBW].setLevel (11ms)
+285ms ║║Armed
+286ms ║║Executed virtual command [SYLVANIA Smart A19 RGBW].log (2ms)
+289ms ║╚Execution stage complete. (70ms)
+291ms ╚Event processed successfully (291ms)
REMOVE BELOW AFTER READING
If a solution is found for your question then please mark the post as the solution.