Update Rainforest Eagle to use eagle100 instead of uEagle#70177
Update Rainforest Eagle to use eagle100 instead of uEagle#70177balloob merged 5 commits intohome-assistant:devfrom
Conversation
|
Hey there @gtdiehl, @jcalbert, mind taking a look at this pull request as it has been labeled with an integration ( |
|
Thank you for your contribution thus far! 🎖 Since this is a significant contribution, we would appreciate you added yourself to the list of code owners for this integration. ❤️ Please, add your GitHub username to the For more information about "code owners", see: Architecture Decision Record 0008: Code owners. |
I hadn't done that as I haven't actually contributed any code, just packaged things up, but have done so now. |
|
NOTE: I haven't ticked the box to say the code has been tested locally as I've only just figured out how to use a custom component to override the existing one and test my changes. So far it works, but I'll need to wait until things fail to see if the code changes from @toddsay have done the trick of working around the issue with the Eagle 100. From experience this usually happens within 24hrs so I'll happily tick that box once I see it do it's magic. |
Please make sure to set up a development environment and test your changes: https://developers.home-assistant.io/docs/development_environment |
I got that up and going and have tested the changes. Previously trying to use the integration would lock up my Eagle 100 and it would stop sending data to Wattvision. With this change it logs a couple of Errors in the logs but does recover. I tried using the "Eagle-200 Total Meter Energy Delivered" for the energy dashboard but due to the resets that's not working. With this change it may be possible to use the Riemann sum integration to derive the value from the "Eagle-200 Meter Power Demand". Just a quick edit to say I have now also tested with the sensor as I mentioned above and that has worked great. The value for energy used in the last hour shown in Wattvision is identical to that shown in Home Assistant. |
|
So, looking at this conversation happening in this PR, I'm not under the impression the fork will not have a commitment to long-term maintenance either. Some notable quotes from the above
And things like disabled issue trackers: I'm not saying the current library has a good track record of responding to PRs, but this feels like a quick package up to fix a bug, without the long-term commitment. That is also not a good move. For that reason, I'm leaning towards declining this change. ../Frenck |
I'll make an effort as long as I own and use the device. Beyond that I won't promise anything beyond reviewing pull requests.
I didn't want to take credit for simply packaging things and not writing code. Is that such a horrible thing?
And the box is now ticked as I've figured out how to test locally and have been running it since.
My apologies that was sent from my mobile and could certainly have been worded better. Let me put this another way. I value my time and prefer to be efficient in it's use. I did not see value in trying to contact someone who hasn't responded to any mentions on here or a ticket that was opened in Nov 2020. I am not even sure on other ways I would go about contacting @jcalbert beyond these mentions? Besides the project also contains code for micropython that I'm not interested in maintaining, hence why I took the micro branch and made it main in my main branch. I've just deleted the other stale branches to make that clearer.
This wasn't disabled, it just wasn't enabled as I didn't realize that was the default. It is now enabled.
I understand the sentiment. Hopefully I've alleviated some of that concern and you allow the change so other Eagle 100 users can use this integration without resorting to things like power cycling the device whenever it stops responding. If not then I thank you for the consideration and at least I have things working myself and have learned some things about the whole process. |
|
So today I updated Home Assistant and it seems to have broken things for me again. I guess I need to override the bundled version again. @frenck please let me know if you're definitely not going to accept this and I'll have to come up with a more permanent work around for myself and others that may be interested. 😞 EDIT: In my case I had to hard reset the device and then my workaround (running a dev version of this as a custom component) kicked in again. |
|
Thanks for the clarifications @hastarin, that was very helpful ❤️ We are going to merge it. ../Frenck |



Proposed change
In the Rainforest Eagle integration, replace uEagle with eagle100.
The Rainforest Eagle integration uses a package called uEagle for communicating with the older Eagle 100 devices. There is a known issue with this package that means the device stops responding entirely. There has been a pull request pending on that repository for almost a year.
I've created a new package with the pull request merged in and published it as eagle100. The proposed changes simply use the new package instead.
Type of change
Additional information
Checklist
black --fast homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all..coveragerc.The integration reached or maintains the following Integration Quality Scale:
To help with the load of incoming pull requests: