ESP Easy Pulse MQTT messages
Moderators: grovkillen, Stuntteam, TD-er
ESP Easy Pulse MQTT messages
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
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
Re: ESP Easy Pulse MQTT messages
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
regards
paolo
Re: ESP Easy Pulse MQTT messages
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)
With the "time" info i could (because it's the duration between 2 interruptions = 2 flash of the led light of my electric meter)
-
- Normal user
- Posts: 103
- Joined: 16 Sep 2015, 20:32
Re: ESP Easy Pulse MQTT messages
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
For me it is giving a flash p/w or so to say 1000 pulses for a kilowatt.
But your meter can be different
Re: ESP Easy Pulse MQTT messages
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).
In order to get instant consumption you need to have access to the "time" (duration in ms between 2 flash).
-
- Normal user
- Posts: 103
- Joined: 16 Sep 2015, 20:32
Re: ESP Easy Pulse MQTT messages
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.
It recieves the count from the last minute and knows the "Wattage" from the last minute or any other time since the last message.
Re: ESP Easy Pulse MQTT messages
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
Do you know what this x seconds is.
Also having the "time" would give a much more accurate estimation of the real power consumption
-
- Normal user
- Posts: 103
- Joined: 16 Sep 2015, 20:32
Re: ESP Easy Pulse MQTT messages
My ESPEasy sends every 60 seconds a pulse count.Yves911 wrote: Do you know what this x seconds is.
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"
Re: ESP Easy Pulse MQTT messages
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
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
-
- Normal user
- Posts: 103
- Joined: 16 Sep 2015, 20:32
Re: ESP Easy Pulse MQTT messages
I do not think that it is less precise, the counts are higher and the time is longer.Yves911 wrote: Counting number of flash over 1 min is less precise...
Cheers
Yves
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

Re: ESP Easy Pulse MQTT messages
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
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
Who is online
Users browsing this forum: Ahrefs [Bot] and 12 guests