How to record pulses from energy meters ?

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

How to record pulses from energy meters ?

Post by syldes » Saturday 13 January 2018 0:59

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: 220
Joined: Wednesday 21 December 2016 10:11
Target OS: Raspberry Pi
Domoticz version: current
Contact:

Re: How to record pulses from energy meters ?

Post by blauwebuis » Saturday 13 January 2018 10:09

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 23:48
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: How to record pulses from energy meters ?

Post by syldes » Saturday 13 January 2018 11:45

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: 28
Joined: Saturday 25 November 2017 18:18
Target OS: Raspberry Pi
Domoticz version: v3.8153
Location: Czech Rep.
Contact:

Re: How to record pulses from energy meters ?

Post by kimot » Sunday 21 January 2018 18:51

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

blauwebuis
Posts: 220
Joined: Wednesday 21 December 2016 10:11
Target OS: Raspberry Pi
Domoticz version: current
Contact:

Re: How to record pulses from energy meters ?

Post by blauwebuis » Sunday 21 January 2018 19:49

There are specialized virtual sensors for this. Use those.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests