Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hydrawise automatic_watering switch unsuspend not working #68018

Closed
sipossz opened this issue Mar 11, 2022 · 6 comments
Closed

Hydrawise automatic_watering switch unsuspend not working #68018

sipossz opened this issue Mar 11, 2022 · 6 comments

Comments

@sipossz
Copy link

sipossz commented Mar 11, 2022

The problem

Hi!

Now the automatic_watering switch suspends watering for one year (not configurabe) and when toggled, the code sending the suspend to 0 period by the switch.py below:

self.hass.data[DATA_HYDRAWISE].data.suspend_zone(0, relay_data)

In the Hydrawise log appears the following:
Suspending scheduled watering for Hydrawise Zone1 Frontyard till Thursday, 1st of January 1970, 01:00AM

But the zone still suspended for the previously set one year on the Hydrawise webpage (must cancel manually) and the switch status in HA also still representing this suspended state. This causing the zones cannot be unsuspended by the integration.

Thanks,
Szabi

What version of Home Assistant Core has the issue?

core-2022.3.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Hydrawise

Link to integration documentation on our website

https://www.home-assistant.io/integrations/hydrawise/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

Hydrawise api can be find here:
https://support.hydrawise.com/hc/en-us/articles/360008965753-Hydrawise-API-Information

@sipossz
Copy link
Author

sipossz commented Apr 22, 2022

Still not working, cannot unsuspend the automatic watering from homeassistant

@timvdsm
Copy link

timvdsm commented Apr 22, 2022

I have the same problem.

@sipossz
Copy link
Author

sipossz commented Apr 24, 2022

The Hydrawise API v1.4 can unsuspend the zones, only the integration handles it wrong somehow. I tried with the following API request from a browser, and it works well, I'm able to unsuspend the zones:

request:
https://api.hydrawise.com/api/v1/setzone.php?action=suspend&api_key=XXXX-YYYY-ZZZZ-VVVV&relay_id=1234567&period_id=0

answer:
{"message":"Resuming scheduled watering for Hydrawise Zone1 Frontyard","message_type":"info"}

@prwood80
Copy link
Contributor

Using the period_id=0 does work, though, it is not documented as such. I'll try to get a merge request with this change with the hydrawiser project (I made a local change and tested it). If that gets accepted, the change within HA should be trivial (just update the hydrawiser library).

On a side note, I am working on the v2 API, which opens up a lot more data from Hydrawise (including rain sensors). I have it communicating (queries and commands), but it definitely needs cleanup before I can push something.

@timvdsm
Copy link

timvdsm commented May 11, 2022

Is there any progress? Would be great to have this fixed ;-)

See:
ptcryan/hydrawiser#11

@sipossz
Copy link
Author

sipossz commented May 11, 2022

It's fixed, but not merged to master branch in Hydraviser, yet. @ptcryan, do the merge, please! Thanks

@github-actions github-actions bot locked and limited conversation to collaborators Jun 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants