snowdd1 / homebridge-knx

KNX platform shim for homebridge
https://github.com/nfarina/homebridge
GNU General Public License v2.0
97 stars 55 forks source link

Question: Thermostat - How to red current temperature value with 0.1 degrees step? #199

Closed antonio9213 closed 2 years ago

antonio9213 commented 2 years ago

Hello,

I have a Thermostat configured and the KNX temperature value is measured with a step of 0.1 degrees celsius. When I get the CurrentTemperature value read after passing it through homebridge-knx, it gets rounded and shown on steps of 0.5 degrees. So, 23.8 shows as 24.0, 25.4 shows as 25.5... How can I set it up so I get the 0.1 precision? I tried to set the MinStep value with no success (same thing happens). Here is the entry in my knx_config.json:

            "DeviceName": "MyThermostatDevice",
            "Services": [
                {
                    "ServiceType": "Thermostat",
                    "ServiceName": "MyThermostatService",
                    "Characteristics": [
                        {
                            "Type": "TargetHeatingCoolingState",
                            "Set": [
                                "1/4/0"
                            ]
                        },
                        {
                            "Type": "CurrentHeatingCoolingState",
                            "Listen": [
                                "1/5/0"
                            ]
                        },
                        {
                            "Type": "CurrentTemperature",
                            "Listen": [
                                "1/0/0"
                            ],
                            "MinStep": 0.1
                        },
                        {
                            "Type": "TargetTemperature",
                            "Set": [
                                "1/1/0"
                            ],
                            "Listen": [
                                "1/2/0"
                            ],
                            "MaxValue": 26,
                            "MinStep": 0.1
                        }
                    ],
                    "subtype": xxx
                }
            ],
            "UUID": xxx
        },

Thank you.

snowdd1 commented 2 years ago

What tool do you use to see what is shown on steps of 0.5 degrees?

Because the representation might differ from what is inside the values.

snowdd1 commented 2 years ago

I just saw that “Home” app rounds as described above while “Eve” app shows the first decimal.