1) Give a description of the problem
I want an event to run everyday.
2) What is the expected behavior?
At a specified time everyday, the program assigns variables to turn lights on and off.
The timings change by season in this program.
3) What is happening/not happening?
Outside of the “while” statement which will eventually be triggered at a set time everyday (in the screenshot, it’s an always-true condition for testing), the “IF” statement accurately sets the 4 Time variables.
However, inside of a WHILE or a TIMER, the variables don’t get set, regardless of the state of the “while”
I want to be able to “initiate” the times at 9:30 AM everyday, and then using those times, have the light on/light off events trigger daily.
**4) Post a Green Snapshot of the piston
*5) Attach any logs (From ST IDE and by turning logging level to Full)
3/17/2018, 12:12:18 AM +545ms +1ms ╔Starting piston... (v0.3.000.20180224) +155ms ║╔Subscribing to devices... +287ms ║║Subscribing to Light One... +288ms ║╚Finished subscribing (137ms) +313ms ║Comparison (string) 12:12 A.M. is (string) 12:12 A.M. = true (1ms) +331ms ║Comparison (date) 1521259200000 is_between (date) 1537675200000 .. (date) 1543640400000 = false (4ms) +353ms ║Comparison (date) 1521259200000 is_between (date) 1543726800000 .. (date) 1521604800000 = true (5ms) +374ms ║Comparison (date) 1521259200000 is_between (date) 1521691200000 .. (date) 1527825600000 = false (4ms) +395ms ║Comparison (date) 1521259200000 is_between (date) 1527912000000 .. (date) 1537588800000 = false (6ms) +409ms ║Comparison (time) 738947 is (time) 0 = false (4ms) +419ms ║Comparison (time) 738956 is (time) 0 = false (4ms) +441ms ║Calculating (decimal) 0.0 - (decimal) 2.0 >> (decimal) -2.0 +454ms ║Comparison (time) 7*