psvanstrom / esphome-p1reader

ESPHome custom component for reading P1 data from electricity meters.
MIT License
252 stars 106 forks source link

Add mqtt support #30

Closed calania closed 2 years ago

calania commented 2 years ago

Hello! Would it be possible to add mqtt support for us that use something other than home assist?

psvanstrom commented 2 years ago

ESPHome has an extensive support for MQTT so it is absolutely possible to configure the p1-reader to publish MQTT events instead of using the Home Assistant API. This would not require any changes to the code, only configuration changes in the yaml file: https://esphome.io/components/mqtt.html

calania commented 2 years ago

Sounds awesome! Will have a look.

ulfwin commented 2 years ago

@calania Please let us know your findings! I'm using openhab so I'm also very interested in this 😁

calania commented 2 years ago

@ulfwin Sadly I haven't received my meter yet but I will report back once I get it!