joeshaw / powerley-energybridge-homekit

HomeKit support and Prometheus exporter for the Powerley Energy Bridge (aka AEP Energy Bridge or DTE Energy Bridge)
MIT License
19 stars 0 forks source link

Homebridge Plugin? #2

Closed latetedemelon closed 2 years ago

latetedemelon commented 2 years ago

Hi Joe,

Any thought to turning this into a homebridge plugin? Just wanted to see if it was on your radar.

https://github.com/homebridge/homebridge-plugin-template

Cheers

Rob

joeshaw commented 2 years ago

@latetedemelon I am not a Homebridge user but my understanding is that the plugins have to be written in Javascript, and this project is written in Go. That means a total rewrite, and not something I'm interested in doing. But you could run this alongside an existing Homebridge installation without any problems, but you wouldn't get whatever additional integration Homebridge gives you.

There may be existing Homebridge plugins that do what you want. Communication with the energy bridge is via MQTT, so that's what you want to search for. One possibility is https://github.com/uebelack/homebridge-mqtt-power-consumption. There may be others. Good luck!

latetedemelon commented 2 years ago

No worries, I'll take a look thanks.

FYI, this repo seems to have a full list of topics if you're interested:

https://github.com/timothyf/dte-eb-connect/blob/master/src/config-topics.js