hallway_lights.yaml 868 B

1234567891011121314151617181920
  1. # Require: https://github.com/jmgiaever/home-assistant-blueprints/blob/master/automation/motion_detected_lights.yaml
  2. automation:
  3. - id: 'hallway_motion_active_lights'
  4. alias: "Hallway: Motion active lights"
  5. description: ''
  6. use_blueprint:
  7. path: motion_detected_lights.yaml
  8. input:
  9. trigger_sensors:
  10. - binary_sensor.hallway_motion_sensor_home_security_motion_detection
  11. - binary_sensor.hallway_stairway_motion_sensor_home_security_motion_detection
  12. synced_lights:
  13. - light.hallway_ceiling_lights
  14. #illuminance_sensors:
  15. # - sensor.hallway_motion_sensor_illuminance
  16. # - sensor.hallway_stairway_motion_sensor_illuminance
  17. #illuminance_threshold: 9
  18. after_wait_actions:
  19. wait_template: "{{ is_state('input_boolean.housekeeping_mode', 'off') }}"
  20. delay: 3