Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (27 sloc) 668 Bytes
---
alias: Security Lighting - Night
trigger:
- entity_id: sensor.light_scene
platform: state
to: Night
- entity_id: sensor.family_family_state_raw
platform: state
condition:
condition: and
conditions:
- condition: time
before: '23:30:00'
- condition: numeric_state
entity_id: sensor.family_family_state_raw
below: 4
- condition: state
entity_id: sensor.light_scene
state: Night
action:
- delay: '00:{{ range(0,2) | random | int }}{{ range(0,9) | random | int }}:00'
- service: scene.turn_on
data:
entity_id: scene.light_security_ff
- service: scene.turn_on
data:
entity_id: scene.light_security_gf
You can’t perform that action at this time.