kitchen_lights.yaml 827 B

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