Oh ! Je viens de trouver, je mets la solution ici, ça pourrait peut être servir à quelqu’un.
Pour le thermostat, il faut pouvoir piloter un switch de type on/off.
J’ai alors fait un template comme cela :
- platform: template
switches:
ac_toggle:
friendly_name: "AC Carmelo"
value_template: "{{ not is_state('climate.pac_bureau', 'off') }}"
turn_on:
service: climate.turn_on
target:
entity_id: climate.pac_bureau
turn_off:
service: climate.turn_off
target:
entity_id: climate.pac_bureau
Et modifié mon thermostat pour piloter ce switch virtuel :
## PAC bureau
- platform: awesome_thermostat
name: PACbureauThermostat
heater: switch.ac_toggle
target_sensor: sensor.carmelo
min_temp: 13
max_temp: 28
min_cycle_duration:
seconds: 600
cold_tolerance: 0.2
hot_tolerance: 0.2
comfort_temp: 19
eco_temp: 15