Open staffy opened 3 weeks ago
This is not unexpected behavior as it is clearly stated in the documentation.
Very clearly stated, thanks for pointing that out! But it still seems strange to me, I cannot see a reason why anyone would want that behavior?
Consider this situation:
No zones are enabled. A user wishes to run a cycle of the system. The user walks up to the hardware and presses a button to start the system. Nothing happens. User is confused and assumes something is broken. (Chaos ensues...)
Note that this scenario plays out exactly the same way if you're using a switch or button on a dashboard to activate the system.
Part of the motivation for the behavior was to minimize situations where the controller just does nothing. It's not obvious why the controller won't start unless you happen to be watching the device's logs as you're interacting with it. This behavior is quite confusing to an end-user who just wants to switch on their sprinklers (and who knows nothing about how to troubleshoot hardware...or at least isn't thinking about it at the time).
I understand what you're trying to do, but--trust me--if it worked the way you're suggesting/expecting, you will end up wasting a bunch of time one day by confusing yourself. Ask me how I know. 😅 You will spend a lot less time tweaking your automation to cope with this behavior than you will waste trying to figure out why your controller won't turn on when you try to use it one day and forget that no zones are enabled. 😇
The problem
As stated in title, when no valves/zones are enabled (presumably because the user does not want them to activate for some reason) and the main switch is activated (which could be caused by for example an automation running once per day or so), then all valves are enabled and a full irrigation cycle is run, which is unexpected. If one or more valves are enabled, then only these valves are activated as expected.
The expected behavior with no valves enabled would be to immediately finish the cycle with no valves activated and no configuration changes.
Which version of ESPHome has the issue?
2024.5.4
What type of installation are you using?
Home Assistant Add-on
Which version of Home Assistant has the issue?
No response
What platform are you using?
ESP32
Board
4 relay board
Component causing the issue
Sprinkler
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response