55 lines
1.1 KiB
YAML
55 lines
1.1 KiB
YAML
- id: brightness-dark
|
|
alias: '[Brightness] Dark'
|
|
mode: single
|
|
trigger:
|
|
- platform: numeric_state
|
|
entity_id: sensor.office_illuminance
|
|
below: '20'
|
|
for:
|
|
hours: 0
|
|
minutes: 1
|
|
seconds: 0
|
|
action:
|
|
- service: cover.close_cover
|
|
target:
|
|
entity_id:
|
|
- cover.office_blinds
|
|
- cover.dining_blinds
|
|
|
|
- id: brightness-ok
|
|
alias: '[Brightness] OK'
|
|
mode: single
|
|
trigger:
|
|
- platform: numeric_state
|
|
entity_id: sensor.office_illuminance
|
|
above: '30'
|
|
below: '150'
|
|
for:
|
|
hours: 0
|
|
minutes: 1
|
|
seconds: 0
|
|
action:
|
|
- service: cover.open_cover
|
|
target:
|
|
entity_id:
|
|
- cover.office_blinds
|
|
- cover.dining_blinds
|
|
|
|
- id: brightness-bright
|
|
alias: '[Brightness] Bright'
|
|
mode: single
|
|
trigger:
|
|
- platform: numeric_state
|
|
entity_id: sensor.office_illuminance
|
|
above: '1500'
|
|
for:
|
|
hours: 0
|
|
minutes: 1
|
|
seconds: 0
|
|
action:
|
|
- service: cover.close_cover
|
|
target:
|
|
entity_id:
|
|
- cover.office_blinds
|
|
- cover.dining_blinds
|