I am trying to set up a litlte interface to be able to start irrigation sequence. Idea is that I have 7 zones and I created slider for each zone to represent how long would I like to run it.
Instead of using waits in automation, my idea was to use date/time helper for each zone for on/off and when starting a script, that would be populated for each on/off helper.
For instance, I am able to set date/time helper based on “now” + set time or value from slider, but I can’t figure out how to add time from slider to a different date/time helper
I still need to figure out what to do when zone is set to 0, but I assume I will figure it out either in script or actual automation.
In addition, I would like to round the start of 1st zone to next minute. Is there a way to achieve it?
Lastly, I created 7 sliders with precision “1”, yet in GUI, it is still displayed as 1,0 min
Both now and timedelta uses objects. When you add timestamp you are converting it to a integer which datetime: does not accept.
The issue is not the above. It’s that the timezone is added at the end. Below template will both remove the timestamp and truncate to a minute
Thanks @Hellis81, as you were typing, I found the same in other thread. Appreciate the help.
Would you happen to know how can I make sliders in GUI be displayed as integers, without decimals?
The limitation is that the supplied datetime string must be in a recognizable datetime format otherwise strptime is needed because it’s more flexible. In this case 2022-08-14 00:00:00 is a recognizable format.