@timseebeck It’s very easy. The only problem was the small holes for the ‘big ‘ power cables (…y ahí es donde se nota que el XTM es un producto chino)
@j.assuncao When are you thinking about to have the templates, etc? Do you know how to ‘write’ a new valor in energy accumulated? I would like to have the same value in my HA as in the official meter of the electric company
I’ve bought an equivalent for the XTM18S. It’s a ORNO OR-WE-501 (Polish concept, but also made in China), with digital display, that can handle power cables with a max. of 6mm2. Are your cables bigger than that??
Do you mean the sensor templates for Current and Apparent Power? I can post then here if you want.
Nice work on this project, I have it working with a standard electric meter using the flashing LED on the front reading it using a photoresistor.
I had to remove the pullup from the attachInterupt as it got no readings, and then change the 10000L to 50000L as I kept getting double readings (confirmed by adding ‘Serial.println(interval);’ at the end of the PULSE subroutine.
Can’t remember the resistor for the photoresistor, but I’ll check if anyone is really interested.
@j.assuncao Is there a way of resetting the kwhaccum variable with an automated mqtt message from HA? I’d like to reset it at midnight.
I’m more of a basic programmer than C, so my arduino knowledge (and the resulting scripts) are er … basic. I’ve taken a look at the code and only understand 30% of it
While I’m here ;), I’d like to mention that I’ve broken your software. I use a quantity of electricity and it seems it’s a little too much for your calculations and resets the board.