#Help integrating current transformer data into HA

14 messages · Page 1 of 1 (latest)

jade basalt
#

I'm new to HA and just loaded it inside a VM for the very first time so I need some direction on how to bring into HA the data from sampling more than 48 Current transformers which are sampled every second via an I2C call to get the amps every second. I currently send this to a Grafana server which I use to graph all of it. For a little more background I'm using python to sample the I2C buses. What is a good method for sending this data to HA? Here is a sample of my Grafana dashboard.

waxen tundra
#

whats the hardware setup? what is querying the i2c?

jade basalt
waxen tundra
#

my inital thought was attaching an esp32 running esphome to the i2c bus to do sampling as that would be easy to get into HA

you could also add MQTT to your software and connect it to a MQTT server addon on HA

fleet yoke
#

I second this idea

you could also add MQTT to your software and connect it to a MQTT server addon on HA

#

PAHO in the Linux and away you go.

jade basalt
#

Cool, I'll look into those solutions - Thanks guys/gals! I have a bunch of ESP32C kicking around too! Also thank you for the github example!

waxen tundra
jade basalt
#

Ha,ha! I have had this setup since 2016 and only now getting into HA as I want to sell the house in the spring. I thought who would buy a house with so much technology in it and no light switches any where in the house. I'll be asking a second question about controlling the lighting a little later. Right now it's controlled via web calls triggered by motion sensors. I do have a document some place about the technologies used. I just have to find it.

fleet yoke
#

I have nothing against ESPHome, but it is separate configurations to manage. You have it in Linux already, so let it work for you.

waxen tundra
jade basalt
#

Awesome, thanks for the advice!

jade basalt