Pour faire clair, avec l’automatisation intégrée, je dois faire une qui allume quand il y a une demande de chaleur de la part d’une pièce, et je dois faire une seconde automatisation qui coupe quand toutes les pièces qui n’ont pas de demande.
Mais, ça ne fonctionne pas toujours très bien.
J’ai les mêmes problèmes avec plusieurs automatisations.
Par contre, avec Nodered, je trouve que j’ai de meilleurs résultats avec plus de possibilités.
Je pense avoir réussi, faut encore quelques tests.
Voici le yaml des 2 automatisations intégrées puis celle de Nodered.
alias: Démarre Chaudière
description: ""
trigger:
- platform: time_pattern
seconds: /10
enabled: true
condition:
- condition: or
conditions:
- condition: state
entity_id: switch.bureau
state: "on"
for:
hours: 0
minutes: 0
seconds: 1
- condition: state
entity_id: switch.sejour
state: "on"
for:
hours: 0
minutes: 0
seconds: 1
- condition: state
entity_id: switch.0x84fd27fffe3b1555
state: "on"
for:
hours: 0
minutes: 0
seconds: 1
- condition: state
entity_id: switch.0x84fd27fffe3b18a3
state: "on"
for:
hours: 0
minutes: 0
seconds: 1
- condition: state
entity_id: switch.douche
state: "on"
for:
hours: 0
minutes: 0
seconds: 1
- condition: state
entity_id: switch.vestibule
state: "on"
for:
hours: 0
minutes: 0
seconds: 1
- condition: state
entity_id: switch.sdb
state: "on"
for:
hours: 0
minutes: 0
seconds: 1
- condition: state
entity_id: switch.d_j
state: "on"
for:
hours: 0
minutes: 0
seconds: 1
- condition: state
entity_id: switch.mathy
state: "on"
for:
hours: 0
minutes: 0
seconds: 1
action:
- type: turn_on
device_id: 995f472950f5874b42a2ceef72581a79
entity_id: 00718adfc68679620e72bf32ea28e5b3
domain: switch
- type: turn_on
device_id: 995f472950f5874b42a2ceef72581a79
entity_id: c596efeb59ebe9307ab255b2ea462fcc
domain: switch
mode: restart
alias: Couper chauffage
description: ""
trigger:
- platform: time_pattern
seconds: /5
enabled: true
condition:
- condition: and
conditions:
- condition: state
entity_id: switch.bureau
state: "off"
- condition: state
entity_id: switch.sejour
state: "off"
- condition: state
entity_id: switch.0x84fd27fffe3b1555
state: "off"
- condition: state
entity_id: switch.0x84fd27fffe3b18a3
state: "off"
- condition: state
entity_id: switch.douche
state: "off"
- condition: state
entity_id: switch.vestibule
state: "off"
- condition: state
entity_id: switch.sdb
state: "off"
- condition: state
entity_id: switch.d_j
state: "off"
- condition: state
entity_id: switch.mathy
state: "off"
action:
- type: turn_off
device_id: 995f472950f5874b42a2ceef72581a79
entity_id: 00718adfc68679620e72bf32ea28e5b3
domain: switch
- type: turn_off
device_id: 995f472950f5874b42a2ceef72581a79
entity_id: c596efeb59ebe9307ab255b2ea462fcc
domain: switch
mode: restart
[{"id":"76ec592a6d7698ec","type":"tab","label":"Chaudière","disabled":false,"info":"","env":[]},{"id":"7e14eaacaad0a011","type":"api-call-service","z":"76ec592a6d7698ec","name":"","server":"d423fbbc.365f58","version":7,"debugenabled":true,"action":"switch.turn_on","floorId":[],"areaId":[],"deviceId":[],"entityId":["switch.4_channel_chaudiere_l2","switch.4_channel_chaudiere_l1"],"labelId":[],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"all","blockInputOverrides":false,"domain":"switch","service":"turn_on","x":380,"y":140,"wires":[[]]},{"id":"d717890f20f6556d","type":"api-call-service","z":"76ec592a6d7698ec","name":"","server":"d423fbbc.365f58","version":7,"debugenabled":true,"action":"switch.turn_off","floorId":[],"areaId":[],"deviceId":[],"entityId":["switch.4_channel_chaudiere_l2","switch.4_channel_chaudiere_l1"],"labelId":[],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"all","blockInputOverrides":false,"domain":"switch","service":"turn_off","x":380,"y":60,"wires":[[]]},{"id":"853f7bdd2fdc5521","type":"trigger-state","z":"76ec592a6d7698ec","name":"Chauffage","server":"d423fbbc.365f58","version":5,"inputs":0,"outputs":2,"exposeAsEntityConfig":"","entities":{"entity":["switch.bureau","switch.vestibule","switch.sejour","switch.verriere","switch.douche","switch.mathy","switch.d_j","switch.sdb","switch.0x84fd27fffe3b1555","switch.0x84fd27fffe3b18a3"],"substring":[],"regex":[]},"debugEnabled":true,"constraints":[{"targetType":"entity_id","targetValue":"switch.bureau","propertyType":"current_state","propertyValue":"new_state.state","comparatorType":"is","comparatorValueDatatype":"str","comparatorValue":"off"},{"targetType":"entity_id","targetValue":"switch.vestibule","propertyType":"current_state","propertyValue":"new_state.state","comparatorType":"is","comparatorValueDatatype":"str","comparatorValue":"off"},{"targetType":"entity_id","targetValue":"switch.sejour","propertyType":"current_state","propertyValue":"new_state.state","comparatorType":"is","comparatorValueDatatype":"str","comparatorValue":"off"},{"targetType":"entity_id","targetValue":"switch.verriere","propertyType":"current_state","propertyValue":"new_state.state","comparatorType":"is","comparatorValueDatatype":"str","comparatorValue":"off"},{"targetType":"entity_id","targetValue":"switch.douche","propertyType":"current_state","propertyValue":"new_state.state","comparatorType":"is","comparatorValueDatatype":"str","comparatorValue":"off"},{"targetType":"entity_id","targetValue":"switch.mathy","propertyType":"current_state","propertyValue":"new_state.state","comparatorType":"is","comparatorValueDatatype":"str","comparatorValue":"off"},{"targetType":"entity_id","targetValue":"switch.d_j","propertyType":"current_state","propertyValue":"new_state.state","comparatorType":"is","comparatorValueDatatype":"str","comparatorValue":"off"},{"targetType":"entity_id","targetValue":"switch.sdb","propertyType":"current_state","propertyValue":"new_state.state","comparatorType":"is","comparatorValueDatatype":"str","comparatorValue":"off"},{"targetType":"entity_id","targetValue":"switch.0x84fd27fffe3b1555","propertyType":"current_state","propertyValue":"new_state.state","comparatorType":"is","comparatorValueDatatype":"str","comparatorValue":"off"},{"targetType":"entity_id","targetValue":"switch.0x84fd27fffe3b18a3","propertyType":"current_state","propertyValue":"new_state.state","comparatorType":"is","comparatorValueDatatype":"str","comparatorValue":"off"}],"customOutputs":[],"outputInitially":false,"stateType":"str","enableInput":false,"x":100,"y":60,"wires":[["d717890f20f6556d"],["7e14eaacaad0a011"]]},{"id":"d423fbbc.365f58","type":"server","name":"Home Assistant","addon":true}]