2022-04-02 13:34:02 +00:00
|
|
|
- id: brightness-dark
|
|
|
|
alias: '[Brightness] Dark'
|
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- platform: numeric_state
|
2022-05-02 23:34:47 +00:00
|
|
|
entity_id: sensor.office_illuminance
|
2022-08-12 18:30:47 +00:00
|
|
|
below: '25'
|
2022-04-02 13:34:02 +00:00
|
|
|
for:
|
|
|
|
hours: 0
|
|
|
|
minutes: 1
|
|
|
|
seconds: 0
|
|
|
|
action:
|
|
|
|
- service: cover.close_cover
|
|
|
|
target:
|
|
|
|
entity_id:
|
2022-05-13 22:51:12 +00:00
|
|
|
- cover.office_blinds
|
2022-04-02 13:34:02 +00:00
|
|
|
- cover.dining_blinds
|
|
|
|
|
2022-08-12 18:30:47 +00:00
|
|
|
- id: brightness-dark-lights-on
|
|
|
|
alias: '[Brightness] Dark - turn on lights'
|
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- platform: numeric_state
|
|
|
|
entity_id: sensor.office_illuminance
|
2022-08-21 20:44:56 +00:00
|
|
|
below: '55'
|
2022-08-12 18:30:47 +00:00
|
|
|
for:
|
|
|
|
hours: 0
|
|
|
|
minutes: 1
|
|
|
|
seconds: 0
|
|
|
|
condition:
|
|
|
|
- condition: or
|
|
|
|
conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: binary_sensor.hulk_ping
|
|
|
|
state: 'on'
|
|
|
|
- condition: state
|
|
|
|
entity_id: binary_sensor.hawkeye_ping
|
|
|
|
state: 'on'
|
|
|
|
- condition: state
|
|
|
|
entity_id: device_tracker.amdn4684
|
|
|
|
state: 'home'
|
|
|
|
action:
|
2022-08-13 17:17:39 +00:00
|
|
|
- service: script.office_lights_on
|
|
|
|
|
|
|
|
- id: brightness-ok-lights-off
|
2022-08-19 18:39:11 +00:00
|
|
|
alias: '[Brightness] Dark - turn off lights'
|
2022-08-13 17:17:39 +00:00
|
|
|
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
|
2022-08-12 18:30:47 +00:00
|
|
|
|
2022-04-02 13:34:02 +00:00
|
|
|
- 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
|
2022-05-02 23:34:47 +00:00
|
|
|
entity_id: sensor.office_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:
|
2022-05-13 22:51:12 +00:00
|
|
|
- cover.office_blinds
|
2022-04-02 13:34:02 +00:00
|
|
|
- cover.dining_blinds
|
|
|
|
|
|
|
|
- id: brightness-bright
|
|
|
|
alias: '[Brightness] Bright'
|
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- platform: numeric_state
|
2022-05-02 23:34:47 +00:00
|
|
|
entity_id: sensor.office_illuminance
|
2022-04-02 13:34:02 +00:00
|
|
|
above: '1500'
|
|
|
|
for:
|
|
|
|
hours: 0
|
|
|
|
minutes: 1
|
|
|
|
seconds: 0
|
|
|
|
action:
|
|
|
|
- service: cover.close_cover
|
|
|
|
target:
|
|
|
|
entity_id:
|
2022-05-13 22:51:12 +00:00
|
|
|
- cover.office_blinds
|
2022-04-02 13:34:02 +00:00
|
|
|
- cover.dining_blinds
|