I have a smart app that will turn on a light when a door opens only after it is after sunset. Once the door opens the light turns on and the mode gets set to Night. The problem is, if I open the door after sunset and I’ve been home since before sunset, the light will still come on.
Is there a way to poll the amount of time my phone has been present? So if it’s been present since 5:30pm the light shouldn’t turn on since I’ve been home for some time.
Thanks in advance!