Advertisement
adorobis

Store climate setpoint temp in input_number

Dec 16th, 2022
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. alias: AC - Capture setpoint temperature in input_number
  2. description: ""
  3. trigger:
  4. - platform: state
  5. entity_id: climate.klima_asia
  6. attribute: temperature
  7. - platform: state
  8. entity_id: climate.klima_julia
  9. attribute: temperature
  10. - platform: state
  11. entity_id: climate.klima_paulina
  12. attribute: temperature
  13. - platform: state
  14. entity_id: climate.klima_sypialnia
  15. attribute: temperature
  16. condition: []
  17. action:
  18. - choose:
  19. - conditions:
  20. - condition: template
  21. value_template: "{{ trigger.entity_id == \"climate.klima_asia\" }}"
  22. sequence:
  23. - service: input_number.set_value
  24. target:
  25. entity_id: input_number.ac_setpoint_asia
  26. data:
  27. value: "{{ trigger.to_state.attributes.temperature }}"
  28. - conditions:
  29. - condition: template
  30. value_template: "{{ trigger.entity_id == \"climate.klima_julia\" }}"
  31. sequence:
  32. - service: input_number.set_value
  33. target:
  34. entity_id: input_number.ac_setpoint_julia
  35. data:
  36. value: "{{ trigger.to_state.attributes.temperature }}"
  37. - conditions:
  38. - condition: template
  39. value_template: "{{ trigger.entity_id == \"climate.klima_paulina\" }}"
  40. sequence:
  41. - service: input_number.set_value
  42. target:
  43. entity_id: input_number.ac_setpoint_paulina
  44. data:
  45. value: "{{ trigger.to_state.attributes.temperature }}"
  46. - conditions:
  47. - condition: template
  48. value_template: "{{ trigger.entity_id == \"climate.klima_sypialnia\" }}"
  49. sequence:
  50. - service: input_number.set_value
  51. target:
  52. entity_id: input_number.ac_setpoint_sypialnia
  53. data:
  54. value: "{{ trigger.to_state.attributes.temperature }}"
  55. default: []
  56. mode: single
  57.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement