Hi,
So I made a generic_thermostat heater points to an input boolean, sensor is an actual thermostat.
Two things bug me, quite essential ones, such as current_temperature stays null and I noticed that when I go to the lovelace card it shows off and greyed out heat, when I look at the status it says "off"which should be either heat or cool and the hvac_modes attribute shows heat, “off”, This is not something I have set myself. The original climate sensor shows hvac_modes heat, cool. And if I set the attribute it changes back to heat, “off” everytime an update is done.
So my question, how to, permanently set the hvac_modes to heat and cool and then state to only heat or cool depending on the input via frontend and have it get the temperature from the climate sensor.
generic_thermostat.yaml
- platform: generic_thermostat
name: Kasten_C
heater: input_boolean.thermostaat_kasten
target_sensor: climate.kasten
min_temp: 15
max_temp: 25
ac_mode: false
target_temp: 19
cold_tolerance: 0.3
hot_tolerance: 0.3
min_cycle_duration:
seconds: 5
away_temp: 16
comfort_temp: 20
home_temp: 19
sleep_temp: 17
activity_temp: 18
precision: 0.1
Entity climate.kasten_c after any update
status:
off
attributes
hvac_modes:
- heat
- 'off'
min_temp: 15
max_temp: 25
target_temp_step: 0.1
preset_modes:
- none
- away
- comfort
- home
- sleep
- activity
current_temperature: null
temperature: 19
hvac_action: 'off'
preset_mode: none
friendly_name: Kasten_C
supported_features: 17
Expected to be the same as climate.kasten:
state:
heat
attributes
hvac_modes:
- heat
- cool
min_temp: 0
max_temp: 0
target_temp_step: 0.2
preset_modes:
- auto
- day
- night
current_temperature: 19.9
temperature: 15.8
hvac_action: idle
preset_mode: night
friendly_name: Kasten
supported_features: 17