Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2020
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. - alias: Strip Light On
  2. trigger:
  3. - platform: state
  4. entity_id: binary_sensor.ironman_pir
  5. to: "on"
  6.  
  7. condition:
  8. - condition: and
  9. conditions:
  10. - condition: state
  11. entity_id: input_boolean.dark_bright
  12. state: "off"
  13. - condition: state
  14. entity_id: light.strip_light
  15. state: "off"
  16.  
  17. action:
  18. - service: homeassistant.turn_on
  19. data:
  20. entity_id: light.strip_light
  21. brightness_pct: 45
  22. rgb_color: [255, 128, 0]
  23. transition: 1
  24. - service: homeassistant.turn_on
  25. entity_id: automation.strip_light_off
  26.  
  27. - alias: Strip Light Off
  28. initial_state: "off"
  29. trigger:
  30. - platform: state
  31. entity_id: binary_sensor.ironman_pir
  32. to: "off"
  33. for:
  34. seconds: 50
  35. action:
  36. - service: homeassistant.turn_off
  37. data:
  38. entity_id: light.strip_light
  39. transition: 5
  40. - service: homeassistant.turn_off
  41. entity_id: automation.strip_light_off
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement