Daily usage from accumulated data

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
lagerberg
Posts: 4
Joined: Friday 23 December 2016 18:05
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Sweden
Contact:

Daily usage from accumulated data

Post by lagerberg »

Hi,
I have a Shelly power meter connected to my heat pump.
I can get total consumption of energy from one of the counters in the MQTT integration but I would like to display the usage by day, instead of a line showing increasing numbers. Is there a way to do this directly in Dashticz, or do I need a script to subtract yesterday’s consumption from the figure to get the net change by day?
FlyingDomotic
Posts: 303
Joined: Saturday 27 February 2016 0:30
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Contact:

Re: Daily usage from accumulated data

Post by FlyingDomotic »

Did you tried using a P1 smart meter (energy)? It does it by default.
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Daily usage from accumulated data

Post by waltervl »

The same for a Domoticz Electricity (instant and counter) device.
https://www.domoticz.com/wiki/Dummy_for ... counter.29
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
lagerberg
Posts: 4
Joined: Friday 23 December 2016 18:05
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Sweden
Contact:

Re: Daily usage from accumulated data

Post by lagerberg »

Hi,
Thanks a lot for your replies @waltervi and @FlyingDomotic. I started to experiment in that direction using dzvents script, and I think I'm getting the hang of it. I can feed power and energy data to the object, and I can see that data comes in.

Should I make the script so that I read the values (reading from Shelly device via MQTT) for power, which seems to update more often, and then read and update the usage at that time? I guess the meter will use the actual time of update to do its calculations..

Best regards
FlyingDomotic
Posts: 303
Joined: Saturday 27 February 2016 0:30
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Contact:

Re: Daily usage from accumulated data

Post by FlyingDomotic »

lagerberg wrote: Tuesday 22 October 2024 19:35 Should I make the script so that I read the values (reading from Shelly device via MQTT) for power, which seems to update more often, and then read and update the usage at that time? I guess the meter will use the actual time of update to do its calculations..
I don't understand why you want to make a script. Wouldn't it be possible to directly send MQTT data to device each time value changes in MQTT?
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Daily usage from accumulated data

Post by waltervl »

Your Shelly power device should have created a Domoticz Electricity (instant and counter) device. So go to the author of that integration to ask to create a proper Domoticz device

What Shelly integration do you use?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest