Hello!
I’m trying to create a heating automation with TS0601_thermostat and ZG-001. I’ve added them into my HAG, using a SONOFF ZigBee 3.0 Dongle Plus.
What I want to achieve is to create an automation that turns on the boiler when a thermostat is in heating mode.
There are no results yet and winter is coming :).
I’m new on this field and I really need help.
Would the Generic Thermostat integration be any help?
Jack, thank you for your response, but the generic thermostat expects a ‘Temperature sensor’. In my configuration there is no such thing.
Anyway, I managed to create the automation I needed. I’ll leave the YAML here, maybe someone will need it:
alias: Heat all rooms (hvac action)
description: ""
triggers:
- trigger: state
entity_id:
- climate.closet
- climate.kitchen
- climate.hallway
- climate.big_bedroom
- climate.bedroom
- climate.bathroom_floor
attribute: hvac_action
- trigger: homeassistant
event: start
- trigger: event
event_type: automation_reloaded
actions:
- variables:
thermostats:
- climate.closet
- climate.kitchen
- climate.hallway
- climate.big_bedroom
- climate.bedroom
- climate.bathroom_floor
hvacs: |-
{{
thermostats
| map('state_attr','hvac_action')
| map('string')
| map('lower')
| list
}}
any_heating: "{{ 'heating' in hvacs }}"
- if:
- condition: template
value_template: "{{ any_heating }}"
then:
- action: switch.turn_on
target:
entity_id: switch.centrala
else:
- action: switch.turn_off
target:
entity_id: switch.centrala
initial_state: true
mode: restart