Current value for Gas meter (P1)

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
ruudboon
Posts: 5
Joined: Saturday 21 November 2015 13:28
Target OS: NAS (Synology & others)
Domoticz version:
Location: Netherlands
Contact:

Current value for Gas meter (P1)

Post by ruudboon »

I'm running Domoticz and connect my P1 DSMR 4 Energy/Gas meter.
For a dashboard I'm relying on the http push mechanism. It work great for the energy meter but when I use the current usage of the gas I get "Not supported yet" pushed.
Looking at the log I see that the P1 is pushing a new gas value every 5 minutes. Can you implement the difference between 5 minutes as current?
User avatar
gizmocuz
Posts: 2350
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Current value for Gas meter (P1)

Post by gizmocuz »

the p1 meter gas reading is updated once every hour

i am not the author of the 'push' class, but if you look at 'CPush::ProcessSendValue' you see many types are not yet supported
maybe you could add them ?
Quality outlives Quantity!
ruudboon
Posts: 5
Joined: Saturday 21 November 2015 13:28
Target OS: NAS (Synology & others)
Domoticz version:
Location: Netherlands
Contact:

Re: Current value for Gas meter (P1)

Post by ruudboon »

I think the new generation meters are pushing it every 5 minutes. When looking at the hour statistics I see the change every 5 min. I'll checkout 'CPush::ProcessSendValue'
ruudboon
Posts: 5
Joined: Saturday 21 November 2015 13:28
Target OS: NAS (Synology & others)
Domoticz version:
Location: Netherlands
Contact:

Re: Current value for Gas meter (P1)

Post by ruudboon »

As far as I can see the gas data is a simple Counter type. Probably the way gas is stored should changed to support it. For now I'll just pull every 5 minutes the last hour value. And compare it with the last one. Would be great if it can be implemented in a native way.
User avatar
gizmocuz
Posts: 2350
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Current value for Gas meter (P1)

Post by gizmocuz »

Not that i know off... i think it is every hour...
there is no need to calculate anything, you have a counter and the total usage of the day
we are not going to calculate 1m3 used in the last 5 minutes no
Quality outlives Quantity!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest