Hi. I am new to Home Assistant so bear with me 
I have radiator valves around the flat and a thermostat. I wrote an automation to sync the target temperature on all the radiator valves to the target temperature set on the thermostat but it does not work. The automation should be triggered whenever the target temperature on the thermostat is changed. Here’s my yaml.
alias: Sync Radiator Valves with Thermostat
description: ""
triggers:
- entity_id: climate.kitchen
attribute: temperature
trigger: state
conditions: []
actions:
- target:
entity_id:
- climate.bedroom
- climate.dining_room
- climate.living_room
- climate.hallway
- climate.master_bedroom
- climate.entrance
data:
temperature: "{{ state_attr('climate.kitchen', 'temperature') | float }}"
action: climate.set_temperature
mode: single
What have I missed? For completeness, I am using Netatmo Smart Radiator Valves and Smart Thermostat.
What is the actual problem? You never mention whether the problem is the automation not triggering correctly or the action not doing what it is expected to do.
Right
I suppose the automation is not triggered as when I adjust the target temperature on the thermostat but the target temperature on the radiator valves remains unchanged. I could try whether it get triggered or not adjusting the radiator valve to a fixed value to check the trigger. if that works, perhaps the issue is with fetching the target temperature on the thermostat
The issue with the automation is the trigger. I tried this
then I adjusted the temperature on the thermostat and nothing happened.
alias: Sync Radiator Valves with Thermostat
description: ""
triggers:
- entity_id: climate.kitchen
attribute: temperature
trigger: state
conditions: []
actions:
- target:
entity_id:
- climate.bedroom
- climate.dining_room
- climate.living_room
- climate.hallway
- climate.master_bedroom
- climate.entrance
data:
temperature: "{{ state_attr('climate.kitchen', 'temperature') | float }}"
action: climate.set_temperature
enabled: false
- action: climate.set_temperature
metadata: {}
data:
temperature: 23
target:
entity_id:
- climate.bedroom
- climate.dining_room
- climate.living_room
- climate.hallway
- climate.master_bedroom
- climate.entrance
mode: single
When you change the target temperature on the climate.kitchen
thermostat, is the updated temperature immediately reflected in HASS?
If you look in traces for this automation, is there nothing there (automation has never been triggered) or some reported error?
If you run the actions manually (from the … menu in the top right corner of the visual editor), does the actions execute correctly?
It’s weird: the target temperature adjustment is not detected. I adjust manually the target temperature on the thermostat (I tried both from the actual thermostat and from the HA dashboard); this setting is reflected on the both the device and the dashboard (as well as on the native application for the thermostat) but HA does not detect the change. I tried with the automation below: when I manually run it the ceiling light toggles.
alias: Sync Radiator Valves with Thermostat
description: ""
triggers:
- trigger: state
entity_id:
- climate.kitchen
attribute: temperature
actions:
- type: toggle
device_id: 40c62eadefe5d062b3d8ddd54ba5756e
entity_id: 490832a2b7142c0f54724464fc4f9577
domain: light
mode: single
So this works! It just that it takes ages to update the target temperature once the desired temperature is adjusted on the thermostat.
alias: Sync Radiator Valves with Thermostat
description: ""
triggers:
- entity_id: climate.kitchen
attribute: temperature
trigger: state
actions:
- action: climate.set_temperature
metadata: {}
data:
temperature: "{{ state_attr('climate.kitchen', 'temperature') | float }}"
target:
entity_id:
- climate.bedroom
- climate.dining_room
- climate.living_room
- climate.hallway
- climate.master_bedroom
- climate.entrance
mode: single
What is it that takes a long time, for the new target temperature (set at a physical thermostat) to makes its way into HASS, or to propagate back out to all the other thermostats? Are the thermostats and their integrations fully local or do any of them depend on cloud services?
For the new target temperature to make its way into HASS. The integration is fully local, I imagine.
There is a relay connected to the wi-fi, it cannot be wired to the network. This relay switches on/off the heating on the boiler and thermostat as well as radiator valves are connected to it.
There is also a native application that allows to control thermostat and radiator valve or I can access to it via home.netatmo.com but not from a mobile device.
When I change the target temperature, the new settings immediately reflect in the native app/webpage.