CircuitSetup 42 channel energy meter stack over ethernet!

I’ve been testing different ways to get the CircuitSetup 6 channel energy meters working over ethernet, and I finally have a solution! This has been a long requested feature, since a lot of people don’t have good wifi where their circuit breaker boxes are located.

Using the Lilygo T-ETH-Lite ESP32S3, and a new adapter board, you can now get up to 42 current channels (main + 6 add-on boards) into HA via ESPHome over ethernet!

5 Likes

Thank you for this! Can’t wait to convert my hacked solution with the other ethernet board to this more supported and solid solution.

1 Like

Definitely interested in this! I’ll be keeping an eye out for more of the adapter boards.

Side question: Would it be possible to isolate the ESP32 power supply from the energy meter PCB and use the POE addon for the Lilygo board? Trying to plan out some modifications to my setup, and I’d like to be able to keep the ESP board powered via POE on a UPS when I switch between AC Main, Generator, and Battery Backup (Bluetti).

I should have more in stock next week!

You would have to remove component br1 (voltage rectifier) from the meter to power the esp32 and ICs via POE. I may put a jumper on the main board for a future revision.

2 Likes

This looks great, tempted to try one with one of the Zigbee options.

I’d be keen on this too.

Does the whole system normally get powered from the AC voltage monitoring input?

Which Zigbee options are you referring to? There isnt one that works with the 6 channel meter that I’m aware of.

Yes, this is what the rectifier does. You’d be bypassing that and the on-board power supply.

Was thinking something like the ESP32-H2 or the C6 should work, would need to confirm the pinout. Saw you already have a library, so think it should be possible.

So it’s the whole system that would run from PoE, not just the ESP? With the AC voltage reference then not powering the monitoring board either?

Unfortunately, the H2 or C6 would each require a different adapter. They wouldn’t be able to support all 42 current channels either since they’re more limited on GPIO’s than the S3. The ATM90E32 library is specific to Arduino, and there’s the ESPHome integration, but some additional coding would be needed to get data between SPI and Zigbee. ESPHome doesn’t yet support Zigbee on ESP32 chips.

Yes. This needs to be tested, but I’m assuming the Lilygo T-ETH-Lite with the POE shield will output 3v3 on it’s 3v3 pin.

Thanks, I hadn’t dug into the hardware design yet. This is a project I’ve wanted to do, just hadn’t had time to sit down and design it. Still think this will save me time on the hardware design. I found your repo and will dig into the design, was planning on building it in Arduino anyway, so the library is perfect. Ideally the smaller ESP will cover my requirements, since I don’t need the full 42 channels, but worst case I can adapt to another mc. I have multiple projects using arduino and xbee, so worst case that’s an option.

Also something interesting to keep an eye on: LilyGO just released the T-ETH-Elite which has the POE on-board, but also has LTE and LoRA shields, which could allow for reading remote panels (e.g. shops/outbuildings without direct internet).

1 Like

I’m writing a zigbee implementation of your energy meter, are the readings for current and voltage RMS?

That looks awesome!

Yes, readings are in RMS. I would recommend taking a look at the datasheet and application note for the ATM90E32AS, located here: https://www.microchip.com/en-us/product/atm90e32as

Also take a look at what the code is doing in esphome for startup and setting calibrations. Properly setting the offset registers for power is currently being worked on.

I’m curious what you’re coding things in and how you plan on connecting everything? It would have to be added to Z2M and ZHA, right?

Following posts deemed off topic, will detail project in another thread.

That’s awesome! I’m glad to hear you got this working! What module are you using for zigbee communication?

Also, can you start a new thread since this is different from the original topic?

1 Like