Generic Thermostat still not working to retain temperature after restart?

Hello, please did someone found solution to have temperatures back after restart with generic thermostat? Temperatures always resets to default state (target temp). Logger is anabled.
Here is part of my config regarding to thermostat:

- platform: generic_thermostat
  name: Test1
  heater: switch.test1
  target_sensor: sensor.test1
  min_temp: 17
  max_temp: 25
  ac_mode: false
  target_temp: 22
  cold_tolerance: 0.5
  hot_tolerance: 0
  min_cycle_duration:
    minutes: 3
  initial_hvac_mode: "heat"
  away_temp: 19
  precision: 0.5
- platform: generic_thermostat
  name: Test2
  heater: switch.test2
  target_sensor: sensor.test2
  min_temp: 17
  max_temp: 25
  ac_mode: false
  target_temp: 22
  cold_tolerance: 0.5
  hot_tolerance: 0
  min_cycle_duration:
    minutes: 3
  initial_hvac_mode: "heat"
  away_temp: 19
  precision: 0.5
1 Like

Hi,

I ended up installing the automation suggested by akasma74 (on 1st April) in this tread for my units.

It is a bit coding, but it has sofar worked well.

### awarecan commented on 25 Feb 2019

@dgomes is referring #20768 (comment)

IMO, this PR should not be merged. Whenever user changed temperature, it should change target_temperature .

Whether change away_temperature along with target_temperature is arguable. Some user may not want change away_temp since he/she defined it in yaml, means it is the preferred temperature settings.

I think this is the correct way. But it seems to be imposible without core change - right?