I want to turn on lights in the afternoon if it is dark in the house. I am using an Aeotec Multisensor 6 Lux meter. I had this working in “Smart lighting” but cannot get it to work in Routines using “Period of Time.” (I am migrating all automation in “Smart lighting” to routines because times based on sunset and sunrise don’t work now).
I want the lights to go on if Lux <=250 AND Time Between 1 PM and Sunset.
When I create a Routine and select “Period of Time,” I can specify a “Start Time” as a specific time just fine (first pic below). The initial Start Time is the current iPad clock time. The default End Time is the Start Time plus one hour. I can adjust the Start Time just fine (in this case, I set it to 1:00 pm).
When I click “End Time” to change it, I get the time selector and the Start Time stays at 1:00 PM (second pic below). So far, so good!
BUT, every time I try to change “End Time” to a time based on Sunset, it changes the Start Time, too (third pic below). My expectation is that Start Time should stay at the 1:00 PM and I can change End Time to a time based on Sunset. But, no matter what I try, the app always changes the Start Time to either Sunset or Sunrise.
Is this a bug or normal behavior? How can I program ST to turn on house lights on a dark day between 1 PM and Sunset?
I thought maybe I could have TWO separate Time conditions, one for Start 1:00 PM and a second for End Sunset, but the app only allows you to have one Time condition.
I previously solved this by splitting the logic into three Routines and a virtual switch (vSwitch). In Routine 1, I set the vSwitch to Off at 12:01 AM every night.
In Routine 2, if Lux went low after 1:00 pm, vSwitch was set to On.
In Routine 3, I checked (IF vSwitch state = ON) AND (IF Time < Sunset) THEN turn on lights.
This was a real kludgy work-around, but it worked reliably. I was hoping “Period of Time” in Routines would eliminate this kludge solution.