ATM90E36 Mains Energy Monitor Integration #826
Unanswered
DitroniX
asked this question in
New integrations
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the integration you'd like
Device integration support required for ATM90E36, ideally so it is native within HA/ESPHome. Have documented information and tweaks from HA already supported ATM90E32.
If anyone is able to assist in any way, happy to support where needed, so expanding the core energy monitoring within HA.
Many thanks in advance. Dave
What are your use cases for this integration?
Background
Following in the footsteps of the popular IPEM (ATM90E32 or ATM90E36) IoT Power Energy Monitor SDK, I have launched the new EPEM Ethernet, Power Energy Monitor.
Home Assistant / ESPHome
HA currently supports the ATM90E32 through the ESPHome ATM90E32 Power Sensor ,
What I would like to do is add equivalent functionality ATM90E36 and then add the advanced features as an update.
Integrated boards.
Once native support can be included, this will then help users to integrate boards such as IPEM and the new EPEM.
The new EPEM board is based on the ATM90E36 and the ESP32-C6. This board offers High Accuracy Poly-Phase Energy Metering via SPI to the ESP32-C6, using either a Current Transformer (CT), or Rogowski Coil current sensor. Ethernet on the board is based on the WIZnet W5500.
EPEM is listed on Kickstarter https://www.kickstarter.com/projects/ditronix/epem-ethernet-power-energy-monitor
Temporary workaround to test
Based on using the ATM90E32 device template, maybe we could check register 0x30 (ConfigStart), which for the E36 is, at ‘power up’ factory 0x6886, or user ‘warm boot’ 0x5678, by default.
Have also found the below alternative integration which may help but I do not understand HA enough to implement it – equally, it would be much better solution for users to incorporate direct E36 support in ESPHome.
https://github.com/radioelf/atm90e36-to-EspHome/
Is there a public API or documentation?
Device
The ATM90E36 offers the below, over the standard ATM90E32.
• Has slightly more functionality and added registers such as all phases can be directly accessed through related registers, thus simplifying hardware design in Data Acquisition Terminals.
o THD - Total Harmonic Distortion
o DFT - Discrete Fourier Transform
• Data dumping/logging over DMA with the chip in SPI-master mode (Stream out 7- channel ADC raw data).
• Additional Neutral CT Input.
• Is capable of true three-phase four-wire (3P4W, Y0), or three-phase three-wire (3P3W, Y or Δ) systems.
• Dedicated ADC and different gains for phase A/B/C and Neutral line current sampling circuits.
• DMA Control.
Detail
Have extrapolated the various register data and created a XLS cross reference to hopefully make it easier for whoever can help with HA. This can be found here
Anything else?
Issues
Have tried to ‘talk’ to EPEM natively from HA but find the below which is potentially causing the E36 to be held in possible reset. Attached response.
This existing E32 function seems to check register 0x7F (CfgRegAccEn), which is not used on the E36.

Closing Question
My question is, I am primarily a hardware engineer and whilst I have developed various test applications and code, software is not my area.
For this reason, I would like to someone to create a new sensor platform in HA / ESPhome, which will directly support the ATM90E36.
Is this possible please and what would you like from me to assist you in this process?
Happy to sponsor but unsure how HA development is managed.
Many thanks in advance and for taking time to hear me out.
Beta Was this translation helpful? Give feedback.
All reactions