I am trying to do the same thing and can’t get it just right. Here is my code. Any help would be greatly appreciated. Here are the line from both the configuration and automations.yaml
sensor:
- platform: template
sensors:
climate_gym_1_sw:
friendly_name: "Master_Gym"
unit_of_measurement: 'degrees'
value_template: "{{ state_attr('current_temperature', 'temperature') }}"
- id: '1593415150466'
alias: 'Gym thermostats follow #1'
trigger:
- entity_id: sensor.climate_gym_1_sw
platform: state
condition: []
action:
- service: climate.set_temperature
entity_id:
- climate.gym_2_se
- climate.gym_3_ne
- climate.gym_4_nw
data_template:
temperature: "{{ states('sensor.climate_gym_1_sw') | float }}"