magico13 / ha-emporia-vue

Home Assistant Integration for Emporia Vue Energy Monitor
MIT License
476 stars 64 forks source link

Emporia EV L2 charger... controlling the charging current and/or off/on #123

Open mdennistech opened 2 years ago

mdennistech commented 2 years ago

Hoping for charge rate control in HA Emporia Vue... PyEmVue seems to have this, as the Emporia API exposes it. Is there any plan to allow controlling the charge rate on the Emporia EV charger in the HA integration? I really need this feature. I have fast local readings of my solar grid import/export in HA, and would like to use those readings to modulate the amps on the charger. I do this by hand right now, by listening for the house air conditioner to come on, and turning down the charge rate to try to charge withing the instantaneous solar surplus. Emporia's built-in feature for doing this is no working in my current setup. Many thanks.

magico13 commented 2 years ago

It's definitely a feature on the roadmap but I haven't prioritized it yet because nobody else had been asking for it. I've got their EVSE but no solar, but I should be able to bring in the EVSE as a switch entity and allow setting the charge rate through a service. I'm not sure how soon I'll be able to make those changes but I can try to get them implemented next.

mdennistech commented 2 years ago

...not sure how soon I'll be able to make those changes but I can try to get them implemented next. Many thanks! :-)

mdennistech commented 2 years ago

Also, Their solar excess feature has not been working for me. The charger output does not vary at all with solar generation. Besides, I want to adjust EV charger rate by more criteria than just current surplus, and need to do my own smoothing and calculations around AC/Dryer usage, house battery SOC, current weather and forecasted solar... This is where HA can really shine :-)

magico13 commented 2 years ago

Btw these changes are implemented in the v0.8 pre-release if you want to try them out and get me some feedback before I release that version. The EVSE shows up like a switch so you can turn it on and off and there's a service for setting the charging current. I'm planning on releasing that version soon, likely this weekend.

mdennistech commented 2 years ago

That’s great news. Thank you for doing the work and for the update.

I don’t likely have time to test in in the next day or two probably, but I’ll try.

-Michael

From: Michael Marvin @.> Sent: Tuesday, May 24, 2022 9:57 AM To: magico13/ha-emporia-vue @.> Cc: mdennistech @.>; Author @.> Subject: Re: [magico13/ha-emporia-vue] Emporia EV L2 charger... controlling the charging current and/or off/on (Issue #123)

Btw these changes are implemented in the v0.8 pre-release if you want to try them out and get me some feedback before I release that version. The EVSE shows up like a switch so you can turn it on and off and there's a service for setting the charging current. I'm planning on releasing that version soon, likely this weekend.

— Reply to this email directly, view it on GitHub https://github.com/magico13/ha-emporia-vue/issues/123#issuecomment-1136179521 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ADTKKH6ADPWXWH3LQHF3BOTVLUC4VANCNFSM5U2UP2NA . You are receiving this because you authored the thread. https://github.com/notifications/beacon/ADTKKH2SKTMS4VXUMU77UATVLUC4VA5CNFSM5U2UP2NKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOIO4LSQI.gif Message ID: @. @.> >

mdennistech commented 2 years ago

I installed updates today.

Your Emporia update correctly read the charge rate of my EV charger. I have to tried to set it yet with HA. Also the switch appears to be functional.

Thank you so much for your work on this :-)

-Michael

From: Michael Marvin @.> Sent: Tuesday, May 24, 2022 9:57 AM To: magico13/ha-emporia-vue @.> Cc: mdennistech @.>; Author @.> Subject: Re: [magico13/ha-emporia-vue] Emporia EV L2 charger... controlling the charging current and/or off/on (Issue #123)

Btw these changes are implemented in the v0.8 pre-release if you want to try them out and get me some feedback before I release that version. The EVSE shows up like a switch so you can turn it on and off and there's a service for setting the charging current. I'm planning on releasing that version soon, likely this weekend.

— Reply to this email directly, view it on GitHub https://github.com/magico13/ha-emporia-vue/issues/123#issuecomment-1136179521 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ADTKKH6ADPWXWH3LQHF3BOTVLUC4VANCNFSM5U2UP2NA . You are receiving this because you authored the thread.Message ID: @.***>

motoridersd commented 2 years ago

Thank for your awesome work! I just got an Emporia EVSE and installed the latest beta. I have a Vue that can dynamically adjust the Charge Rate based on Excess Solar capacity, and it seems to work well.

image

I was able to pull the attributes of the EVSE Switch and display the Charging Rate (and graph it), the state of the "plug" (On/Off), the status of the Charger (Standby/Charging?), and the Max Charge Rate.

image

Can we change the plug status to be Ready (ON) and Standby (OFF) to reflect the actual behavior of the charger? When the Plug is ON, it means the App is allowing the car to charge, but when it is off, the app shows it in a "Paused" state. I'm guessing for simplicity by using a "plug", this is kinda hard coded. I can make some conversions in my system to get around it.

With the TOU/Schedules and Solar Excess automations enabled, the EVSE can still be turned on by them. Would be nice if I could toggle the TOU schedule from HA, for example, turn off TOU charging and Solar Excess when the car isn't at home (presence detection is done via UniFi Wifi connection). Not sure if the API exposes this at all.

It would also be nice to get the same details the app is showing in a status somewhere, so I could display what the next scheduled activation of the charger is. For example, get the same "Scheduled to turn off at 2:00 PM" message that is part of the Schedules automation. Might be limited by API as well.

I still need to fine tune how to make a slider in Lovelace to dynamically adjust the rate from there.

dalklein commented 1 year ago

I installed an Emporia EVSE a week or two ago. I'm able to use PyEmVue to change the charge speed and enable/disable it. Thanks @magico13 !

It may be an issue with my car (2014 Leaf) or the EVSE, but the EVSE detects a pilot circuit fault after being turned off from the app or PyEmVue. We'll see if Emporia figures out why that's happening. It still works, but beeps for about 5 minutes each time it's shut off, until the car also gives up on being charged, then the EVSE fault clears and the EVSE can be restarted remotely again.

ivlis commented 1 year ago

I vote for this feature as well.

fjginjg56 commented 1 year ago

I notice that whenever I adjust the charging speed (via service), the charger switches off, and I need to use another command to turn it on.

I'm not sure whether this is an issue anyone else is seeing. Oddly, no one seems to have brought it up yet. Any way to adjust the charging speed without switching the charger off?

BTW thanks @magico13 for adding support for the EVSE. This is really useful!

magico13 commented 1 year ago

Odd, I was adjusting the current twice a day on a schedule and it was working fine. I don't have that automation running right now but I can turn it back on and see if I have the same problem.

fjginjg56 commented 1 year ago

Oh wait - it turns out I was running an older version (0.8.0).

I updated to 0.8.1, and it works!

Thanks again!