EVCC custom MQTT charger or meter

I use the EVCC addon GitHub - evcc-io/hassio-addon: Hass.io add-on for EVCC plus the integration. For my charger I need to have a MQTT communication between EVCC and Home Assistant, but so far I couldn’t get it to run. Simple meters over MQTT do run!

I opened a ticket in the EVCC Forum but it is still not clear what I am missing.

Has anyone successfully got a working Custom MQTT charger setup in Home Assistant?
Here are my charger settings in evcc.yaml.

chargers:
  - name: Carport
    type: custom
    status: # charger status A..F
        source: mqtt
        topic: evcc-hass/sensor/ev_charging_status_evcc
        timeout: 10m
    enabled: # charger enabled state (true/false or 0/1)
        source: mqtt
        topic: evcc-hass/chargers/charger1/ChargePointEnabled
        timeout: 10m
    enable: # set charger enabled state (true/false or 0/1)
        source: mqtt
        topic: evcc-hass/chargers/charger1/ChargePointEnabled
        payload: ${enable:%d}
        timeout: 10m
    maxcurrent: # set charger max current (A)
        source: mqtt
        topic: evcc-hass/chargers/AConfigured
        timeout: 10m

Hi Lucas,

I am trying to do the same thing, and was wondering if you succeeded. If yes, can you share your charger YAML + the HA sensors you are using for that?

Ok it works more or less but with some timeouts.
Here my config. But keep in mind that eventually there are some improvements made in the meantime. For the power consumption I use a Shelly meter.
In HA I use Node Red for the MQTT commands.

  - name: Heatpump
    type: custom
    status: # charger status A..F
        source: mqtt
        topic: evcc/loadpoints/2/charger/ChargerStatus
        timeout: 10m
    enabled: # charger enabled state (true/false or 0/1)
        source: mqtt
        topic: evcc/loadpoints/2/charger/ChargerEnabled
        timeout: 10m
    enable: # set charger enabled state (true/false or 0/1)
        source: mqtt
        topic: evcc/loadpoints/2/charger/ChargerEnabled
        payload: ${enable:%d}
        timeout: 10m
    maxcurrent: # set charger max current (A)
        source: mqtt
        topic: evcc/loadpoints/2/charger/AConfigured
        timeout: 10m
    icon: waterheater
    features:
      - integrateddevice
      - heating