magico13 / PyEmVue

Python Library for the Emporia Vue Energy Monitor
MIT License
185 stars 36 forks source link

Not able to get_devices() #29

Closed badreamer closed 2 years ago

badreamer commented 2 years ago

devices = vue.get_devices() now returns the following error for me:

raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://api.emporiaenergy.com/customers/XXXXX/devices?detailed=true&hierarchy=true

Has the get_devices() API changed? The login process returns a True, so it does not seem to be login related.

PS: magico13, thanks for PyEmVue, I would not have purchased my device without this.

magico13 commented 2 years ago

Update to the latest version, there was an API change earlier this week and the latest version fixes it. There were some other breaking changes as well, check the GitHub release notes.

badreamer commented 2 years ago

My bad, thought I had the latest version. Old code works. Thanks again for the immediate response!