automations.yaml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. - id: '1604224258912'
  2. alias: Exterior lights ON in evening
  3. description: In the evening, turn the lights ON
  4. trigger:
  5. - platform: numeric_state
  6. entity_id: sensor.lux_outside_the_garage
  7. below: '100'
  8. condition:
  9. - condition: state
  10. entity_id: input_boolean.ext_light_on_done
  11. state: 'off'
  12. action:
  13. - service: light.turn_on
  14. data: {}
  15. entity_id: light.exterior_lights_repeater
  16. - service: light.turn_on
  17. data: {}
  18. entity_id: light.exterior_lights
  19. - service: input_boolean.turn_on
  20. data: {}
  21. entity_id: input_boolean.ext_light_on_done
  22. mode: single
  23. - id: '1604250273403'
  24. alias: Exterior lights OFF in morning
  25. description: ''
  26. trigger:
  27. - platform: numeric_state
  28. entity_id: sensor.lux_outside_the_garage
  29. above: '50'
  30. condition:
  31. - condition: state
  32. entity_id: input_boolean.ext_light_off_done
  33. state: 'off'
  34. action:
  35. - service: light.turn_off
  36. data: {}
  37. entity_id: light.exterior_lights_repeater
  38. - service: light.turn_off
  39. data: {}
  40. entity_id: light.exterior_lights
  41. - service: input_boolean.turn_on
  42. data: {}
  43. entity_id: input_boolean.ext_light_off_done
  44. mode: single
  45. - id: '1604426412714'
  46. alias: Turn boolean switches off at midnight
  47. description: ''
  48. trigger:
  49. - platform: time
  50. at: 00:05:00
  51. condition: []
  52. action:
  53. - service: input_boolean.turn_off
  54. data: {}
  55. entity_id: input_boolean.ext_light_off_done
  56. - service: input_boolean.turn_off
  57. data: {}
  58. entity_id: input_boolean.ext_light_on_done
  59. mode: single