martijndierckx/homebridge-hydrawise

system-wide suspend

Opened this issue · 2 comments

One of my top use cases is system-wide suspend (when people are taking showers, when electricity prices are high and I don't want to run the well pump, when we're hanging out in the yard, etc).

The existing Value Service looks like it's at the zone level and doesn't seem to have a concept of the "whole system" (at least this current plugin doesn't).

I'd like to create some sort of "parent" Accessory to represent the controller as a whole that could have a Valve that acts as a suspend (since it would have a duration, etc).

The hydrawise API seems to reason this way, so echoing that in the homebridge plugin would be helpful

What I think would be possible, is to add an on/off switch which would (un)suspend all.
Problem is that Hydrawise only stores this suspended state on sprinkler level, not on controller level, which makes it tricky to get a correct value for that switch.

maybe implement as a pair of stateless switches...so you could call suspend or unsuspend without current value/state

And then maybe the single/double/long press on suspend are a few configurable durations (ex: 10 min, 1 hour, the rest of the day)

Or maybe just use a single "switch" and one gesture to suspend and another to unsuspend.