kloggy / HA-Irrigation-Version2

225 stars 55 forks source link

Ignore seconds on trigger time #33

Closed rgc99 closed 3 years ago

rgc99 commented 3 years ago

When the cycle start time is changed the seconds time part is changed from :00 to :31. Setting the time to 07:30 will end up 07:30:31 in the input_datetime.irrigation_cycle1_start_time entity. This could be browser_mod, time-picker-card, my browser, timezone or something else. The upshot is the automation fails to run properly. Instead of comparing HH:MM:SS use only the HH:MM time parts and ignore the seconds.