-
-
Notifications
You must be signed in to change notification settings - Fork 29.1k
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: Error during setup #31957
Comments
@SeraphimSerapis same problem here. Restoring last snapshot with 0.105.4 does not fix the problem. |
I have the same issue but I know why it happened. Last night I logged into my Hydrawise account and they said they were upgrading my portal and my controller would be working offline until it was done. For the developer, here is the main error:
|
Me too. Notification - Invalid Config - Could not setup integration Hydrawise. |
Same problem/error report as above starting 2/17/2020. Running OS 3.10 and Hassio 0.105.3. No change in my OS or Hassio configuration from the time it worked fine until errors reported. Component no longer loads after reboot. |
I suspect that the API format has actually changed. Not sure how though as the previous API documentation link is dead so I can't compare. Looks as though the data is still available, however it is in a different format. |
Whoever makes this API, here is the response from Hunter:
|
Same issue, and I'm using 0.105.3 as well.
|
I think they introduced now v2 of their api and v1 stopped working, e.g. |
curl https://app.hydrawise.com/api/v1/statusschedule.php?api_key=??? For me still returns values. |
V1 still works and is now a supported API according to what I have heard. |
@Nick-Adams-AU where is this info? Is this just individual email? Would be good if there was some official communication from Hunter. |
Unfortunately, yes this is just via email. I keep asking them to do some kind of official release management and notification but they won't commit to anything. Here's what I got from them:
|
yes, the v1 API is still in place but somehow broken. For instance the status schedule API is working:
but the customer details API isn't returning something for me, maybe the renamed it?
|
Both seem to work fine for me @CanD42. |
Both v1 API links are also working for me. Not sure if this following information is useful at all to anyone as it is far beyond by ability to dig into the code to correct for the changed api. However, I wanted to pass along the little bit I could just in case it helps regarding hassio. In Hassio I edited the hydrawiser core.py file located in /usr/local/lib/python3.7/site-packages/hydrawiser/core.py and commented out lines: 65 self.user_id = ... Without these lines the hydrawise component loads and the switch device type appears to work as a toggle turning a watering zone one or off. Binary_sensor device types do not load giving the following error:
Sensor device types load but produce 1 error per zone looking for a "nicetype" attribute:
|
Looks like the response no longer has those attributes 'user_id', 'name' and 'watering_time'. The data looks like it is still there. 'watering_time' now appears to be called 'run'. Not sure what was in the other attributes. Does anyone know what the response used to look like? Edit: Just noticed that the developer has updated the core package that fixes the attributes. Not sure how to update the docker image though :) |
I made some changes to get rid of the errors but some of the sensors may not be setup correctly due to the changes in the API response. Including the changes I made for in case others want to fix or if it helps one of the developers attack the issue.
I run hassio so making these changes in the container just gets overwritten when restarted. As a workaround, I put the hydawiser package into the config folder (/config/hydrawiser) with the modified core.py.
to:
` Hope this is helpful to others. |
@txwindsurfer, @sarge31, you're on the right track to fixing the issue. There were significant changes between API v1.3 & v1.4 that broke the Hydrawise component for HA. I've already pushed a new Python library (Hydrawiser v0.2) that works again to the v1.4 API. However, to get the HA component fixed will take more effort. A lot has changed in the HA architecture and component integration since I published the component almost 2 years ago. I'm having to refresh myself with HA to get the Hydrawise component integration fixed and and a new pull request issued. I do plan to fix the Hydrawise component, but it will take me some time. |
@ptcryan Understand your comment about the architecture, something I need to get across as well. Appreciate all your efforts in writing this component in the first place and supporting it now. Thanks for the great work. |
@ptcryan yes, thank you for your support and great work on both the Hydrawiser and Hydrawise component for HA. It is very much appreciated. |
@sarge31 Thanks a lot for the workaround explanation. Just a question where I can found the hydrawise component file? thank again |
@CelestinoMarini It's in /homeassistant/components/hydrawise/ |
Did this get pushed out in 0.107? I noticed this came up as closed, but I still don't seem to have it working. Thanks in advance. |
@codypet this hasn't been fixed yet. I am working on it. I don't have a specific target in mind. |
Hello, i am new in this. Can you help me whith the steps to make a custom component for this that at least can trigger ? I cant find the files to do it. A tutorial will be great for the newbees. |
Hello @PeterPriceE, I think what you want to look at is how to add your own custom component. The documentation here should help you with that. As for fixing the integration I am still working on it. I've been pretty busy with other unexpected activities, but I am making progress, however. I am also trying to work with Hydrawise on either using the new v2 API or fixing the v1 API to restore some features that were lost in the new version. |
All, I am still working on fixing this integration. I'm close to issuing a pull request. I have posted a full update on what to expect here. Expect the pull request within a week. |
Bump this issue that for some reason is not getting integrated into the releases of HA. |
I was wondering that myself. |
@ptcryan Hello and congrats for your wonderful job. I have an issue with Hydraswise integration. I download the repository from here https://github.com/ptcryan/hydrawiser and I copied hydrawiser folder into custom_components. Unfortunately, I am unable to integrate the hydrawise and I received the following error configuration.yaml is this
The rest of the configuration
I want to mention that I am running on 0.110.6 and with the embedded component, I received the same error. Did I miss something? |
From what you have shared I don't know exactly what the issue is. The config file looks okay. It's interesting that you are not getting an error for hydrawise.sensor, so that might be a clue. Make sure your config directory structure looks like this for a custom component:
You may also have a Did you look at the Home Assistant log to see the details of the problem? Did you run a config check from the UI? Was that ok? |
@ptcryan Thank you so much for all the work on this component and improving the code. The new component is working great for me on a RPi 4 running HA Core 0.110.4 and OS 4.9 (note: I am using your changed hydrawise code from last Friday not the recent revisions you are making and I will wait on those until the PR is merged into HA Core) As I read @CarpeDiemRo, he incorrectly copied the hydrawiser code into the custom component directory not the hydrawise code. The hydrawise code that should be copied to custom_components is located here: The manifest.json file should get the required 0.2 hydrawiser library when HA is rebooted . If it doesn't these files will need to be manually copied into site-packages/hydrawiser. Thanks again for all you work revising this component. |
@CarpeDiemRo I think there might be a couple problems going on. Like @txwindsurfer mentioned, I don't think you're setting up the custom_component correctly. The first thing we need to check is where your HA configuration directory is. If you don't start there the rest of these steps won't work.
I've attached the files that need to go into the Make sure you put all the files from this zip into the Give this a try and let me know how it goes. EDIT: I fixed the contents of the zip file. The files should be correct now. |
Just tried, it has a problem: This is my Log: 2020-06-09 18:39:03 ERROR (MainThread) [homeassistant.setup] Error during setup of component hydrawise |
This is without the custom component: (is the same) 2020-06-09 18:47:12 ERROR (MainThread) [homeassistant.setup] Error during setup of component hydrawise |
this is my System:
|
@PeterPriceE the error message you posted indicates that HA is still using the .01 version of hydrawiser or at least that was the log error I always got using the old version of hydrawiser. Evidently the manifest.json did not automatically install the new .02 version of hydrawiser. Please check that line 5 in manifest.json says: You can manually copy the .02 version hydrawiser files in the Docker container located at: I edit files in the Docker container using the SSH and Web Terminal add-on and the command If you don't feel comfortable changing the Docker container files then you might want to wait a little longer for the PR to be merged into the next release. |
@txwindsurfer is correct. Your HA isn't installing the new Python library for Hydrawiser. For the new integration to work it needs v0.2. The error you're getting is due to HA still using the old v0.1.1 library. |
Ok, can i use a custom component of hydrawise and hydrawiser to do that? If it is possible, can you give me a link like you did with the hydrawise component? |
If you have the right files in the right place in the The error above is only going to happen if HA is still trying to run the released Hydrawise integration, not the one that's in the If you look in the HA log you should see a line at the beginning of the log that says If you don't see that warning then it's pretty likely that HA isn't trying to run the custom component. |
@ptcryan Let's take it step by step:
I am using Home Assistant for more than one year and I have never change the classic folder structure. Therefore, the configuration.yaml file is in the config folder beside the rest of the files: automation.yaml, script.yaml, etc.
custom_compnent folder is placed in the config folder as you can see in the print screen attached
I create the hydrawise folder and I copied the content of the Archive folder inside it. I tried with Filezilla, but with the classical method as well, by upload one by one
I restart HA without any reference to hydrawise component in the configuration.yaml. No errors. I put the hydrawise reference and the token in configuration.yaml. I restarted the server. Error was displayed.
This was my experience with the component. What do you recommend to do next?
Very strange that the content of the .py files from the archive that you attached are HTML files |
Yes, the problem is that the archive.zip file does not contain the correct files. Something went wrong with @ptcryan created it. For instance the manifest.json file should be: |
@txwindsurfer After I check the content of the files I realized the same thing. @ptcryan Could you send me please, again the files? |
I found the new files on the GitHub. Everything is working just fine. Thanks a lot for the support. |
Hello, can you give us the link to the files, cant find them. Muchas Gracias |
@PeterPriceE I updated my earlier post to correct the zip file. Sorry for the mix up. |
I just setup my new Hydrawise HCC Controller last night and followed the above instructions, I can confirm that the Archive.zip files that I just grabbed this morning are in the right directory and that the manifest file specified version 0.2. My config matches @CarpeDiemRo 's shown above. I am getting index out of range errors... Could this be because my zone names are too long? I recall somewhere someone saying you had to keep it to 15 characters... Thanks for the work on the code, it is very much appreciated!
|
I had to shorten zone names to get mine to work with this custom version. |
Excellent, will give it a go, thanks! UPDATE: Unfortunately that wasn't it. I have 28 zones and 3 of them are inactive. Wonder if I'm throwing some edge case error. UPDATE 2: Eureka! Yeah it doesn't like empty zones. After I created TEMP1, TEMP2, and TEMP3 for my 3 unused zones, it was happy, guess I should report this. |
The problem
The hydrawise integration started throwing errors (see below) and doesn't seem to be able to connect to their API anymore.
Environment
Problem-relevant
configuration.yaml
Traceback/Error logs
Additional information
I noticed the problem started on Mon, Feb 17th. This may not be connected to my upgrade to 0.105.5 from 0.105.4.
I also noticed another user having the same issue in #26918
The text was updated successfully, but these errors were encountered: