How to make climate temperature changes persistent after reboot

How can I make my generic_thermostat remember temperature changes after reboot?

Right now I tried to make this:

climate:
  - platform: generic_thermostat
    name: Gang
    heater: switch.underfloorheating_relay_6
    target_sensor: sensor.gang_temperatur
    min_temp: 16
    max_temp: 22
    target_temp: 20
    initial_hvac_mode: "heat"
    min_cycle_duration:
      seconds: 10
    cold_tolerance: 0.3

Im using simple-thermostat to see and change the temperature - thats all great

type: 'custom:simple-thermostat'
entity: climate.gang
step_size: '1'
layout:
  step: col
header:
  icon: 'mdi:fire'
control: false
view_layout:
  step: col
setpoints:
  temperature: climate.gang.temperature

But the climate.gang.temperature is not persistent? How can I make a persistent change to a climate entity?

Remove the target_temp. It’s optional and, therefore, the last set temperature should be retained.

3 Likes

Thanks @AJStubbsy ! Seems to be working fine :slight_smile: