Taking a stab at #164
This commit is contained in:
@ -1965,10 +1965,6 @@
|
|||||||
- input_boolean.white_noise_basement
|
- input_boolean.white_noise_basement
|
||||||
- input_boolean.studio_quiet
|
- input_boolean.studio_quiet
|
||||||
data: {}
|
data: {}
|
||||||
- service: script.turn_on
|
|
||||||
target:
|
|
||||||
entity_id: script.asus_laptop_displays_off
|
|
||||||
data: {}
|
|
||||||
- if:
|
- if:
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: "{% if is_state('media_player.basement_tv','playing') %}\n
|
value_template: "{% if is_state('media_player.basement_tv','playing') %}\n
|
||||||
@ -2025,24 +2021,6 @@
|
|||||||
- input_boolean.studio_quiet
|
- input_boolean.studio_quiet
|
||||||
data: {}
|
data: {}
|
||||||
alias: Turn off the quiet switch
|
alias: Turn off the quiet switch
|
||||||
- alias: If my computer is on, turn the screens back on
|
|
||||||
if:
|
|
||||||
- condition: template
|
|
||||||
value_template: '{{ is_state(''binary_sensor.tony_desktop_on'',''on'') or
|
|
||||||
states(''sensor.tony_asus_current_username'') not in [''unavailable'',''unknown'']
|
|
||||||
}}'
|
|
||||||
then:
|
|
||||||
- service: script.turn_on
|
|
||||||
target:
|
|
||||||
entity_id:
|
|
||||||
- script.tony_desktop_displays_on
|
|
||||||
- script.asus_laptop_displays_on
|
|
||||||
data: {}
|
|
||||||
alias: Turn the screens back on
|
|
||||||
- service: media_player.turn_on
|
|
||||||
target:
|
|
||||||
entity_id: media_player.basement_tv
|
|
||||||
data: {}
|
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
data:
|
data:
|
||||||
brightness_pct: '{{ brightness|default(70) }}'
|
brightness_pct: '{{ brightness|default(70) }}'
|
||||||
@ -2053,7 +2031,8 @@
|
|||||||
target:
|
target:
|
||||||
entity_id: light.basement_studio_lights
|
entity_id: light.basement_studio_lights
|
||||||
alias: Fade the lights in gradually
|
alias: Fade the lights in gradually
|
||||||
- wait_for_trigger:
|
- alias: Wait for lights to fade in unless interrupted
|
||||||
|
wait_for_trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id:
|
entity_id:
|
||||||
- light.basement_studio_lights
|
- light.basement_studio_lights
|
||||||
@ -2064,13 +2043,19 @@
|
|||||||
- input_select.basement_studio_scenes
|
- input_select.basement_studio_scenes
|
||||||
to: Adaptive
|
to: Adaptive
|
||||||
id: adaptive
|
id: adaptive
|
||||||
|
- platform: state
|
||||||
|
entity_id:
|
||||||
|
- binary_sensor.tony_desktop_idle
|
||||||
|
from: 'on'
|
||||||
|
to: 'off'
|
||||||
|
id: computer
|
||||||
timeout:
|
timeout:
|
||||||
minutes: "{% if is_state('binary_sensor.early_night_mode','on') %}\n {{
|
minutes: "{% if is_state('binary_sensor.early_night_mode','on') %}\n {{
|
||||||
states('input_number.wakeup_lights_fade_night') }}\n{% else %}\n {{ states('input_number.wakeup_lights_fade_day')
|
states('input_number.wakeup_lights_fade_night') }}\n{% else %}\n {{ states('input_number.wakeup_lights_fade_day')
|
||||||
}}\n{% endif %}\n"
|
}}\n{% endif %}\n"
|
||||||
continue_on_timeout: true
|
continue_on_timeout: true
|
||||||
alias: Wait for lights to fade in unless interrupted
|
- alias: Take action after timeout or interruption
|
||||||
- choose:
|
choose:
|
||||||
- conditions:
|
- conditions:
|
||||||
- alias: Adaptive
|
- alias: Adaptive
|
||||||
condition: template
|
condition: template
|
||||||
@ -2114,13 +2099,29 @@
|
|||||||
manual_control: false
|
manual_control: false
|
||||||
entity_id: switch.adaptive_lighting_basement_studio
|
entity_id: switch.adaptive_lighting_basement_studio
|
||||||
alias: Reset manual control
|
alias: Reset manual control
|
||||||
alias: Take action after timeout or interruption
|
|
||||||
- service: input_boolean.turn_off
|
- service: input_boolean.turn_off
|
||||||
target:
|
target:
|
||||||
entity_id:
|
entity_id:
|
||||||
- input_boolean.white_noise_basement
|
- input_boolean.white_noise_basement
|
||||||
data: {}
|
data: {}
|
||||||
alias: Turn off white noise
|
alias: Turn off white noise
|
||||||
|
- alias: If my computer is on, turn the screens back on
|
||||||
|
if:
|
||||||
|
- condition: template
|
||||||
|
value_template: '{{ is_state(''binary_sensor.tony_desktop_on'',''on'') or
|
||||||
|
states(''sensor.tony_asus_current_username'') not in [''unavailable'',''unknown'']
|
||||||
|
}}'
|
||||||
|
then:
|
||||||
|
- alias: Turn the screens back on
|
||||||
|
service: script.turn_on
|
||||||
|
target:
|
||||||
|
entity_id:
|
||||||
|
- script.tony_desktop_displays_on
|
||||||
|
data: {}
|
||||||
|
- service: media_player.turn_on
|
||||||
|
target:
|
||||||
|
entity_id: media_player.basement_tv
|
||||||
|
data: {}
|
||||||
mode: restart
|
mode: restart
|
||||||
- id: '1696286540644'
|
- id: '1696286540644'
|
||||||
alias: Basement Lights Adaptive Resync
|
alias: Basement Lights Adaptive Resync
|
||||||
|
Reference in New Issue
Block a user