How to record pulses from energy meters ?

Moderator: leecollings

Post Reply
syldes
Posts: 2
Joined: Friday 12 January 2018 22:48
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

How to record pulses from energy meters ?

Post by syldes »

Hello,

I'd like to record in Domoticz the pulses issued from my energy meters.
I've got 4 (and more to come) energy meters in my setup, each sending 1 pulse for 1W consumed.
I have not definitely chosen the way these pulses will be pushed to Domoticz, but probably by using Arduino/ESP8266 with pulse detection code and JSON API for sensor update (or any better idea, as long as it is wireless or on LAN)

I'm first interested in tracking the power consumption by hour:minute of the day, and if possible, instant power consumption.

What is the best virtual sensor to record those pulses in Domoticz ?

Thank you !
blauwebuis
Posts: 331
Joined: Wednesday 21 December 2016 9:11
Target OS: Raspberry Pi / ODroid
Domoticz version: current
Contact:

Re: How to record pulses from energy meters ?

Post by blauwebuis »

There are so many possibilities :-)

I use MySensors. This allows for a wireless encrypted connnection. But you may also be able to rig something up directly to your Pi. Aliexpress has lots of nice little LDR sensor boards that to all the work for you.

https://www.aliexpress.com/item/Photose ... 49658.html

For the MySensors option you'll also need two NRF24 modules, and an arduino nano. Total cost: less than 5 euro.
syldes
Posts: 2
Joined: Friday 12 January 2018 22:48
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: How to record pulses from energy meters ?

Post by syldes »

Thank you, but in the meantime, what virtual sensor best fits my use case : counting single pulses with minute (or even seconds) acuracy ?
kimot
Posts: 104
Joined: Saturday 25 November 2017 17:18
Target OS: Raspberry Pi / ODroid
Domoticz version: v3.8153
Location: Czech Rep.
Contact:

Re: How to record pulses from energy meters ?

Post by kimot »

Forgot about minute/second accuarcy with Domoticz.
Forgot about any accuracy with Domoticz in case energy consumption calculated by Domoticz.
It is well known bug.

viewtopic.php?f=6&t=20810&p=161377&hilit=kimot#p161377

http://www.domoticz.com/forum/viewtopic.php?f=6&t=20712
RPi2 Domoticz v 4.10717
10 x Sonoff Basic - ESPeasy
1 x Wemos D1 - ESPeasy
1 x Shelly Plus Plug S
1 x Sonoff S26 - ESPeasy
1 x Shelly 1
1 x MySensors HC-SR04
1 x MySenosrs wifi gateway
1 x RFLink
4x Cam IPC-T240H
blauwebuis
Posts: 331
Joined: Wednesday 21 December 2016 9:11
Target OS: Raspberry Pi / ODroid
Domoticz version: current
Contact:

Re: How to record pulses from energy meters ?

Post by blauwebuis »

There are specialized virtual sensors for this. Use those.
rich710
Posts: 17
Joined: Sunday 18 September 2016 11:10
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: How to record pulses from energy meters ?

Post by rich710 »

I have this Pulse counter that show up in my RFXTRX and Domoticz and workd perfect.
http://foogadgets.tictail.com/product/wpc3
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests