Gestion chauffage central

Hello,

Alors il y a plusieurs automations,

Une pour check si mes vannes (les thermostats) sont en mode « chauffe » si au moins 1 est en chauffe alors on ferme le contact chaudière pour mettre en marche le chauffage central.
Faire une automation pour check si tous sont en OFF, alors on ouvre le contact chaudière pour éteindre.
Chaque thermostat est lié à un input boolean, j’ai créé un "generic thermostat pour chaque vanne:

  - platform: generic_thermostat
    name: Thermostat Salle de bain
    heater: input_boolean.vanne_sdb
    target_sensor: sensor.popp_salle_de_bain_air_temperature
    min_temp: 15
    max_temp: 25
    ac_mode: false
    cold_tolerance: 0.8
    hot_tolerance: 0
    min_cycle_duration:
      seconds: 5
    keep_alive:
      minutes: 3
    initial_hvac_mode: "off"
    away_temp: 16
    precision: 0.1

L’automation:

alias: Check vannes ON
  description: ''
  trigger:
  - platform: time_pattern
    seconds: '15'
  condition:
  - condition: or
    conditions:
    - condition: state
      entity_id: input_boolean.vanne_ch_baptiste
      state: 'on'
    - condition: state
      entity_id: input_boolean.vanne_ch_naomie
      state: 'on'
    - condition: state
      entity_id: input_boolean.vanne_cuisine
      state: 'on'
    - condition: state
      entity_id: input_boolean.vanne_salle_a_manger
      state: 'on'
    - condition: state
      entity_id: input_boolean.vanne_salon
      state: 'on'
    - condition: state
      entity_id: input_boolean.vanne_sdb
      state: 'on'
  action:
  - type: turn_on
    device_id: 677ed49c5f5341dfb28efccc572b793e
    entity_id: switch.shelly_chaudiere
    domain: switch
  mode: single

Ensuite je programme les modes de chauffe par un Google Calendar, ça déclenche une automation pour regler les vannes et initier les consignes de température

L’automation pour SET temp:

  alias: Consignes Petit dejeuner
  description: ''
  trigger:
  - platform: state
    entity_id: calendar.chauffage_petit_dejeuner
    to: 'on'
  condition: []
  action:
  - service: climate.set_temperature
    data:
      temperature: '{{states.input_number.consigne_nuit.state}}'
    entity_id: climate.thermostat_chambre_baptiste
  - service: climate.set_temperature
    data:
      temperature: '{{states.input_number.consigne_jour.state}}'
    entity_id: climate.thermostat_chambre_naomie
  - service: climate.set_temperature
    data:
      temperature: '{{states.input_number.consigne_jour.state}}'
    entity_id: climate.thermostat_cuisine
  - service: climate.set_temperature
    data:
      temperature: '{{states.input_number.consigne_nuit.state}}'
    entity_id: climate.thermostat_salle_a_manger
  - service: climate.set_temperature
    data:
      temperature: '{{states.input_number.consigne_nuit.state}}'
    entity_id: climate.thermostat_salon
  - service: climate.set_temperature
    data:
      temperature: '{{states.input_number.consigne_jour.state}}'
    entity_id: climate.thermostat_salle_de_bain
  - service: climate.set_temperature
    data:
      temperature: '{{states.input_number.consigne_nuit.state}}'
    entity_id: climate.popp_chambre_baptiste_heating_1_6
  - service: climate.set_temperature
    data:
      temperature: '{{states.input_number.consigne_jour.state}}'
    entity_id: climate.popp_chambre_naomie_heating_1_5
  - service: climate.set_temperature
    data:
      temperature: '{{states.input_number.consigne_jour.state}}'
    entity_id: climate.popp_cuisine_heating_1_2
  - service: climate.set_temperature
    data:
      temperature: '{{states.input_number.consigne_nuit.state}}'
    entity_id: climate.popp_salle_a_manger_heating_1_3
  - service: climate.set_temperature
    data:
      temperature: '{{states.input_number.consigne_nuit.state}}'
    entity_id: climate.popp_salon_heating_1_4
  - service: climate.set_temperature
    data:
      temperature: '{{states.input_number.consigne_jour.state}}'
    entity_id: climate.popp_salle_de_bain_heating_1
  mode: single

Voilà, j’espere que ça pourra en inspirer certains en recherche de solutions.
J’ai collé ici les automations pour que vous voyez le détail mais je les ai créées avec l’éditeur, je ne suis pas fan des lignes de code :wink:

2 « J'aime »