1
0
ansible-home-assistant/configuration/automations/brightness.yaml

55 lines
1.2 KiB
YAML
Raw Normal View History

2022-04-02 13:34:02 +00:00
- id: brightness-dark
alias: '[Brightness] Dark'
mode: single
trigger:
- platform: numeric_state
entity_id: sensor.xiaomi_lumi_sen_ill_mgl01_cc990100_illuminance
below: '20'
2022-04-02 13:34:02 +00:00
for:
hours: 0
minutes: 1
seconds: 0
action:
- service: cover.close_cover
target:
entity_id:
- cover.office_blind
- cover.dining_blinds
- id: brightness-ok
2022-04-05 21:57:55 +00:00
alias: '[Brightness] OK'
2022-04-02 13:34:02 +00:00
mode: single
trigger:
- platform: numeric_state
entity_id: sensor.xiaomi_lumi_sen_ill_mgl01_cc990100_illuminance
2022-04-05 21:57:55 +00:00
above: '30'
below: '150'
2022-04-02 13:34:02 +00:00
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'
for:
hours: 0
minutes: 1
seconds: 0
action:
- service: cover.close_cover
target:
entity_id:
- cover.office_blind
- cover.dining_blinds