steilerDev / homebridge-openhab2-complete

A homebridge plugin for openHAB, that has the expectation to fully support all Services offered by Apple's Homekit Accessory Protocol (HAP)
GNU General Public License v3.0
52 stars 16 forks source link

Temperature Home app vs Siri #54

Closed Mr-iX closed 4 years ago

Mr-iX commented 4 years ago

The temperature is shown correctly in the Home app, but Siri always says the wrong temperature.

                {
                    "name": "Schwimmbad Temperatur",
                    "type": "temp",
                    "currentTempItem": "Temp_Pool"
                },

IMG_4499 IMG_4498

extric99 commented 4 years ago

Can you try to define the item as per readme instructions. I don’t have the issue with my setup so maybe explicitly specifying the temp unit will fix it.

{ "name": "An items name, as shown in Homekit later", "type": "temp", "currentTempItem": "Itemname-within-OpenHAB", "tempUnit": "Celsius", "minTemp": "-100", "maxTemp": "200", "minStep": "0.1" }

cjrpriest commented 4 years ago

I worked out that the 'incorrect' temperature was actually just the Celsius temperature converted to Fahrenheit, but displayed as Celsius.

Thanks @extric99, this approached worked for me. Specifically I went from this config:

                {
                    "name": "Room Temperature",
                    "type": "temp",
                    "currentTempItem": "Room_Temperature",
                }

to this config:

                {
                    "name": "Room Temperature",
                    "type": "temp",
                    "currentTempItem": "Room_Temperature",
                    "tempUnit": "Celsius"
                }

after which Siri starts to report temperatures correctly.

Could it be that, against the documentation, that tempUnit does not default to Celsius?

Mr-iX commented 4 years ago

@extric99 Thanks that solved it!