ScratMan / HASmartThermostat

Smart Thermostat with PID controller for HomeAssistant
338 stars 49 forks source link

sleep_temp attribute change is ignored #73

Closed basovink closed 2 years ago

basovink commented 2 years ago

Describe the bug sleep_temp: 12 is ignored and reset to sleep_temp: 15

To Reproduce Steps to reproduce the behavior:

  1. Define a smart_thermostat in .yaml with sleep_temp: 15
  2. Restart Home Assistant
  3. Edit the yaml to say sleep_temp: 12
  4. Restart Home Assistant

Expected behavior When selecting preset "sleep" from the dropdown in the frontend thermostat, I expect the temperature to be set to 12 When checking the state in developer tools, I expect the sleep_temp: attribute to be 12

System:

Additional context I also edited the attribute from the state editor. It gets reset to 15℃ always

ScratMan commented 2 years ago

Hello, the temperature of the presets are now restored from last known state after a restart, and must be adjusted using the set_preset_temp service. The values in the YAML are used only at first start or in case of missing database.