When calling the service smart_thermostat.set_preset_temp, the new preset temperatures are not validated against the min_temp and max_temp parameters of the configuration. Instead, they appear to be validated against some fixed values. This effectively prevents the user from setting preset temperatures above 30°.
Steps to reproduce the behavior:
Sample configuration (here, the controller is used to control humidity by switching a dehumidifier, hence the high values)
The following error is found when debugging the automation:
Stopped because an error was encountered at [DATE] (runtime: 0.04 seconds)
value must be at most 30 for dictionary value @ data['home_temp']
The preset temperature is not updated.
Expected behavior
The preset temperature should be updated to the indicated value (65).
Additional context
Manually changing the set point of the controller to the desired value works as expected. Specifying a preset temperature in the configuration file works as well. Only the change through the service appears to have the faulty validation.
Thank you for the excellent work on this integration!
When calling the service
smart_thermostat.set_preset_temp
, the new preset temperatures are not validated against themin_temp
andmax_temp
parameters of the configuration. Instead, they appear to be validated against some fixed values. This effectively prevents the user from setting preset temperatures above 30°.Steps to reproduce the behavior: Sample configuration (here, the controller is used to control humidity by switching a dehumidifier, hence the high values)
Create an automation with a service call as action:
The following error is found when debugging the automation:
The preset temperature is not updated.
Expected behavior The preset temperature should be updated to the indicated value (65).
Additional context Manually changing the set point of the controller to the desired value works as expected. Specifying a preset temperature in the configuration file works as well. Only the change through the service appears to have the faulty validation.
Thank you for the excellent work on this integration!