I'm trying to monitor my energy usage and have a meter that has an LED that pulses 1000 times per KwH.
I had something working with an arduino where it would sent an MQTT message every time there was a pulse. Then to calculate the "live" power usage I calculated the time since the last pulse and used that to generate quite an accurate "watts" value.
Is there any way in ESP Easy to do this? Send a message each time there is a pulse?
Pulse Counter - Send a message to controller for each pulse?
Moderators: grovkillen, Stuntteam, TD-er
-
- Normal user
- Posts: 19
- Joined: 20 Oct 2017, 14:30
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Pulse Counter - Send a message to controller for each pulse?
This is how I do it.
3600 is seconds in an hour.
Code: Select all
%value%*3600/<delay interval>
- Attachments
-
- Screenshot_20180430-070457.jpg (295.32 KiB) Viewed 2328 times
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Who is online
Users browsing this forum: Bing [Bot] and 71 guests