Skip to content

Instantly share code, notes, and snippets.

@thorrrr
Created March 8, 2021 22:39
Show Gist options
  • Save thorrrr/6fe6b359835a46ec3745e2065fdba571 to your computer and use it in GitHub Desktop.
Save thorrrr/6fe6b359835a46ec3745e2065fdba571 to your computer and use it in GitHub Desktop.
Created with Copy to Gist
alias: Galley Lights
description: ''
mode: single
trigger:
- platform: state
entity_id: binary_sensor.lumi_lumi_sensor_motion_aq2_731c7906_ias_zone
to: 'on'
condition:
- condition: numeric_state
entity_id: sensor.lumi_lumi_sensor_motion_aq2_731c7906_illuminance
below: '3.5'
- condition: or
conditions:
- condition: time
after: '06:00:00'
- condition: time
before: '23:59:59'
action:
- service: light.turn_on
data:
brightness_pct: 100
target:
entity_id: light.galley_1_2
- service: light.turn_on
data:
brightness_pct: 100
target:
entity_id: light.galley_2_2
- service: light.turn_on
data:
brightness_pct: 100
target:
entity_id: light.galley_3
mode: single
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment