dlmcpaul/EnphaseCollector

Publish real-time stats to MQTT server

goldserve opened this issue · 3 comments

Would be good to publish PV generation, consumption, grid import, grid export to MQTT so other smart devices like openevse can adjust the car charge current to only use the excess generation to charge the car.

Example code:
https://github.com/vk2him/Enphase-Envoy-mqtt-json/blob/main/envoy_to_mqtt_json.py
https://github.com/OpenEVSE/Solar_MQTT/blob/main/Tesla%20Energy%20Gateway/Tesla_Energy_Gateway_mqtt.py

Should be straight forward

Create a specific service listener like https://github.com/dlmcpaul/EnphaseCollector/blob/master/src/main/java/com/hz/services/PrometheusService.java

Then add a config file to setup the connection.

Is there a standard for the field names?

@goldserve Untested code pushed to repository. Welcome to test.

This code is available in the new release. With no feedback on usefulness I can do no more.