-
-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
RainMachine throwing odd errors #23650
Comments
I have similar problems with 0.93.0b0. |
I do not know if helps, but there the returned values from rainmachine using postman {{HOST}}/provision?access_token={{ACCESS_TOKEN}}.
|
@daniwebCH Thanks for the feedback. The issue with I have a good mapping of all of the APIs, but none of my tests have yielded this issue (a |
Hi, Daniele |
Thanks for the update. Of the now three people (myself included) who have reported this issue, everyone is using Unifi gear... |
Any idea if this issue with Unifi is somewhere handled? |
This might be a possibility: https://support.rainmachine.com/hc/en-us/community/posts/115007448168-HD-12-Keeps-disconnecting-from-wi-fi |
I would not point to disconnect/connect to wifi, this I would see on the events on Unifi for this device and when I navigate to the web interface of the rainmachine I would notice it. The fact is that I really NEVER got the flowSensor values. PS: In addition I try to get those info via postman and I always get an answer..... I'm not so sure at the end that it is really an issue of Unifi.. but more HA |
You wouldn't – that functionality is going out in 0.93.0, which hasn't been released yet: #23221
Trying things in Postman is not a valid test methodology in this case; it doesn't adequately mimic the actual functionality of the integration. For instance, manually firing tests in Postman:
This same functionality works fine in several other integrations; until I see otherwise, I'm inclined to believe that the issue lies in some combination of RainMachine and Unifi gear. |
In one test rpi3B+ I'm running 0.93.0b4, there I see the sensors but not the values, as I reported few post before, I supposed that it should be operational on this version...
I completely agree for random missing data, but it would be strange that the provision info is the only one missing, and always missing... (unless the position on the request sequence is the issue) Added: Added2: See the full log, I have the impression that the issues are more often coming: |
I tried to remove the rainmachine from integration and tried to specify it on configuration.yaml as described in the component description. This makes rainmachine discoverable but I still have to insert the credentials and port from the gui. It would be nice to have no ssl in order to easier follow what is going on with wireshark... |
This is not what I'm experiencing: the
So, we have:
...all at random times and without any observable pattern. At no point did I fail to get
In reviewing your log, I'm seeing the issue I've reported here, but just FYI, I'm also seeing several other issues unrelated to the component. For instance, lines 718-721:
...show that your Home Assistant host is timing out while attempting to communicate with your RainMachine (indicative of a network issue). Elsewhere, lines 740-742:
...show that your Home Assistant host could not reach your RainMachine over the local network. Again, just an FYI so that as you review logs, you don't combine multiple issues with the key one described here.
There is a way to set the port in the GUI: You are correct that there is currently no way to "disable" SSL from the GUI; I haven't found a compelling need for this.
You're wanting to disable SSL on the RainMachine itself? Can Wireshark not implement an SSL proxy like Fiddler, Charles, etc. can? |
Do you know whether the API from your local RainMachine is returning flow sensor data? You can test via the underlying library:
Does the output show flow sensor data anywhere? |
The rainmachine is providing the data see one of my first posts. |
I created a virtual machine, installed pip, environment.... Added: Maybe on code not taken in account that those params are "below" the 'system' |
Paste your data here so I can see an example; I don't have a flow sensor, so I can't test directly. |
I will make it tomorrow, but you can enable the flow sensor feature even if you do not have one (the only value you will not see moving are the clicks) Added: |
Home Assistant release with the issue: 0.93.2 Problem-relevant configuration.yaml entries:
Traceback (if applicable): See home-assistant.log, attached. Additional information: Rainmachine log attached, no errors indicated (I also checked in DEBUG mode, still no errors shown on the Rainmachine log) 05/26/19 Edit: Add information re: WiFi connectivity 2019-05-26 15:56:49 ERROR (MainThread) [homeassistant.components.rainmachine.switch] Unable to update info for zone "a8803824ead0_zone_6": Error requesting data from 192.168.1.157: None 05/30/19 Edit: Add HA log and Wireshark Packet Capture file. |
Thanks, @LeapFrogSupport – from your info, it looks like we can rule out this being a UniFi issue. I'll keep digging. |
Thanks for following up - Please let me know if there is anything else I can do to help debug this. (The RM component errors are the sole remaining extraneous entries in the HA logfile!). |
Finally had a breakthrough. That One suggestion is to set the |
I think we have a winner: 2 hours and zero issues (whereas a "normal" 2 hours would have seen 10+ on my system). Will submit a PR shortly. |
Outstanding - can I put a copy in /config/custom_components or is testing more complicated than that? |
Exactly; you'll be able to follow the process here: https://developers.home-assistant.io/blog/2019/04/12/new-integration-structure.html |
Roger that. |
Probably a newbie error, but I downloaded and extracted regenmaschine-dev (perfekter name BTW) from Github, put a downloaded copy of the contents of the regenmaschine folder in custom_components/regenmaschine along with an empty "2019-06-06 17:22:42 ERROR (MainThread) [homeassistant.components.rainmachine.switch] Unable to update info for zone "a8803824ead0_zone_1": Error requesting data from 192.168.1.157: None" Maybe I was too quick on the download, but if not and if you'll tell me what I did wrong I'll fix it and retest. Thanks. |
@LeapFrogSupport Not quite: you'll want to put a copy of the HASS integration, not the underlying library, into |
OK, sorry for the delay but I had to find my way around Github, it has been awhile. I do like the new Github Windoze client though, beats the heck out of git-svn. So I installed a copy of the integration in config/custom_components/rainmachine and copied over the new manifest.json and we're up and running and unfortunately... 2019-06-06 18:14:51 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for rainmachine which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant. Another newbie error perhaps? In any case I'm off to dinner and will pick this up again in the morning. Thanks for all your help and for doing such a great job on the rainmachine component. 06/07/19 Edit: Morning update - I was still seeing the "None" errors this morning. I verified that the updated dependency/library regenmaschine 1.5.1 was correctly downloaded to the config/deps/lib/python3.7/site-packages/regenmaschine directory. And then it occurred to me that the dependency must be downloaded upon the initial restart of HA, so maybe it takes a second restart for HA to pick up the custom code. Sure enough, I did a restart this morning and after a couple of hours, no error messages. Once again, thanks for digging deep and solving this one. |
@LeapFrogSupport Not sure what's going on there. Since the change was just merged, you could also install a test instance of HASS somewhere, configure only this component, and test that way. Thanks for your kind words! |
Home Assistant release with the issue:
0.92.2
Last working Home Assistant release (if known):
?
Operating environment (Hass.io/Docker/Windows/etc.):
Docker
Component/platform:
rainmachine
Description of problem:
Recently, my particular HASS has been throwing several odd RainMachine errors (
None
).Problem-relevant
configuration.yaml
entries and (fill out even if it seems unimportant):Traceback (if applicable):
Example:
Additional information:
Not sure if the issue likes with HASS or
regenmaschine
.The text was updated successfully, but these errors were encountered: