jkeljo / hacs-greeneye-monitor

HACS version of the Home Assistant Core greeneye_monitor component. For beta-testing and faster deployment of changes.
MIT License
6 stars 2 forks source link

Support for legacy serial interface on ECM-1240 #32

Closed 42Network closed 1 year ago

42Network commented 1 year ago

Add support for ECM-1240 serial communications

I have three ECM-1240 devices monitoring 20 circuits plus main (21 channels total) in my circuit panel. I have a custom solution using a tweaked version of Matt Wall's btmon.py sending MQTT values into HA & InfluxDB. I have an ugly Excel spreadsheet which generates the Homeassistant MQTT discovery messages for the 21 channels. These btmon.py scripts run on an RPi with a quad USB-to-serial cable that plugs into the three ECM-1240 (one serial port is used) and the RPi sends the power metrics to HA. All these scrips are stared automatically using Systemd.

I would love to move to a more officially supported solution, such as this HACS repository, but none of my ECM-1240s are "on the network" and cannot dump values to a TCP listener.

Can you think of a way to use your HACS solution in my case?

Thanks

jkeljo commented 1 year ago

My collaborator on the library this integration uses to work with ECMs and GEMs also gets data from his device over serial and pipes it to MQTT. His project to do so, which is based on some of the same underlying libraries as this one, is here: https://github.com/sdwilsh/brultech-serial2mqtt

Give that a look, see if it would work for you!

42Network commented 1 year ago

Holy cow, no idea that existed! Will check it out for sure.

sdwilsh commented 1 year ago

I haven't had a lot of time for that project to update it with our latest changes in the upstream, but it shouldn't be too hard to do either!

jkeljo commented 1 year ago

I'm closing this issue since I think that other project should cover your needs. Feel free to reopen if you want to continue discussing it here.