magico13 / ha-emporia-vue

Home Assistant Integration for Emporia Vue Energy Monitor
MIT License
488 stars 66 forks source link

EVSE Status Message #223

Open motoridersd opened 1 year ago

motoridersd commented 1 year ago

Is there a way to pull more data from the EVSE status. Right now we get:

image

But the Emporia app shows an additional message as well as an icon to represent more information about the charger status. For example, despite the data above, the charger is reporting "Charger will start charging when connecdted to a vehicle" and it shows an icon of a car with a plug that isn't plugged in.

Trying to figure out a way to find a way to determine if the car is plugged in. With the current information, this isn't possible, and my car (Polestar 2) has no way to report this data to HA.

magico13 commented 1 year ago

So when I've got an EV plugged in and not charging the message changes to "EV is not accepting charge" but with no car plugged in it is "Ready". There might be one or two more elements on the response I can include.

motoridersd commented 1 year ago

The message says "Connected to EV" when the car is plugged in but the charger is off and Status is Standby. So I could use that to try to detect if the car is plugged in. "Ready" means no car plugged in like you said.

magico13 commented 1 year ago

The master branch has a change that includes a few additional attributes that might help here. I haven't tried to map them all to different states but if you end up doing so please let me know what you find. It looks like the icon_name of CarConnected is used when a car is plugged in even if the charger is turned off, I can't test charging right now and haven't gone down and unplugged yet to see how it changes.

motoridersd commented 1 year ago

icon_name might be very helpful as it should reflect what the app shows.

I created a helper switch that will be "Plugged in" if the message is "Connected to EV" or "Charging", but there are a lot of intermediate messages that also qualify, like "EV is not accepting charge". A lot of this won't matter much to HA because the update interval is too long to catch the quick changes that happen when the charger is turned on or off.

I'll see if I can understand some of what the master branch contains

WhoaLookAtThat commented 11 months ago

Just an FYI, I'm also interested in the additional attributes. I'd like to know when my vehicle is plugged in (even if not yet charging).

Thanks for this integration!!