Domoticz thermal energy kWh, thermal energy meter Topic is solved

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

geoterm
Posts: 29
Joined: Saturday 20 December 2025 17:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Domoticz thermal energy kWh, thermal energy meter

Post by geoterm »

Hello, could someone help? I need to measure and count the amount of thermal energy produced by a kW heat pump. How it do ? Is there such a device or do I need a script?
Attachments
1.JPG
1.JPG (41.28 KiB) Viewed 178 times
2.JPG
2.JPG (100.27 KiB) Viewed 178 times
User avatar
waltervl
Posts: 6676
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: Domoticz thermal energy kWh, thermal energy meter

Post by waltervl »

What unit of measure do you need? Joules?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
BartSr
Posts: 489
Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.7
Location: Netherlands
Contact:

Re: Domoticz thermal energy kWh, thermal energy meter

Post by BartSr »

Trying to calculate COP of heatpump?
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
geoterm
Posts: 29
Joined: Saturday 20 December 2025 17:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz thermal energy kWh, thermal energy meter

Post by geoterm »

BartSr wrote: Sunday 21 December 2025 9:01 Trying to calculate COP of heatpump?
Yes of course, I have calculated cop, that's not a problem.
geoterm
Posts: 29
Joined: Saturday 20 December 2025 17:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz thermal energy kWh, thermal energy meter

Post by geoterm »

waltervl wrote: Saturday 20 December 2025 20:22 What unit of measure do you need? Joules?
Best in kWh.
User avatar
waltervl
Posts: 6676
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: Domoticz thermal energy kWh, thermal energy meter

Post by waltervl »

geoterm wrote: Sunday 21 December 2025 13:02
waltervl wrote: Saturday 20 December 2025 20:22 What unit of measure do you need? Joules?
Best in kWh.
Then you can use a normal energy/electricity counter device. But your integration needs to supply the value, else you need to calculate it yourself with eg a dzvents script.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
geoterm
Posts: 29
Joined: Saturday 20 December 2025 17:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz thermal energy kWh, thermal energy meter

Post by geoterm »

Exactly, I need a script to calculate this. Maybe someone already has one like this and is willing to share.
HvdW
Posts: 663
Joined: Sunday 01 November 2015 22:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Twente
Contact:

Re: Domoticz thermal energy kWh, thermal energy meter

Post by HvdW »

Easiest is to ask AI to write the script. AI has no problem writing dzVents.

BTW Can you share how to write your beatiful Dashboard?
Bugs bug me.
User avatar
waltervl
Posts: 6676
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: Domoticz thermal energy kWh, thermal energy meter

Post by waltervl »

You can try to ask AI but be aware it creates also still a lot of rubbish, examples enough here on the forum.

But you first have to think about the values you need to calculate the energy in kwh. What iuput do you have and what should be the formula to calculate the desired energy....
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
geoterm
Posts: 29
Joined: Saturday 20 December 2025 17:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz thermal energy kWh, thermal energy meter

Post by geoterm »

I don't want AI because nothing can replace a human in this regard.

The input data is: device operating time and heat pump power Qw. W [kWh] = P [kW] * t [h]
User avatar
waltervl
Posts: 6676
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: Domoticz thermal energy kWh, thermal energy meter

Post by waltervl »

So what are the Domoticz devices that have these values for P and t?
And when you have only P you can use an Electricity (Instant and counter) device that can calculate E kWh from P Watt values when supplied.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
BartSr
Posts: 489
Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.7
Location: Netherlands
Contact:

Re: Domoticz thermal energy kWh, thermal energy meter

Post by BartSr »

For yr calculation you need:
Measure device for E-input
Temp measure device inlet water
Temp measure device outlet water
Waterflow measure device.

All available?
Last edited by BartSr on Sunday 21 December 2025 16:53, edited 3 times in total.
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
geoterm
Posts: 29
Joined: Saturday 20 December 2025 17:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz thermal energy kWh, thermal energy meter

Post by geoterm »

ok
I'm working
Attachments
Przechwytywanie.JPG
Przechwytywanie.JPG (52.43 KiB) Viewed 121 times
User avatar
RonkA
Posts: 126
Joined: Tuesday 14 June 2022 12:57
Target OS: NAS (Synology & others)
Domoticz version: 2025.1
Location: Harlingen
Contact:

Re: Domoticz thermal energy kWh, thermal energy meter

Post by RonkA »

So correct me if i'm wrong but you want to take Retour to well temperature ( 22.31 C) minus From well temperature (20.5 C) what gives Delta-temperature (dT) of 1.81 C right now.
The flowrate (m) is now zero L/minute but in the calculation you need L/second so divide by 60.

You don't specify the liquid what is used in the well loop so that is a problem to make the right calculation, for now i assume The specific heat capacity (cp) of normal water what is 4180 J/liter.

So the thermal energy calculation (Q) would be now: Q=(m/60)*cp*dT --> Q=(0/60)*4180*1.81 --> Q=0 Watt

I don't know the normal flowrate but lets say it is 10 L/minute this would give Q= (10/60)*4180*1.81 = 1261 Watt
Last edited by RonkA on Sunday 21 December 2025 17:09, edited 1 time in total.
SolarEdge ModbusTCP - Kaku - Synology NAS - Watermeter - ESPEasy - DS18b20
Work in progress = Life in general..
geoterm
Posts: 29
Joined: Saturday 20 December 2025 17:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz thermal energy kWh, thermal energy meter

Post by geoterm »

I'm not an automation expert, it's my hobby, I'm just getting started.
Attachments
Przechwytywanie.JPG
Przechwytywanie.JPG (41.96 KiB) Viewed 116 times
geoterm
Posts: 29
Joined: Saturday 20 December 2025 17:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz thermal energy kWh, thermal energy meter

Post by geoterm »

HvdW wrote: Sunday 21 December 2025 16:23 Easiest is to ask AI to write the script. AI has no problem writing dzVents.

BTW Can you share how to write your beatiful Dashboard?
Made in autocad without AI :).
geoterm
Posts: 29
Joined: Saturday 20 December 2025 17:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz thermal energy kWh, thermal energy meter

Post by geoterm »

I'm testing to see if I've added the correct device, and then after a day of work, to see if it's counting correctly. But it looks good. Thanks. :)
I still have a few questions or missing information in my smart home.
Attachments
Przechwytywanie.JPG
Przechwytywanie.JPG (171.94 KiB) Viewed 108 times
geoterm
Posts: 29
Joined: Saturday 20 December 2025 17:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz thermal energy kWh, thermal energy meter

Post by geoterm »

RonkA wrote: Sunday 21 December 2025 17:04 So correct me if i'm wrong but you want to take Retour to well temperature ( 22.31 C) minus From well temperature (20.5 C) what gives Delta-temperature (dT) of 1.81 C right now.
The flowrate (m) is now zero L/minute but in the calculation you need L/second so divide by 60.

You don't specify the liquid what is used in the well loop so that is a problem to make the right calculation, for now i assume The specific heat capacity (cp) of normal water what is 4180 J/liter.

So the thermal energy calculation (Q) would be now: Q=(m/60)*cp*dT --> Q=(0/60)*4180*1.81 --> Q=0 Watt

I don't know the normal flowrate but lets say it is 10 L/minute this would give Q= (10/60)*4180*1.81 = 1261 Watt
I took a screenshot so the delta calculation—you're right—is based on the time interval. Before the correct calculation was made, the previous temperatures were visible.
geoterm
Posts: 29
Joined: Saturday 20 December 2025 17:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz thermal energy kWh, thermal energy meter

Post by geoterm »

HvdW wrote: Sunday 21 December 2025 16:23 Easiest is to ask AI to write the script. AI has no problem writing dzVents.

BTW Can you share how to write your beatiful Dashboard?
Please, if you want.
Attachments
schemat podkład 2025.III.JPG
schemat podkład 2025.III.JPG (104.61 KiB) Viewed 105 times
geoterm
Posts: 29
Joined: Saturday 20 December 2025 17:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz thermal energy kWh, thermal energy meter

Post by geoterm »

This is a diagram of an air-source heat pump. To the left of the wall is the outdoor air-source unit, and to the right is the building system with a glycol heat exchanger.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest