I now have two generic_thermostat configurations in my configuration.yaml file as follows:
climate:
- platform: generic_thermostat
name: Gaslogs Thermostat
heater: switch.gas_logs_hvac_fireplace_switching
target_sensor: sensor.livingroom_temperature
precision: 0.1
min_cycle_duration: 00:01
cold_tolerance: 1.0
hot_tolerance: 0.1
initial_hvac_mode: "heat"
min_temp: 55
max_temp: 75
- platform: generic_thermostat
name: M.Bedroom Thermostat
heater: switch.ep25_mbedroom_heater
target_sensor: sensor.ma_bedroom_temperature_2
precision: 0.5
min_cycle_duration:
seconds: 5
cold_tolerance: 2.0
hot_tolerance: 0.0
initial_hvac_mode: "heat"
min_temp: 60
max_temp: 75
Using the precision value of 0.1 sets both the temperature sensor reading AND the Target temperature as 0.1 precision. My real thermostats have the Target temp displayed without a decimal. Is there a way to do duplicate this for virtual thermostats?
This is a real thermostat display:
…and this is the generic_thermostat display:
Simply put, Is there a way for me to make the Target a whole number, while making the temp sensor accurate to 0.1?