Adjustments to Recliner Mode
This commit is contained in:
@ -1869,54 +1869,70 @@
|
|||||||
to: 'on'
|
to: 'on'
|
||||||
id: recliner-on
|
id: recliner-on
|
||||||
trigger: state
|
trigger: state
|
||||||
|
alias: Recliner Mode On
|
||||||
- entity_id: input_boolean.recliner_mode
|
- entity_id: input_boolean.recliner_mode
|
||||||
from: 'on'
|
from: 'on'
|
||||||
to: 'off'
|
to: 'off'
|
||||||
id: recliner-off
|
id: recliner-off
|
||||||
trigger: state
|
trigger: state
|
||||||
|
alias: Recliner Mode Off
|
||||||
conditions: []
|
conditions: []
|
||||||
actions:
|
actions:
|
||||||
- choose:
|
- alias: Routing
|
||||||
|
choose:
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: trigger
|
- condition: trigger
|
||||||
id: recliner-on
|
id: recliner-on
|
||||||
|
alias: Recliner Mode On
|
||||||
sequence:
|
sequence:
|
||||||
- target:
|
- target:
|
||||||
entity_id: input_select.basement_studio_scenes
|
entity_id: input_select.basement_studio_scenes
|
||||||
data:
|
data:
|
||||||
option: Stairwell
|
option: Stairwell
|
||||||
action: input_select.select_option
|
action: input_select.select_option
|
||||||
|
alias: Set scene to Stairwell
|
||||||
- target:
|
- target:
|
||||||
entity_id:
|
entity_id:
|
||||||
- input_boolean.white_noise_basement
|
- input_boolean.white_noise_basement
|
||||||
- input_boolean.studio_quiet
|
- input_boolean.studio_quiet
|
||||||
data: {}
|
data: {}
|
||||||
action: input_boolean.turn_on
|
action: input_boolean.turn_on
|
||||||
- if:
|
alias: Turn on white noise and Studio Quiet
|
||||||
|
- alias: Turn off TV
|
||||||
|
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
|
||||||
\ false\n{% elif is_state('media_player.basement_tv','paused') or is_state('media_player.basement_tv','idle')
|
\ false\n{% elif is_state('media_player.basement_tv','paused') or is_state('media_player.basement_tv','idle')
|
||||||
%}\n {{ state_attr('media_player.basement_tv','app_name') in ['TV','Android
|
%}\n {{ state_attr('media_player.basement_tv','app_name') in ['TV','Android
|
||||||
TV Launcher'] }}\n{% else %}\n false\n{% endif %}\n"
|
TV Launcher'] }}\n{% else %}\n false\n{% endif %}\n"
|
||||||
|
alias: If nothing is playing
|
||||||
then:
|
then:
|
||||||
- target:
|
- target:
|
||||||
entity_id: media_player.basement_tv
|
entity_id: media_player.basement_tv
|
||||||
data: {}
|
data: {}
|
||||||
action: media_player.turn_off
|
action: media_player.turn_off
|
||||||
- if:
|
alias: Turn off TV
|
||||||
- condition: not
|
enabled: false
|
||||||
|
- alias: Turn off computer monitors
|
||||||
|
if:
|
||||||
|
- alias: If I'm not watching something
|
||||||
|
condition: not
|
||||||
conditions:
|
conditions:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: media_player.tony_asus
|
entity_id: media_player.tony_asus
|
||||||
state: playing
|
state: playing
|
||||||
|
alias: PC playing video or music
|
||||||
then:
|
then:
|
||||||
- target:
|
- target:
|
||||||
entity_id: script.tony_desktop_displays_off
|
entity_id: script.tony_desktop_displays_off
|
||||||
data: {}
|
data: {}
|
||||||
action: script.turn_on
|
action: script.turn_on
|
||||||
|
alias: Turn off computer monitors
|
||||||
|
enabled: false
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: trigger
|
- condition: trigger
|
||||||
id: recliner-off
|
id: recliner-off
|
||||||
|
alias: Recliner Mode Off
|
||||||
sequence:
|
sequence:
|
||||||
- data: {}
|
- data: {}
|
||||||
target:
|
target:
|
||||||
@ -2046,10 +2062,12 @@
|
|||||||
- script.tony_desktop_displays_on
|
- script.tony_desktop_displays_on
|
||||||
data: {}
|
data: {}
|
||||||
action: script.turn_on
|
action: script.turn_on
|
||||||
|
enabled: false
|
||||||
- target:
|
- target:
|
||||||
entity_id: media_player.basement_tv
|
entity_id: media_player.basement_tv
|
||||||
data: {}
|
data: {}
|
||||||
action: media_player.turn_on
|
action: media_player.turn_on
|
||||||
|
enabled: false
|
||||||
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