kloggy / HA-Irrigation-Version2

230 stars 55 forks source link

Cycle not start #68

Closed polcape closed 2 years ago

polcape commented 2 years ago

Hi,

in my instance Home Assistant 2022.3.7 I set everything and seems ok, manual cycle start correctly. But when I schedule a cycle, it not start.

I see the time of next run and when that time come, next run remain with "nothing scheduled" but cycle doesn't start.

I check the log and nothig strange appear...

Can you help me?

Thanks

ilpiccoli commented 2 years ago

Same issue for me

kloggy commented 2 years ago

Do you have the external raining now sensor configured?

image

I have not used the schedules yet this year but I wonder if there might be a problem with the fact that binary sensors are now 'unknown' when HA restarts.

You can try changing line 77 in irrigation_triggered.yaml from:

states(states('input_text.irrigation_external_sensor_raining_now')) == 'off' %}

to:

states(states('input_text.irrigation_external_sensor_raining_now')) in ['off', 'unknown'] %}

Which will mean even if it is raining the schedules will run until the raining now sensor is updated.

Please let me know if this makes a difference.

ilpiccoli commented 2 years ago

I think you can mark this as solved! I changed line 77 as you suggested and it works smoothly, thanks!

kloggy commented 2 years ago

Thanks for letting me know!

polcape commented 2 years ago

Yes, solved also for me. Many thanks!!

maury77 commented 2 years ago

the problem persist on the state unavailable

image