How to create thermostat with only integer values?

Python and python framework

Moderator: leecollings

Post Reply
kispalsz
Posts: 31
Joined: Friday 13 October 2017 19:56
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

How to create thermostat with only integer values?

Post by kispalsz »

I want to create a thermostat with a Python plugin that contains only integers.

This command creates a thermostat with a resolution of 0.5.

Code: Select all

 Domoticz.Device(Unit=self.get_first_available_unit(), DeviceID=device_id, Name=name + ' - Temperature', Type=242, Subtype=1).Create()
Image

For me, this is a lot, the managed device only knows an integer value. And the value xy.5 appears on the interface, and it's confusing.

Is there a decimal resolution thermostat in the system? Maybe another subtype?
Attachments
decimal_thermostat.png
decimal_thermostat.png (30.5 KiB) Viewed 375 times
Post Reply