arachnetech / homebridge-mqttthing

A plugin for Homebridge allowing the integration of many different accessory types using MQTT.
Apache License 2.0
466 stars 104 forks source link

Thermostat accessory fails if Current Temperature is outside the settable heat/cool range. #587

Open akosut opened 2 years ago

akosut commented 2 years ago

It was hotter than normal here today, and my thermostat accessory started failing with logs like this:

[9/6/2022, 8:29:33 PM] [homebridge-mqttthing] This plugin generated a warning from the characteristic 'Current Temperature': characteristic was supplied illegal value: number 35 exceeded maximum of 32.22. See https://homebridge.io/w/JtMGR for more info.

I had set the "Maximum Temperature" (maxTemperature) setting to 32.22 because my thermostat cannot be set higher than 95°F. However, it can still report a current temperature higher than that.

For now I am working around this by raising the Maximum Temperature setting to 50, but this means that the HomeKit accessory can be set higher than the max value.

The maxTemperature setting should apply only to the heating/cooling thresholds of a thermostat, not to the current temperature value.

rbswift commented 1 year ago

Similar to #592 I just reported for HeaterCooler. Don't take your device offline while this happens as it will cause all the devices on your bridge to stop responding. Hopefully this can be fixed with a change to the validation.

andrasg commented 1 month ago

I am seeing this too. Thermostat configured to limit range on the UI. Imho, the current temperature should not be constrained by the min/max, as it can be anything.

[8/21/2024, 6:19:10 AM] [homebridge-mqttthing] This plugin generated a warning from the characteristic 'Current Temperature': characteristic was supplied illegal value: number 26.3 exceeded maximum of 25. See https://homebridge.io/w/JtMGR for more info.