Skip to content

Instantly share code, notes, and snippets.

@pfleidi
Created October 28, 2020 21:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pfleidi/dfe92edc64811c43217c4ed3860d3171 to your computer and use it in GitHub Desktop.
Save pfleidi/dfe92edc64811c43217c4ed3860d3171 to your computer and use it in GitHub Desktop.
- id: '1601056415222'
alias: Living Room Night Light
description: ''
trigger:
- platform: state
entity_id: binary_sensor.motion_living_room
from: 'off'
to: 'on'
condition:
- condition: numeric_state
entity_id: sensor.solar_angle
below: '-5'
- condition: state
entity_id: light.living_room
state: 'off'
action:
- service: light.turn_on
data:
brightness: 15
kelvin: 2200
entity_id: light.living_room
- wait_for_trigger:
- platform: state
entity_id: binary_sensor.motion_living_room
from: 'on'
to: 'off'
for: 00:01:00
timeout: 00:05:00
- condition: numeric_state
entity_id: light.pixar_lamp
attribute: brightness
below: '16'
- service: light.turn_off
data: {}
entity_id: light.living_room
mode: single
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment