Page 1 of 1

Why does the P1 gas graph show the hourly usage and not 5 minute usage?

Posted: Tuesday 02 March 2021 21:36
by jvdk
The P1 gas meter is read every 5 minutes and the values are stored in the Domoticz csdb. In the Usage Last 24 hours graph the usage per hour is shown in a bar graph. In other graphs, for instance the P1 electricity usage, the usage is shown in a line graph with 5 minute interval values.
I checked the Domoticz cdsb: the gas values are stored every 5 minutes.
  • Why does the gas graph not show a line graph with 5 minute interval values?
  • Can I change something so that the 5 minute values are shown?
Jan

Re: Why does the P1 gas graph show the hourly usage and not 5 minute usage?

Posted: Wednesday 03 March 2021 11:00
by EdwinK
I beiieve the gas usages is only update once a hour in the smart meter, so there is no data.

Re: Why does the P1 gas graph show the hourly usage and not 5 minute usage?

Posted: Wednesday 03 March 2021 11:25
by waaren
EdwinK wrote: Wednesday 03 March 2021 11:00 I beiieve the gas usages is only update once a hour in the smart meter, so there is no data.
👍 Don't know if that's true for all smart meters but it is for mine. The device is updated every 5 minutes but the value only changes once per hour.

Re: Why does the P1 gas graph show the hourly usage and not 5 minute usage?

Posted: Wednesday 03 March 2021 19:48
by jvdk
I just checked the csdb and found that the P1 gas value is updated every 5 minutes. The second column below is the gas counter value.

861 1697549 0 2021-02-19 19:50:00
861 1697607 0 2021-02-19 19:55:00
861 1697702 0 2021-02-19 20:00:00
861 1697769 0 2021-02-19 20:05:01
861 1697822 0 2021-02-19 20:10:01
861 1697936 0 2021-02-19 20:15:01
861 1698062 0 2021-02-19 20:20:01
861 1698155 0 2021-02-19 20:25:00
861 1698189 0 2021-02-19 20:35:00

So that cannot be the reason I do not get 5 minute graphs.

Jan

Re: Why does the P1 gas graph show the hourly usage and not 5 minute usage?

Posted: Wednesday 03 March 2021 21:23
by FireWizard
Hi,
Why does the gas graph not show a line graph with 5 minute interval values?
I think, it has something to do with backward compatibility.

DSMR 4.2 and earlier versions emits a telegram every 10 seconds, but for the connected Gasmeter (and others) P1 transfers every ten seconds the latest received hourly value & timestamp

DSMR 5 (and newer) versions updates every second, but also here for the connected Gasmeter (and others) P1 transfers every second the latest received 5-minute value & timestamp

The update frequency, both for electricity and gas, is dependent on the used software version of the Smart meter (so the age of the meter).

So, in my opinion, in order to stay compatible with previous versions the Gas data is presented as hourly values.

Regards

Re: Why does the P1 gas graph show the hourly usage and not 5 minute usage?

Posted: Wednesday 05 May 2021 19:36
by astrapowerrr
Can you set the interval of 5 min registration?
For example I have a pump I want to register on my graphs.. it switches on about every 30/45 minutes. And it pumps for 30 seconds.
I can’t see this in my graph? So it looks like there’s no power usage.
Now I use prowl to notify me when pump is on. But I’m loaded with notifications now…
And I just want to control/check if pump is working..and in what interval..

I hope you guys have some answers for this.

Re: Why does the P1 gas graph show the hourly usage and not 5 minute usage?

Posted: Sunday 11 December 2022 13:33
by AndrePower
Me too, I would like to have a more accurate Gas usage graph as my meter sends updates every 5 minutes (with different values), not once every hour.
How can I put in a feature request for this?

Re: Why does the P1 gas graph show the hourly usage and not 5 minute usage?

Posted: Wednesday 14 December 2022 12:06
by athoopen
I also would really like to get a higher frequency of updates for gas. What is the proper way to ask for such an enhancement?
Cheers,
Arjan

Re: Why does the P1 gas graph show the hourly usage and not 5 minute usage?

Posted: Wednesday 14 December 2022 15:29
by waltervl
The best option is to program it yourself on your own installation
Somebody already started but ran into issues. viewtopic.php?p=295591

Re: Why does the P1 gas graph show the hourly usage and not 5 minute usage?

Posted: Wednesday 14 December 2022 15:44
by thomasbaetge
My Gas meter sends data in realtime every 10l of consumption.
I feed it to Domoticz as it comes in (with the effect mentioned), but also into an Influx DB via node-red. That way I can set any resolution I want.
However, this is actually (coincidentially) set to 1 hour at the moment. As for me, I fail to see a benefit in a higher resolution, any correlation I'd like to derive from it already works with the 1 hour window, given the fact, that all related processes (Temperatures) are pretty inert.

Re: Why does the P1 gas graph show the hourly usage and not 5 minute usage?

Posted: Wednesday 14 December 2022 16:59
by athoopen
@waltervl: not everybody is a programmer ;)

Re: Why does the P1 gas graph show the hourly usage and not 5 minute usage?

Posted: Wednesday 14 December 2022 17:12
by thomasbaetge
Did you even bother to check the link, Walter provided?
it is "find a file and insert one line into it at a given position", although there seems to be a subsequent issue, but I am sure that will be adressed shortly.

That does not require any programing skills at all.

Re: Why does the P1 gas graph show the hourly usage and not 5 minute usage?

Posted: Wednesday 14 December 2022 19:19
by waltervl
I checked the link and it is in source code so technically it is programming. :-)
I just wanted to link you to the topic as I am not a coder and perhaps someone comes by that thinks this is important and finds it very easy to change.
If you want to do it feel free to submit a PR on GitHub and everyone can enjoy the change. Be aware the it should also work for those users that have a gas meter with only hourly updates ...

Re: Why does the P1 gas graph show the hourly usage and not 5 minute usage?

Posted: Friday 16 December 2022 11:04
by athoopen
@thomasbaetge: yes I did read the code and also read UPDATE2. It seems to be not as easy as everybody hoped. So there is more to do then just adding one line. If it was that easy I would have done that.

I was not trying to be offensive, I just asked a question as a non-technical user,

Re: Why does the P1 gas graph show the hourly usage and not 5 minute usage?

Posted: Wednesday 15 March 2023 20:47
by athoopen
All,

I digged again into this. Examining the data coming from the gas meter in the domoticz database it turns out that every 5 minutes a value is reported. However it's always "0" except once every hour (in my case 5 minutes past the hour), at that time theconsumed amount for the previous hour is reported.

It therefore makes no sense to make more accurate reports/graphs until the gas meter reports more accurate data (every 5 minutes).