Guest User

Untitled

a guest
Jul 24th, 2023
851
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. alias: "!Background - Kitchen - Kelvin Changer"
  2. description: ""
  3. trigger:
  4. - platform: state
  5. entity_id:
  6. - input_number.kitchen_rgb_temperature
  7. from: null
  8. to: null
  9. enabled: true
  10. - platform: state
  11. entity_id:
  12. - input_number.kitchen_rgb_mode
  13. from: null
  14. to: null
  15. condition: []
  16. action:
  17. - if:
  18. - condition: template
  19. value_template: "{{ states('input_number.kitchen_rgb_mode') | int == 1 }}"
  20. alias: IF Mode 1 = Kelvin
  21. enabled: true
  22. then:
  23. - if:
  24. - condition: state
  25. entity_id: input_boolean.toggle_kitchen_rgb_top
  26. state: "on"
  27. then:
  28. - service: light.turn_on
  29. data:
  30. kelvin: "{{ states('input_number.kitchen_rgb_temperature') }}"
  31. target:
  32. entity_id: light.kitchen_rgb_top_light
  33. alias: IF Top Toggle ON
  34. - if:
  35. - condition: state
  36. entity_id: input_boolean.toggle_kitchen_rgb_bottom
  37. state: "on"
  38. alias: IF Bottom Toggle ON
  39. then:
  40. - service: light.turn_on
  41. data:
  42. kelvin: "{{ states('input_number.kitchen_rgb_temperature') }}"
  43. target:
  44. entity_id: light.kitchen_rgb_bottom_light
  45. alias: IF Bottom Toggle ON
  46. alias: Do shit
  47. mode: single
  48.  
Advertisement
Add Comment
Please, Sign In to add comment