Page 1 of 1

Energy Meter S0 Output with ESP8266

Posted: Monday 09 November 2020 18:58
by DarkG
Hello Everyone.

I bought an Energy Meter to use it with Domoticz. It has a S0 Output.
I wired it to an ESP8266 with ESPEasy Firmware.

S+ to 3.3V and S0 to D5 with a Resistor 4.7K to Ground.
The Esp is configured to a pulse Counter with falling Signal and a debounce of 20 ms.
I sent the counter to an IDX. But it wont work.

Is here anyone who uses such a solution?
H02accbc7a9d34e81bdd3e9401f78d6887.jpg
H02accbc7a9d34e81bdd3e9401f78d6887.jpg (32.59 KiB) Viewed 6030 times
Hb1d097f9dd464e66a062524de86ba559q.jpg
Hb1d097f9dd464e66a062524de86ba559q.jpg (19.95 KiB) Viewed 6030 times

Re: Energy Meter S0 Output with ESP8266

Posted: Monday 09 November 2020 19:13
by kiddigital
What type of virtual device did you create?

Re: Energy Meter S0 Output with ESP8266

Posted: Monday 09 November 2020 19:14
by DarkG
RFX Meter

Re: Energy Meter S0 Output with ESP8266

Posted: Monday 09 November 2020 19:16
by kiddigital
Do you see any calls to domoticz from the esp in the log of Domoticz?

Re: Energy Meter S0 Output with ESP8266

Posted: Monday 09 November 2020 19:17
by DarkG
No not really. First of all the esp must work and get the value from the power meter

Re: Energy Meter S0 Output with ESP8266

Posted: Monday 09 November 2020 22:06
by Toulon7559
Perhaps this information is worth reading before trying to make an interface between the S0-interface of your kWh-meter and the ESP8266:
https://www.letscontrolit.com/forum/vie ... ?t=71#p866

Re: Energy Meter S0 Output with ESP8266

Posted: Tuesday 10 November 2020 0:06
by DarkG
I think the esp is now working. I get the value from the meter.

But what now? Do I need a script?

Re: Energy Meter S0 Output with ESP8266

Posted: Tuesday 10 November 2020 13:37
by Toulon7559
Just some suggestions 'what next'

'Inside' ESPEasy you could use Rules to locally perform control functions at the ESP8266,
e.g. control of a relais or indicator.

'Outside the ESP8266: Is the info from the ESP8266 arriving at the related Virtual Device at Domoticz?
Domoticz provides basic graphs & tables with the data collected over time.
Furthermore, under application of that Virtual Device you might process the data for all kind of purposes:
- for control of actuators simplest is using Blockly in Domoticz to make a basic script
- using lua-script, dzVents-script or Python-script (to name a few) ;) the road is open for all your nice projects .......
If your meter measures the output of a PV-System, one of the 'usual' applications is upload of PV-data to PVOutput for additional/remote graphing & archiving: just look around in this Forum for a script to be used.
If your meter measures 'Local Consumption', then look for a dashboard-script to get the archived & actual info nicely displayed at a website.