Enphase Envoy Solar through MQTT

Since a month or so I have solar panels in combination with a Enphase Envoy-S gateway. Since the standard Envoy HA integration doesn’t support the newest firmware (0.7x) I created a Python application/script that uses the gateway API (currently the ‘local’ one, so not (yet) through the Enphase ‘cloud’ API) to get data out (currently, the current power and the energy during the day).
This data is then posted to a MQTT topic which can be used in combination with the MQTT integration in HA to populate the energy dashboard.

See GitHub - keigezellig/envoy-solar-reader: Retrieve data from an Enphase Envoy solar gateway and post it an MQTT topic

Let me know what you think of it.

1 Like

Hi,

Still no luck with publishing my envoy to mqtt.
I saw your post, but looks very complicated and time has moved on. Can you help me with the correct payload automation to get my solar production in mqtt?

What is not working then?

My Json is not correct, i get following error:

Received message is not a valid JSON. Check the README and sample payload. Expecting property name enclosed in double quotes: line 3 column 20 (char 33)

{
    "pv": {
        "power": {{ (states('sensor.envoy_122248025029_current_power_production') | float(0)) }},
        "L1": {
            "power": {{ (states('sensor.p1_meter_vermogen_fase_2') | float(0)) }}
        }
    }
}