Hi, i’d like to call a script which is executed either on 5pm or 8pm local time during Nov-March every year. Based on a temperature sensor it should close a window. I can make it happen in general, see script below, works well, but need to understand both an “or” condition (to have either times) as well as a month condition (script only run Nov-March). Thx for any suggestion!
… But I have the suspicion that you rather might like to have something based on the actual season or sun-down which can be accomplished with these sensors:
Hi, the thinking behind is that in the “cold season” a window which was forgotten to be closed, will be closed by the script, whereas at warm seasons it might be good to keep the window open because then the room can cool down.
For the moment that thinking is based on cold months. I am not sure whether other parameters might be helpful (e.g. the max temp that day was above 24 Celsius or so) … not wanting to add more complexity to it for now.
You legend! I wasnt aware that Season was a built in sensor that could just be added! This has allowed me to do exactly what i want which is to only perform a task if not during “Winter”.