1) Give a description of the problem
I have a routine that checks light levels once a minute during certain hours and adjusts lights up or down to maintain even lighting in the room when ambient light changes. On an intermittent basis it sometimes returns errors such as “Error reading current value for Mantle Left.level:” This seems to return zero, rather than the actual light level-- creates the impression that ambient light exceeds minimum and therefore turns off all the lights.
2) What is the expected behaviour?
Assuming that these intermittent failures to detect light levels or switch settings cannot be prevented, I’d like to be able to say something like “on error, skip execution”.
3) What is happening/not happening?
A statement such as:
Returns to the log: “Error reading current value for Mantle Left.level:”
4) Post a Green Snapshot of the piston
(UPLOAD YOUR IMAGE HERE)
5) Attach logs after turning logging level to Full
(PASTE YOUR LOGS HERE THEN HIGHLIGHT ALL OF THE LOGS AND CLICK ON THE </> ICON TO FORMAT THEM CORRECTLY)4/28/2020, 12:13:11 PM +237ms
+1ms ╔Received event [Home].time = 1588090392340 with a delay of -1103ms
+194ms ║RunTime Analysis CS > 14ms > PS > 126ms > PE > 54ms > CE
+198ms ║Runtime (64218 bytes) successfully initialized in 126ms (v0.3.110.20191009) (196ms)
+199ms ║╔Execution stage started
+242ms ║║Comparison (integer) 50 changed = false (20ms)
+261ms ║║Comparison (integer) 50 changed = false (18ms)
+280ms ║║Comparison (integer) 50 changed = false (19ms)
+298ms ║║Comparison (integer) 50 changed = false (17ms)
+300ms ║║Condition #50 evaluated false (92ms)
+301ms ║║Condition group #49 evaluated false (state did not change) (93ms)
+309ms ║║Comparison (enum) off is (string) off = true (1ms)
+311ms ║║Condition #4 evaluated true (6ms)
+317ms ║║Comparison (enum) open is (string) open = true (1ms)
+319ms ║║Condition #6 evaluated true (7ms)
+325ms ║║Comparison (enum) on is (string) on = true (2ms)
+326ms ║║Condition #11 evaluated true (7ms)
+334ms ║║Comparison (enum) off is (string) off = true (1ms)
+335ms ║║Condition #21 evaluated true (8ms)
+336ms ║║Condition group #3 evaluated true (state did not change) (33ms)
+337ms ║║Condition group #2 evaluated true (state did not change) (34ms)
+344ms ║║Error reading current value for Mantle Left.switch:
+349ms ║║Error reading current value for Mantle Right.switch:
+352ms ║║Comparison (enum) is (string) off = false (1ms)
+355ms ║║Comparison (enum) is (string) off = false (1ms)
+356ms ║║Condition #23 evaluated false (17ms)
+357ms ║║Condition group #22 evaluated false (state did not change) (19ms)
+365ms ║║Error reading current value for Mantle Left.level:
+368ms ║║Comparison (integer) 0 is_equal_to (integer) 50 = false (1ms)
+370ms ║║Condition #85 evaluated false (10ms)
+371ms ║║Condition group #84 evaluated false (state did not change) (11ms)
+378ms ║║Error reading current value for Mantle Left.level:
+384ms ║║Error reading current value for Mantle Right.level:
+388ms ║║Comparison (integer) 0 is_less_than_or_equal_to (integer) 5 = true (2ms)
+390ms ║║Cancelling condition #31’s schedules…
+390ms ║║Condition #31 evaluated true (17ms)
+392ms ║║Cancelling condition #30’s schedules…
+392ms ║║Condition group #30 evaluated true (state changed) (19ms)
+395ms ║║Cancelling statement #32’s schedules…
+409ms ║║Executed physical command [Becky Back].setLevel([0]) (9ms)
+410ms ║║Executed [Becky Back].setLevel (10ms)