Created
April 9, 2021 14:41
-
-
Save thorrrr/854284f69fcc1e8b4641966f08cbb440 to your computer and use it in GitHub Desktop.
Created with Copy to Gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Stairs Lights Turn on with Motion | |
alias: 'Stairs Lights Turn on with Motion ' | |
description: '' | |
trigger: | |
- platform: state | |
entity_id: binary_sensor.motion_sensor_stairs | |
to: 'on' | |
condition: | |
- condition: numeric_state | |
entity_id: sensor.stairs_lux_lumination | |
below: '2.5' | |
action: | |
- service: light.turn_on | |
data: | |
brightness_pct: 100 | |
target: | |
entity_id: | |
- light.stairs_light | |
- light.first_floor_landing_main_light | |
- service: automation.turn_off | |
target: | |
entity_id: automation.landing_lights_turn_on_with_motion | |
mode: single | |
Stairs Lights - Off - No Motion after 1:30 mins | |
alias: 'Stairs Lights - Off - No Motion after 1:30 mins' | |
description: '' | |
trigger: | |
- platform: state | |
entity_id: binary_sensor.motion_sensor_stairs | |
to: 'off' | |
for: '00:01:30' | |
condition: [] | |
action: | |
- service: homeassistant.turn_off | |
data: {} | |
target: | |
entity_id: | |
- light.stairs_light | |
- light.first_floor_landing_main_light | |
mode: restart | |
Landing Lights Turn on with Motion | |
alias: Landing Lights Turn on with Motion | |
description: '' | |
trigger: | |
- platform: state | |
entity_id: binary_sensor.motion_sensor_landing | |
to: 'on' | |
condition: | |
- condition: numeric_state | |
entity_id: sensor.landing_lux_lumination | |
below: '2.5' | |
action: | |
- service: light.turn_on | |
data: | |
brightness_pct: 100 | |
target: | |
entity_id: | |
- light.stairs_light | |
- light.first_floor_landing_main_light | |
- light.hallway_main_light | |
- service: automation.turn_off | |
target: | |
entity_id: automation.stairs_lights_turn_on_with_motion | |
data: {} | |
mode: single | |
Landing Lights - Off - No Motion after 1:30 mins | |
alias: 'Landing Lights - Off - No Motion after 1:30 mins' | |
description: '' | |
trigger: | |
- platform: state | |
entity_id: binary_sensor.motion_sensor_landing | |
to: 'off' | |
for: '00:01:30' | |
condition: [] | |
action: | |
- service: homeassistant.turn_off | |
data: {} | |
target: | |
entity_id: | |
- light.stairs_light | |
- light.first_floor_landing_main_light | |
- light.hallway_main_light | |
- service: automation.turn_on | |
target: | |
entity_id: automation.stairs_lights_turn_on_with_motion | |
mode: restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment