Closed GWH74 closed 1 year ago
Hey there @kbx81, mind taking a look at this issue as it has been labeled with an integration (sprinkler
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
Can you confirm if this is still an issue in the latest release version of ESPHome? Thanks!
Sorry for the late reply. Can confirm that it is working as expected and fault as described above has been fixed
Great, thanks for confirming! 🍻
The problem
When using a pump and only the last valve is enabled pump is not turned off after last zone run duration has ended. Another problem is listed below.
Setup: Sprinkler Controller component on an ESP32 8 channel relay board. 1st relay is setup as pump ( master solenoid) Then next 7 relays are used for zone 1 - 7 Enable all zones via vales enable_switch, run through a full cycle. (note yaml below is only set for run duration of 5s for testing). Disable zones 1-6 via enable_switch so that only zone 7 is enabled. Call service start_full_cycle. Zone 7 will run (as well as pump switch) and once zone 7 turns off after run duration the pump switch will stay on. Need to turn off main_switch (calls sprinkler.shutdown) to turn off pump. This has been confirmed on other systems.
Now... If you only run 1 zone that is not the last zone (1-6), like zone 2, then it behaves correctly. BUT now if you un-enable the above zone 2 and now only enable zone 7 then when you run start_full_cycle the above zone 2 will run again and NOT zone 7. Then when that zone turns off the pump will stay on until the sprinkler.shutdown is call. The below log file shows this. Disable zones 1-6 but then when the start_full_cycle is called zone 2 was ran because it was the single zone I ran before only enabling only zone 7.
Which version of ESPHome has the issue?
2023.2.2
What type of installation are you using?
Home Assistant Add-on
Which version of Home Assistant has the issue?
2023.2.5
What platform are you using?
ESP32
Board
Generic 8 way relay board with ESP32 module
Component causing the issue
Sprinkler Contoller
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
This has also been tested on a co-workers system and he has the same issue. We have not shared our code, just we have both followed the guide lines and examples.