48 lines
1.6 KiB
YAML
48 lines
1.6 KiB
YAML
# Installed through HA's automation configuration API. This is the reviewable
|
|
# source copy; do not also include it as a package if the automations exist.
|
|
automation:
|
|
- id: appdaemon_radiator_heating_bridge
|
|
alias: AppDaemon - Chauffage radiateurs - Retour MQTT
|
|
description: Transmet les commandes du climate et les retours C6 à AppDaemon.
|
|
triggers:
|
|
- trigger: mqtt
|
|
topic: appdaemon/radiator_heating/command/+
|
|
- trigger: mqtt
|
|
topic: themaplus-condens/bai/SetMode
|
|
- trigger: mqtt
|
|
topic: themaplus-condens/bai/Statenumber
|
|
- trigger: mqtt
|
|
topic: themaplus-condens/bai/FlowTemp
|
|
- trigger: mqtt
|
|
topic: homeassistant/status
|
|
actions:
|
|
- event: APPDAEMON_BOILER_MQTT
|
|
event_data:
|
|
topic: '{{ trigger.topic }}'
|
|
payload: '{{ trigger.payload }}'
|
|
mode: queued
|
|
max: 50
|
|
- id: appdaemon_radiator_heating_watchdog
|
|
alias: AppDaemon - Chauffage radiateurs - Disponibilité
|
|
description: Marque le climate indisponible après trois minutes sans heartbeat.
|
|
triggers:
|
|
- trigger: mqtt
|
|
topic: appdaemon/radiator_heating/heartbeat
|
|
id: heartbeat
|
|
- trigger: homeassistant
|
|
event: start
|
|
id: startup
|
|
actions:
|
|
- if:
|
|
- condition: template
|
|
value_template: "{{ trigger.id == 'heartbeat' }}"
|
|
then:
|
|
- delay:
|
|
minutes: 3
|
|
- action: mqtt.publish
|
|
data:
|
|
topic: appdaemon/radiator_heating/availability
|
|
payload: offline
|
|
retain: true
|
|
mode: restart
|