Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias: AC - Capture setpoint temperature in input_number
- description: ""
- trigger:
- - platform: state
- entity_id: climate.klima_asia
- attribute: temperature
- - platform: state
- entity_id: climate.klima_julia
- attribute: temperature
- - platform: state
- entity_id: climate.klima_paulina
- attribute: temperature
- - platform: state
- entity_id: climate.klima_sypialnia
- attribute: temperature
- condition: []
- action:
- - choose:
- - conditions:
- - condition: template
- value_template: "{{ trigger.entity_id == \"climate.klima_asia\" }}"
- sequence:
- - service: input_number.set_value
- target:
- entity_id: input_number.ac_setpoint_asia
- data:
- value: "{{ trigger.to_state.attributes.temperature }}"
- - conditions:
- - condition: template
- value_template: "{{ trigger.entity_id == \"climate.klima_julia\" }}"
- sequence:
- - service: input_number.set_value
- target:
- entity_id: input_number.ac_setpoint_julia
- data:
- value: "{{ trigger.to_state.attributes.temperature }}"
- - conditions:
- - condition: template
- value_template: "{{ trigger.entity_id == \"climate.klima_paulina\" }}"
- sequence:
- - service: input_number.set_value
- target:
- entity_id: input_number.ac_setpoint_paulina
- data:
- value: "{{ trigger.to_state.attributes.temperature }}"
- - conditions:
- - condition: template
- value_template: "{{ trigger.entity_id == \"climate.klima_sypialnia\" }}"
- sequence:
- - service: input_number.set_value
- target:
- entity_id: input_number.ac_setpoint_sypialnia
- data:
- value: "{{ trigger.to_state.attributes.temperature }}"
- default: []
- mode: single
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement