Which device to use for Heat Pump values

For heating/cooling related questions in Domoticz

Moderator: leecollings

Post Reply
User avatar
Ragdag
Posts: 152
Joined: Friday 30 March 2018 13:56
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Which device to use for Heat Pump values

Post by Ragdag »

I have a heat pump and am trying to figure out which devices to use in Domoticz.
I have 2 values:
*Consumed Power (Watt)
*Generated heat (Watt)

The first one is simple, just a normal Electric (Instant+Counter), the second one I could do the same, but would it make sense to define that as Return device?
User avatar
waltervl
Posts: 5853
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Which device to use for Heat Pump values

Post by waltervl »

I think it does not matter, but perhaps it is more clear if you have 2 different devices: one for usage (electric) and one for generated (heat).
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
Ragdag
Posts: 152
Joined: Friday 30 March 2018 13:56
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Which device to use for Heat Pump values

Post by Ragdag »

waltervl wrote: Wednesday 05 February 2025 14:40 I think it does not matter, but perhaps it is more clear if you have 2 different devices: one for usage (electric) and one for generated (heat).
That is what I was thinking :)
User avatar
Ragdag
Posts: 152
Joined: Friday 30 March 2018 13:56
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Which device to use for Heat Pump values

Post by Ragdag »

If I want to create a device from a python plugin, is there a way to create a kWh device but with a different icon as the standard?
For instance the heating device icon
Image
User avatar
waltervl
Posts: 5853
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Which device to use for Heat Pump values

Post by waltervl »

This plugin uses a custom icon when creating a device https://github.com/sincze/Domoticz-Omni ... Web-Plugin
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
Ragdag
Posts: 152
Joined: Friday 30 March 2018 13:56
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Which device to use for Heat Pump values

Post by Ragdag »

waltervl wrote: Wednesday 05 February 2025 19:46 This plugin uses a custom icon when creating a device https://github.com/sincze/Domoticz-Omni ... Web-Plugin
Sorry, I don't mean uploading my own custom icon.
Just meant a different standard icon from the sensor device.
If you click edit on the standard kWh device you are able to select a different icons
User avatar
waltervl
Posts: 5853
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Which device to use for Heat Pump values

Post by waltervl »

Check how it is done, there is some image parameter in the create device function so perhaps it can be changed to something already in Domoticz...
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
Ragdag
Posts: 152
Joined: Friday 30 March 2018 13:56
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Which device to use for Heat Pump values

Post by Ragdag »

waltervl wrote: Wednesday 05 February 2025 20:00 Check how it is done, there is some image parameter in the create device function so perhaps it can be changed to something already in Domoticz...
Will do thanks
User avatar
waltervl
Posts: 5853
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Which device to use for Heat Pump values

Post by waltervl »

From the wiki
Image Optional.
Set the image number to be used with the device. Only required to override the default.
All images available by JSON API call "/json.htm?type=custom_light_icons"

I think the JSON API should be different: /json.htm?type=command&param=getcustomiconset
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
Ragdag
Posts: 152
Joined: Friday 30 March 2018 13:56
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Which device to use for Heat Pump values

Post by Ragdag »

waltervl wrote: Wednesday 05 February 2025 21:25 From the wiki
Image Optional.
Set the image number to be used with the device. Only required to override the default.
All images available by JSON API call "/json.htm?type=custom_light_icons"

I think the JSON API should be different: /json.htm?type=command&param=getcustomiconset
Managed to figure it out.
In my case it was not a custom icon, so that table is empty.
I opened the DB in DBeaver and looked at the desired sensor and managed to find the icon number :)
So the Heating Icon is CustomImage=15

For anybody that is curious, I took the great existing work of https://github.com/ajarzyn/domoticz-luxtronic2 and build my own version
https://github.com/Rouzax/luxtronik-domoticz-plugin

The values are still 0 since it is just running :D
Image

Image
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest