ESP Easy Pulse MQTT messages

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Yves911
Normal user
Posts: 18
Joined: 21 May 2016, 17:38

ESP Easy Pulse MQTT messages

#1 Post by Yves911 » 12 Jun 2016, 12:37

Pulse plugin only send "count" values over MQTT messages.
Other info like "Time" and "Total" aren't send over MQTT.

I have tried to understand why "Time" and "Total" aren't send into the pulse plugin code but haven't been able to find the reason...
\ Yves

pppp33
Normal user
Posts: 71
Joined: 25 Oct 2015, 17:53

Re: ESP Easy Pulse MQTT messages

#2 Post by pppp33 » 12 Jun 2016, 16:23

I think it's "by design": MQtt Brokers/Clients don't manage total or time coming from espeasy, but calculate their own values.....
regards
paolo

Yves911
Normal user
Posts: 18
Joined: 21 May 2016, 17:38

Re: ESP Easy Pulse MQTT messages

#3 Post by Yves911 » 12 Jun 2016, 18:28

thanks @pppp33, with only the "count" value i don't see how to calculate the consumption because you don't get any timing value associated
With the "time" info i could (because it's the duration between 2 interruptions = 2 flash of the led light of my electric meter)

NietGiftig
Normal user
Posts: 103
Joined: 16 Sep 2015, 20:32

Re: ESP Easy Pulse MQTT messages

#4 Post by NietGiftig » 12 Jun 2016, 18:44

Maybe your having another electric meter, but mine has also 1 led.

For me it is giving a flash p/w or so to say 1000 pulses for a kilowatt.

But your meter can be different

Yves911
Normal user
Posts: 18
Joined: 21 May 2016, 17:38

Re: ESP Easy Pulse MQTT messages

#5 Post by Yves911 » 12 Jun 2016, 19:13

The same than you @NietGiftig, a flash p/w or so to say 1000 pulses for a kilowatt => Yes but if i understand how the "count" work it show number of led flash for a certain amount of time (don't know how many s/ms).

In order to get instant consumption you need to have access to the "time" (duration in ms between 2 flash).

NietGiftig
Normal user
Posts: 103
Joined: 16 Sep 2015, 20:32

Re: ESP Easy Pulse MQTT messages

#6 Post by NietGiftig » 12 Jun 2016, 19:50

But the receiving apllication, so to say the brains, knows that, and can calculate it.
It recieves the count from the last minute and knows the "Wattage" from the last minute or any other time since the last message.

Yves911
Normal user
Posts: 18
Joined: 21 May 2016, 17:38

Re: ESP Easy Pulse MQTT messages

#7 Post by Yves911 » 13 Jun 2016, 18:51

I would like to recreate what "the brain" is doing but i lack some info here, for example i can see that count reset to 0 after few seconds so "count" should be number of flash/x seconds.
Do you know what this x seconds is.
Also having the "time" would give a much more accurate estimation of the real power consumption

NietGiftig
Normal user
Posts: 103
Joined: 16 Sep 2015, 20:32

Re: ESP Easy Pulse MQTT messages

#8 Post by NietGiftig » 14 Jun 2016, 10:52

Yves911 wrote: Do you know what this x seconds is.
My ESPEasy sends every 60 seconds a pulse count.
I'm not using mqtt but the json interface to Domoticz.

We are talking of a measurement of kWh because that is what the meter does.
I do not know what you want to see?
display says : "used 10 watt last minute"

Yves911
Normal user
Posts: 18
Joined: 21 May 2016, 17:38

Re: ESP Easy Pulse MQTT messages

#9 Post by Yves911 » 14 Jun 2016, 18:43

Ok so count is reseted every time you send values (so 60 seconds in your case).
In my current installation (with a own program running on the esp) i am able to measure timing between 2 flash (in ms) exactly like espeasy do (but don't send).
Knowing this value you can have a good/precise idea of what the power consumption is (for example i am able to see when my fridge start, when my fish tank heater stop and start).
Counting number of flash over 1 min is less precise...

Cheers
Yves

NietGiftig
Normal user
Posts: 103
Joined: 16 Sep 2015, 20:32

Re: ESP Easy Pulse MQTT messages

#10 Post by NietGiftig » 14 Jun 2016, 19:46

Yves911 wrote: Counting number of flash over 1 min is less precise...

Cheers
Yves
I do not think that it is less precise, the counts are higher and the time is longer.
A different divide
But after 1000 pulses you have used 1 kWh, no matter how fast you are reading the pulses, the measurement takes longer or shorter.
I hope the 1000 pulse p/kWh are precise because my energy costs depend on the meter.

But it is true that when you check every second you see faster that the pulse count changes.
Useful in domestic use i do not know, maybe for you but not for me
Let me say, when my dishwasher starts at evening, the count goes up from 10 (watt/minute = 600 watt/h ) to about 40/50 until the heather from the dishwasher turns off.
Then it drops to 13 / 16 dependent if the motor is on or off.
Now if I had a fish tank heather and it would start at that moment I would not know what is using what (watt :D ).

Yves911
Normal user
Posts: 18
Joined: 21 May 2016, 17:38

Re: ESP Easy Pulse MQTT messages

#11 Post by Yves911 » 15 Jun 2016, 15:05

I agree the current method is OK on a period of 1h or 30 minutes you can have a good estimation.
Measuring things between 2 flash (this can vary from 600 ms to 12000 ms at my home) can give you a very precise info of the current consumption (and not an average on the last 10 minutes for example).
let's take an example, in 10 minute you get 60 flash using only count give you a good estimation of the consumption over those 10 minutes.
If you measure timing (duration between two flash) you can have 20 flash in the first minute and then the 40 remaining over the rest of the time (9 min).
That means that power consumption was really high during the first minute only.

So count is good (an precise to have an average consumption during last x minutes or hours). But is much less precise than using "timing" indicator for current consumption
See the example below
sample.png
sample.png (59.64 KiB) Viewed 8504 times

Post Reply

Who is online

Users browsing this forum: No registered users and 38 guests