My setup:
I have two eq3 bluetooth thermostats and one input_number to controll them - this part works fine.
In addition, when one of the thermostats is changed, input number should be set to the value - this part works fine aswell.
But the problem I’m facing is: the changed value of input number should then be able to adjust the other thermostat as well by triggering the first automation - and this part may or may not work. There no pattern behind it.
My automations:
- id: '1000000000411'
alias: Temperaturänderung
trigger:
- platform: state
entity_id: input_number.zieltemperatur
action:
- service: climate.set_temperature
data_template:
entity_id:
- climate.thermostat_1
- climate.thermostat_2
temperature: "{{ trigger.to_state.state | float }}"
- service: persistent_notification.create
data_template:
notification_id: Thermostatsteuerung
title: Thermostat
message: >
Temperatur wurde um {{ states.sensor.time.state }} Uhr von {{ trigger.from_state.state }}°C auf {{ trigger.to_state.state }}°C geändert.
- id: '1000000000412'
alias: Temperaturübernahme der Thermostate
trigger:
- platform: state
entity_id:
- sensor.thermostat_temp_uebernahme_1
- sensor.thermostat_temp_uebernahme_2
action:
- service: input_number.set_value
data_template:
entity_id: input_number.zieltemperatur
value: "{{ trigger.to_state.state | float }}"
The second automation triggers when the thermostat values change. The following sensors are available for this purpose.
sensor:
- platform: template
sensors:
thermostat_temp_uebernahme_1:
value_template: "{{ states.climate.thermostat_1.attributes.temperature }}"
friendly_name: "Temperaturübernahme der Thermostate"
- platform: template
sensors:
thermostat_temp_uebernahme_2:
value_template: "{{ states.climate.thermostat_2.attributes.temperature }}"
friendly_name: "Temperaturübernahme der Thermostate"
I’m grateful for any help.