magico13 / ha-emporia-vue

Home Assistant Integration for Emporia Vue Energy Monitor
MIT License
500 stars 67 forks source link

Error communicating with Emporia API: No channels found during update for scale 1MON #307

Open akballow opened 3 months ago

akballow commented 3 months ago

I have been getting this error for past few hours. The app works so its not an issue with the device, not show how else to help but putting it out there!

Log details (ERROR) This error originated from a custom integration. Logger: custom_components.emporia_vue Source: custom_components/emporia_vue/init.py:385 integration: Emporia Vue (documentation, issues) First occurred: 2:12:04 PM (5 occurrences) Last logged: 2:22:52 PM

Error communicating with Emporia API: No channels found during update for scale 1MON

magico13 commented 3 months ago

Odd. Could just be an API issue but could be a symptom of something more. Try reloading the integration to see if that fixes it, since that will cause it to go through setup again. I just did that without issue, but I am also running a beta build of the integration (though I don't think it changes anything that would affect that).

akballow commented 3 months ago

Thanks for the reply. I been rebooting HA and the device. Maybe something unrelated to anyone but myself. Will monitor and close out if it resolves.

akballow commented 3 months ago

You know, i actually noticed in the app that when i switch the scale only sec, min, and hour work. The rest do not change as if emporia has lost my stats for day, wk, month and year which is why the error says it can not find the scale for 1 MON.

I hope this doesnt mean i need to wait for a month to get this scale with values xD

akballow commented 3 months ago

I was able to re-add the integration by unselecting month option from the 3 check boxes.

I am not sure what is going on, is it possible to make some change to be able to ignore mising tables so the integration can load?

akballow commented 3 months ago

Well it was working without 1mon for a few hours now I get :/

Failed setup, will retry: Exception while setting up Emporia Vue. Will retry. Error communicating with Emporia API: No channels found during update for scale 1MIN

magico13 commented 3 months ago

That's very odd. When you readd the integration and it asks for your credentials, there are checkboxes for the different scales. If you uncheck one, eg Month, then it will not query for those and it should keep working (if that's the only scale it's throwing on). Minute can be the most flaky from the API, maybe you just hit a bad update for that one. It's definitely the case that if the app is showing anything missing when you're on the home screen, it's going to have a potentially bigger effect on the integration. The integration doesn't use the data from the history graph, only the data on the home screen that shows all the devices.

It's possible there's something wrong between the Vue and their servers in AWS, like if the network connection to the Vue is weak/choppy. Or something with your data in their servers is messed up. Or just "regular" API flakiness. It's hard for me to tell.