Skip to content

Instantly share code, notes, and snippets.

@pfleidi
Created October 28, 2020 21:22
Show Gist options
  • Save pfleidi/9bdaae0438640b2dfb955c86aea699f0 to your computer and use it in GitHub Desktop.
Save pfleidi/9bdaae0438640b2dfb955c86aea699f0 to your computer and use it in GitHub Desktop.
- id: '1600125859583'
alias: Sven's Closet Light
description: ''
trigger:
- entity_id: binary_sensor.door_sven_closet
from: 'off'
platform: state
to: 'on'
condition: []
action:
- data:
brightness_pct: 100
entity_id: light.sven_closet_light
service: light.turn_on
- wait_for_trigger:
- platform: state
entity_id: binary_sensor.door_sven_closet
from: 'on'
to: 'off'
for: 00:00:30
timeout: 00:02:00
continue_on_timeout: true
- data: {}
entity_id: light.sven_closet_light
service: light.turn_off
mode: single
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment