I have a generic thermostat which is to control a 10 relay Z-Wave device.
How do I get the target_temp from the actual thermostat? I tried using template but HA complained it needed an integer:
target_temp:
friendly_name: "Target Temp"
unit_of_measurement: 'C'
value_template: "{{ state_attr('climate.battery_operated_thermostat_thermostat_mode', 'temperature') }}"
- platform: generic_thermostat
name: Study
heater: switch.relay_control_current_value_2
target_sensor: sensor.battery_operated_thermostat_air_temperature
min_temp: 15
max_temp: 25
target_temp: sensor.target_temp
cold_tolerance: 0.3
hot_tolerance: 0
min_cycle_duration:
seconds: 5
keep_alive:
seconds: 15
initial_hvac_mode: "off"
away_temp: 16
precision: 0.1