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

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
jvdk
Posts: 32
Joined: Sunday 11 August 2019 17:16
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post 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
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

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

Post by EdwinK »

I beiieve the gas usages is only update once a hour in the smart meter, so there is no data.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

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

Post 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.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
jvdk
Posts: 32
Joined: Sunday 11 August 2019 17:16
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post 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
User avatar
FireWizard
Posts: 1745
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

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

Post 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
astrapowerrr
Posts: 141
Joined: Tuesday 31 January 2017 20:34
Target OS: -
Domoticz version:
Contact:

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

Post 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.
AndrePower
Posts: 7
Joined: Tuesday 11 July 2017 20:29
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Contact:

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

Post 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?
athoopen
Posts: 27
Joined: Wednesday 14 December 2022 12:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Netherlands
Contact:

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

Post 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
Cheers,
Arjan
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

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

Post 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
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
thomasbaetge
Posts: 153
Joined: Wednesday 02 October 2019 11:47
Target OS: Linux
Domoticz version: 2023.1
Location: DE / BY / LT
Contact:

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

Post 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.
athoopen
Posts: 27
Joined: Wednesday 14 December 2022 12:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Netherlands
Contact:

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

Post by athoopen »

@waltervl: not everybody is a programmer ;)
Cheers,
Arjan
thomasbaetge
Posts: 153
Joined: Wednesday 02 October 2019 11:47
Target OS: Linux
Domoticz version: 2023.1
Location: DE / BY / LT
Contact:

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

Post 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.
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

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

Post 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 ...
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
athoopen
Posts: 27
Joined: Wednesday 14 December 2022 12:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Netherlands
Contact:

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

Post 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,
Cheers,
Arjan
athoopen
Posts: 27
Joined: Wednesday 14 December 2022 12:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Netherlands
Contact:

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

Post 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).
Cheers,
Arjan
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest