Add autobrightness covers
This commit is contained in:
parent
4dc02ee35c
commit
199646fc49
1 changed files with 76 additions and 0 deletions
76
configuration/automations/brightness.yaml
Normal file
76
configuration/automations/brightness.yaml
Normal file
|
@ -0,0 +1,76 @@
|
|||
- id: brightness-dark
|
||||
alias: '[Brightness] Dark'
|
||||
mode: single
|
||||
trigger:
|
||||
- platform: numeric_state
|
||||
entity_id: sensor.xiaomi_lumi_sen_ill_mgl01_cc990100_illuminance
|
||||
below: '10'
|
||||
for:
|
||||
hours: 0
|
||||
minutes: 1
|
||||
seconds: 0
|
||||
action:
|
||||
- service: cover.close_cover
|
||||
target:
|
||||
entity_id:
|
||||
- cover.office_blind
|
||||
- cover.dining_blinds
|
||||
|
||||
- id: brightness-ok
|
||||
alias: '[Brightness] Very bright'
|
||||
mode: single
|
||||
trigger:
|
||||
- platform: numeric_state
|
||||
entity_id: sensor.xiaomi_lumi_sen_ill_mgl01_cc990100_illuminance
|
||||
above: '15'
|
||||
below: '1450'
|
||||
for:
|
||||
hours: 0
|
||||
minutes: 1
|
||||
seconds: 0
|
||||
action:
|
||||
- service: cover.open_cover
|
||||
target:
|
||||
entity_id:
|
||||
- cover.office_blind
|
||||
- cover.dining_blinds
|
||||
|
||||
- id: brightness-bright
|
||||
alias: '[Brightness] Bright'
|
||||
mode: single
|
||||
trigger:
|
||||
- platform: numeric_state
|
||||
entity_id: sensor.xiaomi_lumi_sen_ill_mgl01_cc990100_illuminance
|
||||
above: '1500'
|
||||
below: '1950'
|
||||
for:
|
||||
hours: 0
|
||||
minutes: 1
|
||||
seconds: 0
|
||||
action:
|
||||
- service: cover.close_cover
|
||||
target:
|
||||
entity_id:
|
||||
- cover.office_blind
|
||||
- cover.dining_blinds
|
||||
- service: cover.open_cover
|
||||
target:
|
||||
entity_id:
|
||||
- cover.dining_blinds
|
||||
|
||||
- id: brightness-very-bright
|
||||
alias: '[Brightness] Very bright'
|
||||
mode: single
|
||||
trigger:
|
||||
- platform: numeric_state
|
||||
entity_id: sensor.xiaomi_lumi_sen_ill_mgl01_cc990100_illuminance
|
||||
above: '2000'
|
||||
for:
|
||||
hours: 0
|
||||
minutes: 1
|
||||
seconds: 0
|
||||
action:
|
||||
- service: cover.close_cover
|
||||
target:
|
||||
entity_id:
|
||||
- cover.office_blind
|
Loading…
Reference in a new issue