mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 10:30:14 -04:00
65 lines
1.4 KiB
YAML
65 lines
1.4 KiB
YAML
alias: Handle DreamSurface Brightness
|
|
id: handle_dreamsurface_brightness
|
|
description: "Handle DreamSurface Brightness"
|
|
trigger:
|
|
- platform: state
|
|
id: going_to_bed
|
|
entity_id: input_boolean.clint_in_bed
|
|
from: "off"
|
|
to: "on"
|
|
|
|
- platform: state
|
|
id: waking_up
|
|
entity_id: input_boolean.clint_in_bed
|
|
from: "on"
|
|
to: "off"
|
|
|
|
- platform: state
|
|
id: evening
|
|
entity_id: binary_sensor.evening
|
|
from: "off"
|
|
to: "on"
|
|
|
|
# condition:
|
|
# - alias: "The home is occupied"
|
|
# condition: state
|
|
# entity_id: input_boolean.home_occupied
|
|
# state: "on"
|
|
|
|
# - alias: "Its not bedtime"
|
|
# condition: state
|
|
# entity_id: input_boolean.bedtime
|
|
# state: "off"
|
|
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: trigger
|
|
id: going_to_bed
|
|
|
|
sequence:
|
|
- action: button.press
|
|
data: {}
|
|
target:
|
|
entity_id: button.dreamsurface_low_brightness
|
|
|
|
- conditions:
|
|
- condition: trigger
|
|
id: waking_up
|
|
|
|
sequence:
|
|
- action: button.press
|
|
data: {}
|
|
target:
|
|
entity_id: button.dreamsurface_normal_brightness
|
|
|
|
- conditions:
|
|
- condition: trigger
|
|
id: evening
|
|
|
|
sequence:
|
|
- action: button.press
|
|
data: {}
|
|
target:
|
|
entity_id: button.dreamsurface_dim_brightness
|