evcc-io / hassio-addon

Hass.io add-on for EVCC
96 stars 60 forks source link

[feature_request] Expose EVCC controls to HA #78

Closed andreas-bulling closed 4 months ago

andreas-bulling commented 11 months ago

I have successfully configured EVCC in my HA installation, everything works perfectly.

The only thing that is a bit annoying: I have to manually enable the charging by clicking on "fast charging" in the EVCC web interface. I don't seem to find a way to automate this as the EVCC integration doesn't expose any of the controls to HA. Would be great if that was possible.

Skeeve245 commented 11 months ago

This is exactly the same request I have right now 😄

andreas-bulling commented 11 months ago

One can enable MQTT in EVCC, of course, and then create custom sensors, e.g.

mqtt:
  sensor:
    - name: Vehicle Charge Power
      icon: mdi:ev-station
      state_topic: "evcc/loadpoints/1/chargePower"
      unit_of_measurement: W

But this is super tedious as there are a large number of MQTT values...

Skeeve245 commented 11 months ago

This is exactly what I did and what worked for me!

andreas-bulling commented 11 months ago

It does of course - but it is tedious. Would be nicer if all values would be exposed "by default"/automatically

Skeeve245 commented 10 months ago

To create not only a sensor but also a switch you need the following code: `mqtt: sensor:

andreas-bulling commented 10 months ago

Do you also have to start charging through the app or does the car start charging immediately once you activate fast charge in evcc?

Skeeve245 commented 10 months ago

Hi Andreas, depends on your configuration of hardware (car, wallbox and possible energy manager) and software EVCC and Home Assistant and the parameters of all .... Yesterday evening I used above described switch to switch to full load if connected and then connected my car this morning. I was expecting that the car would start immediately because of the switch. Nothing happend ... Unfortunatley I installed the update of Home Assistant before this which restarted the Home Assistant and with this EVCC. And after restart EVCC goes to PV mode ... So maybe its working maybe not, I am too lazy to go out and try it again, car is happy charging now :-D

Skeeve245 commented 10 months ago

Okay it was not the restart of EVCC but that I set the mode in EVCC.yaml. Commented it out and will see whether the choosen mode will stay ...

Skeeve245 commented 10 months ago

The mode stayed, so everything is as I want it :-D

hzpz commented 10 months ago

This was requested on the main project as well: https://github.com/evcc-io/evcc/discussions/11256

thecem commented 4 months ago

Maybe someone request a change to the docu, that other users find this Information as well and helpful?