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.
#Help integrating current transformer data into HA
14 messages · Page 1 of 1 (latest)
whats the hardware setup? what is querying the i2c?
Here is a picture of some of the hardware.
The sampling is done via a small CPU board that is running Linux and has python and php on it. Does that help?
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
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.
An example using dallas sensors I did. https://github.com/SirGoodenough/ThermoPI-Cottage
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!
good luck, it looks like a really cool project. would love to see a full write up if you ever do one
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.
I have nothing against ESPHome, but it is separate configurations to manage. You have it in Linux already, so let it work for you.
yeah this is probably a good shout. esphome was my first thought only because i figured if i was building something like this now it would be with esphome 😛
adding to the current system is probably going to be easier than adding an entirily new thing
Awesome, thanks for the advice!
Almost there! I have an ESP32C6 that is now communicating to HA via MQTT and sending sample data to HA every second. I needed to order a 3v to 5v logic level converter because the board with the CT (current transformers) uses 5v for the I2C communications. Just waiting on those parts to come in. Thanks for the help!!!!