martijndierckx/homebridge-hydrawise

run for duration

Closed this issue · 2 comments

Awesome work...I'm posting two issue-ideas that I'm also willing to build. Here's the first:

regarding

// On: Set duration (Since there is no way to push the default run time to Hydrawise, this remains unimplemented)

from what I can see, the API does let you run a zone with a duration.
https://support.hydrawise.com/hc/en-us/article_attachments/360058265154/Hydrawise_REST_API.pdf

I'm thinking of

  • putting the default duration into the config file
  • adding that to the run call

https://developers.homebridge.io/#/characteristic/SetDuration looks like the duration can be an input so I want to try that, too.

Thanks for the compliment.

It is perfectly possible to start a zone for a given duration.
It is however not possible to query the default duration from Hydrawise, let alone change it.

What would be possible is to set a different default run time within the Homekit ecosystem, which does not sync with the default run time of hydrawise itself. Which would mean that if a zone was started from homekit it would run for X min, while if the same was done from hydrawise, it would run for Y min.

In any case ... the library on which this homebridge plugin was built, is already capable of running a zone for a given amount of time.

Added in 1.2.0 (seems to work only on CLOUD)