ha-emporia-vue icon indicating copy to clipboard operation
ha-emporia-vue copied to clipboard

Voltage Data

Open flyoffacliff opened this issue 1 year ago • 9 comments

Although it's still buggy, Emporia recently added voltage monitoring to the official app. Can this integration be updated to pull this value in as another sensor?

Screenshot_20240123-221052

flyoffacliff avatar Jan 24 '24 03:01 flyoffacliff

I'll look into adding it, though it will increase the number of calls against the API. I may try to add Amps as well at that time since there are requests for that info too. I may keep those disabled by default and make them opt-in, most people probably just want the energy dashboard to work and these extra features are more technical info.

magico13 avatar Jan 24 '24 16:01 magico13

"I may keep those disabled by default and make them opt-in" ... Please! Thank you!

Esprit1st avatar Jan 24 '24 17:01 Esprit1st

Thank you for the quick response! Good to know that the integration is well supported.

I wish they would give clear guidelines on API usage, such as "limit of X calls per account per hour/day".

Hopefully the voltage data is available via API. It appears that the voltage data is stored on their servers as a float with two decimal places, but the app converts it to an int.

I know this because the official app used to display two decimal places in the list view but not the graph view. When I submitted a bug report to them, I asked them to add the decimal places in the graph view, like the other units of measurement had, and instead, they just removed the decimal places from the list view as well. 🙄

flyoffacliff avatar Jan 24 '24 17:01 flyoffacliff

I wish they would give clear guidelines on API usage, such as "limit of X calls per account per hour/day".

I have personally reached out to Emporia about making their API accessible locally. Given their product uses WI-FI, and is able to report data to their servers at reasonably high data rates, there should be no issue implementing a local webserver that simply hosts a JSON string with the same data.

I implore everyone to do the same, and tell them we want local access!

rjDipcord avatar Feb 06 '24 04:02 rjDipcord

Really appreciate your work. Looking forward to this addition.

EboBH83 avatar May 15 '24 10:05 EboBH83

Any update on the voltage addition?

ryanbytes avatar Jul 19 '24 22:07 ryanbytes

Has anyone even been able to confirm that the voltage data is available over the API at all? I never really found clear API documentation from Emporia.

BenJewell avatar Jul 20 '24 01:07 BenJewell

I'll check the api and see what comes back. I'd like to have this data as well to monitor my power company for possible brown outs on the very hot days. Several neighbors have been having some capacitor failures during some of these time periods. Would be nice to know what voltage was doing.

DabblerIOT avatar Jul 24 '24 16:07 DabblerIOT

BenJewell: Has anyone even been able to confirm that the voltage data is available over the API at all?

Yes, you can see the official web app make these calls in developer tools. Additionally, the PyEmView library which is also developed by the HA Emporia Vue integration author (magico13), supports voltage as of April:

https://github.com/magico13/PyEmVue/blob/master/pyemvue/enums.py

magico13: I'll look into adding it, though it will increase the number of calls against the API. I may try to add Amps as well at that time since there are requests for that info too.

Just a thought, but you don't have to make three calls to get the information, just two. If you are already getting watts, just query for amps or volts and then calcuate the 3rd data point.

csmracing avatar Aug 19 '24 01:08 csmracing