For some reason, one of my Daikin units is not respecting the target temperature, i.e. if I set it to 27C, it will continue to cool down even after reaching 27C, so I decided to setup a Generic Thermostat like this:
# configuration.yaml
- platform: generic_thermostat
unique_id: climate.sala_ac_thermostat
name: Sala AC Thermostat
heater: input_boolean.sala_cool_virtual
target_sensor: sensor.sensore_temperatura_sala_xiaomi_temperature
min_temp: 24
max_temp: 29
ac_mode: true
cold_tolerance: 0.5
hot_tolerance: 0.2
min_cycle_duration:
seconds: 60
initial_hvac_mode: "off"
home_temp: 26
away_temp: 28
sleep_temp: 27
precision: 0.1
target_temp_step: 0.5
This has the added bonus of using an external sensor instead of the integrated one which is not very precise in my experience.
I had to create it manually in the yaml because I had to use an input boolean for this automation:
alias: AC Control
description: Adjust the target temperature of Sala based on the virtual switch.
triggers:
- entity_id:
- input_boolean.sala_cool_virtual
trigger: state
conditions: []
actions:
- choose:
- conditions:
- condition: state
entity_id: input_boolean.sala_cool_virtual
state: "on"
sequence:
- target:
entity_id: climate.sala
data:
temperature: 25
action: climate.set_temperature
- conditions:
- condition: state
entity_id: input_boolean.sala_cool_virtual
state: "off"
sequence:
- target:
entity_id: climate.sala
data:
temperature: 30
action: climate.set_temperature
mode: single
I now want to expand on this (i.e. turn on/off the unit automatically - now I have to turn on the unit and then the thermostat itself), but I paused and I’m wondering if this is the right approach.
In the documentation it says to use the unit switch as the heater
, but wouldn’t this turn off/on the unit itself instead of the virtual input I created?
I’m fine with my approach, just making sure this is right and I won’t have issues in the future since using an input_boolean
isn’t really officially supported and may go away.