Page 1 of 1
Which device to use for Heat Pump values
Posted: Wednesday 05 February 2025 12:01
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?
Re: Which device to use for Heat Pump values
Posted: Wednesday 05 February 2025 14:40
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).
Re: Which device to use for Heat Pump values
Posted: Wednesday 05 February 2025 17:09
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

Re: Which device to use for Heat Pump values
Posted: Wednesday 05 February 2025 19:07
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

Re: Which device to use for Heat Pump values
Posted: Wednesday 05 February 2025 19:46
by waltervl
This plugin uses a custom icon when creating a device
https://github.com/sincze/Domoticz-Omni ... Web-Plugin
Re: Which device to use for Heat Pump values
Posted: Wednesday 05 February 2025 19:55
by Ragdag
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
Re: Which device to use for Heat Pump values
Posted: Wednesday 05 February 2025 20:00
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...
Re: Which device to use for Heat Pump values
Posted: Wednesday 05 February 2025 20:03
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
Re: Which device to use for Heat Pump values
Posted: Wednesday 05 February 2025 21:25
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¶m=getcustomiconset
Re: Which device to use for Heat Pump values
Posted: Thursday 06 February 2025 16:30
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¶m=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
