OpenSprinkler / OpenSprinkler-Firmware

OpenSprinkler Unified Firmware for OpenSprinkler, OpenSprinkler Pi, and OpenSprinkler Beagle.
http://www.opensprinkler.com
GNU General Public License v3.0
467 stars 275 forks source link

Feature Request - Allow Zone Reordering #232

Open kars85 opened 1 year ago

kars85 commented 1 year ago

I know this can be accomplished through hardware (rewiring zones), but I think it would a nice feature to be able to reorder zones through the UI. For example, I'd prefer all of my front yard be watered in the early morning hours before heavy foot traffic, then my backyard can run after that for as long as necessary. However, the installer from the previous owner set it up for the zones to run in a big circle round my property.

Is that something that you could incorporate into a future update?

Thanks! Karson

rayshobby commented 1 year ago

This would require a major change to the firmware and also the UI. There is a work around you can use, but it does require having some spare zones. The work around is to use multiple zone ports for the same physical valve. For example, let's say you have 4 valves, v1, v2, v3, v4, you can connect v1's zone wire to both zone ports 1 and 8; similarly v2's zone wire to both ports 2 and 7 and so on. It is such that zones 1 and 8 both activate the same physical valve v1; zones 2 and 7 both activate the same physical valve v2 and so on. Let's say in the morning you want to water in the order of v1->v2->v3->v4, in the afternoon you want to reverse it v4->v3->v2->v1, you can set two programs, the morning one will turn on zones 1, 2, 3, 4, and the afternoon one 5, 6, 7, 8. This will allow you to achieve the reordering, but it does waste some zone ports, and if you have a large number of valves you will need zone expander.

rayshobby commented 1 month ago

As an update, there is an initial support for this feature in branch dev/221_1: https://github.com/OpenSprinkler/OpenSprinkler-Firmware/tree/dev/221_1 it's not a support for arbitrary re-ordering, rather, it supports a few pre-defined zone ordering methods in a program, such as reverse the order, alternate the order (all odd-numbered runs forward, all even-numbered runs backward) etc. It can also order zone runs in a program sorted by zone names, or use a random ordering.

kars85 commented 1 month ago

Thanks for the update!Sent from my iPhoneOn Jul 29, 2024, at 11:47 AM, Ray @.***> wrote: As an update, there is an initial support for this feature in branch dev/221_1: https://github.com/OpenSprinkler/OpenSprinkler-Firmware/tree/dev/221_1 it's not a support for arbitrary re-ordering, rather, it supports a few pre-defined zone ordering methods in a program, such as reverse the order, alternate the order (all odd-numbered runs forward, all even-numbered runs backward) etc. It can also order zone runs in a program sorted by zone names, or use a random ordering.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

wernerdaehn commented 46 minutes ago

I believe this is a must have feature, in the global overview and per program. In my case I have 6 boxes with 2-3 valves. One valve controls the set of sprinklers and the others water some plants. Some are not used yet. Obviously I want to see in the overview the sprinklers first, the plants second and the not-used once at the end or not at all. Each box is connected by GND and CH1,CH2,CH3. So S1 is CH1 for the first box, S4 is CH1 for the second box etc.