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?
Daily usage from accumulated data
Moderators: leecollings, htilburgs, robgeerts
-
- 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
Did you tried using a P1 smart meter (energy)? It does it by default.
- 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
The same for a Domoticz Electricity (instant and counter) device.
https://www.domoticz.com/wiki/Dummy_for ... counter.29
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
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- 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
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
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
-
- 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
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?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..
- 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
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?
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
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Who is online
Users browsing this forum: No registered users and 1 guest