Fix brightness automation
This commit is contained in:
parent
3e17e3606e
commit
29632bb3b2
@ -40,11 +40,21 @@
|
||||
entity_id: device_tracker.amdn4684
|
||||
state: 'home'
|
||||
action:
|
||||
- service: cover.close_cover
|
||||
target:
|
||||
entity_id:
|
||||
- cover.office_blinds
|
||||
- cover.dining_blinds
|
||||
- service: script.office_lights_on
|
||||
|
||||
- id: brightness-ok-lights-off
|
||||
alias: '[Brightness] Dark - turn on lights'
|
||||
mode: single
|
||||
trigger:
|
||||
- platform: numeric_state
|
||||
entity_id: sensor.office_illuminance
|
||||
above: '60'
|
||||
for:
|
||||
hours: 0
|
||||
minutes: 1
|
||||
seconds: 0
|
||||
action:
|
||||
- service: script.office_lights_off
|
||||
|
||||
- id: brightness-ok
|
||||
alias: '[Brightness] OK'
|
||||
|
Loading…
Reference in New Issue
Block a user