Closed dieugab closed 3 years ago
Thanks. I think you found an actual bug that is triggered by an issue on your side. I suspect that the P1 meter is unreachable (see aiohttp.client_exceptions.ServerDisconnectedError: Server disconnected
).
This can be caused by a changed IP address (it should fix itself if you use mDNS), changes in your router or that the API is somehow broken. Can you check if you can reach the API at http://<ip_address/api
?
You also can try to remove and re-add the P1 meter. It is safe to to this as long as you use the same name (and therefor the same entity_id's).
I will look into the bug at a later moment
Thanks for the reply @DCSBL! I removed and added the integration, which didn't work. So I tried accessing it's API like you said which also resulted in a "not found message". Weird, considering the IP address hadn't changed. However, unplugging the P1 meter and plugging it back in did the trick! You can close this one
Good to know! Weird.
Still the integration should handle this situation more gracefully. I will leave this open until i’ve added a fix for that.
@DCSBL I second the error above... I just installed the P1 meter over the weekend and it stopped working today. Not sure how to solve this
The error AttributeError: module 'aiohwenergy' has no attribute 'AioHwEnergyException
should be fixed in 0.11.0-beta-1 (released a few minutes ago. Please install and check this for me.
This error was triggered by something that causes the aiohttp.client_exceptions.ServerDisconnectedError: Server disconnected
exception. Sometimes this has to do with the API that stops responding, an issue that is under investigation. Try to powercycle your P1 meter to see if all goes back online. This issue can occour more often when you have an unstable wi-fi connection and/or multiple devices are using the API, please let me know if any of this is true at your side.
Describe the bug
Integration suddenly stopped working, with the error “AttributeError: module 'aiohwenergy' has no attribute 'AioHwEnergyException'”
Environment (please complete the following information)
To Reproduce
Expected behavior
Entities to be loaded in and working
Screenshots
Log Output
Additional context
P1 is working fine in the app and shows it’s connected and displays new data