ptcryan / hydrawiser Goto Github PK
View Code? Open in Web Editor NEWPython library for Hydrawise API
License: MIT License
Python library for Hydrawise API
License: MIT License
init.py shows v 0.1.0, but it should be 0.1.1.
I am using the Home Assistant Hunter Hydrawise integration. I have installed and it works fine, but only has data for one of my two controllers. After looking at the integration code in the HA repo and seeing the use of Hydrawiser, I discovered the limitation of one controller.
Do you have any plans to update Hydrawiser -- and the HA add-on -- to support multiple controllers. If you are willing to take this on, I will be glad to be a tester.
Thanks.
When using
hw.run_zone(minutes, zone)
The response is empty string only when zone=4 is used.I get the json response({'message': 'Starting zones zonexyz. zonexyz to run in 1 second. ', 'message_type': 'info'}
) from all the other zones. All of my zones are identical. Zone number 4 is watering too but the response is empty.
Worked fine until like 2 weeks ago, not changed anything anywhere, just updated the pip install to version 0.2.
This issue was reported in Home Assistant as #77087 back in August and remains open. About 3 days ago after years of using the integration without any problems, I started getting this error after a reboot as well some other folks.
The error being reported and keeping the integration for loading is:
Error while setting up hydrawise platform for binary_sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 281, in _async_setup_platform
await asyncio.shield(task)
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/hydrawise/binary_sensor.py", line 64, in setup_platform
HydrawiseBinarySensor(hydrawise.current_controller, BINARY_SENSOR_STATUS)
File "/usr/src/homeassistant/homeassistant/components/hydrawise/init.py", line 96, in init
self._attr_name = f"{self.data['name']} {description.name}"
TypeError: list indices must be integers or slices, not str
I am running
Home Assistant 2022.11.5
Supervisor 2022.11.2
Operating System 9.3
Frontend 20221108.0 - latest
It could be intermittent as the integration loaded yesterday but today after a reboot will not load with this error. It does not appear to be a rate limiting issue as an http call to the api using my key (https://api.hydrawise.com/api/v1/statusschedule.php?api_key= ) returns the correct status of my Hydrawise system.
Thank you for this integration. It is extremely useful for automating my 19 irrigation zones. Please let me know how I can help.
the link you provided for the Hydrawise API is no longer active. would you be able to send me a copy ?
https://support.hydrawise.com/hc/en-us/article_attachments/205632298/Hydrawise_API.pdf
Through Home Assistant I'm getting an error:
IndexError: list index out of range on mydata.relays[self.data["relay"] - 1]
Looking at the open issues on the Home Assistant repo, I found this issue that I think may be the cause home-assistant/core#37769
I have an empty zone (2nd physical zone) that was skipped/reserved during installation which might be the cause of that error. Unfortunately, I think the referenced issue's problem description isn't very clear.
While I think the error is occurring with the home assistant integration, I'm wondering whether there is an issue with this module - should unused/unnamed zones be passed to home assistant, or should they be filtered out here?
I'm running Home Assistant 0.117, which is using hydrawiser 0.2.
Hi,
The Home Assistant Hydrawise integration that utilises this repo seems to have broken in the last 24-48 hours:
Looking into the error, it seems as though the Hydrawise API format may have changed recently. Unfortunately I can't find the previous API documentation so I'm only guessing from the errors.
Are you able to confirm if the current API matches your previous API documentation?
Please add a timeout to all request, e.g., https://github.com/ptcryan/hydrawiser/blob/master/hydrawiser/helpers.py#L26.
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.