White noise reset added to automation, close #178
This commit is contained in:
123
automations.yaml
123
automations.yaml
@ -524,36 +524,60 @@
|
|||||||
to: 'on'
|
to: 'on'
|
||||||
from: 'off'
|
from: 'off'
|
||||||
id: emma-on
|
id: emma-on
|
||||||
|
alias: Emma On
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id:
|
entity_id:
|
||||||
- input_boolean.white_noise_basement
|
- input_boolean.white_noise_basement
|
||||||
to: 'on'
|
to: 'on'
|
||||||
from: 'off'
|
from: 'off'
|
||||||
id: basement-on
|
id: basement-on
|
||||||
|
alias: Basement On
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id:
|
entity_id:
|
||||||
- input_boolean.white_noise_kallen_bedroom
|
- input_boolean.white_noise_kallen_bedroom
|
||||||
to: 'on'
|
to: 'on'
|
||||||
from: 'off'
|
from: 'off'
|
||||||
id: kallen-on
|
id: kallen-on
|
||||||
|
alias: Kallen On
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id:
|
entity_id:
|
||||||
- input_boolean.white_noise_emma_bedroom
|
- input_boolean.white_noise_emma_bedroom
|
||||||
from: 'on'
|
from: 'on'
|
||||||
to: 'off'
|
to: 'off'
|
||||||
id: emma-off
|
id: emma-off
|
||||||
|
alias: Emma Off
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id:
|
entity_id:
|
||||||
- input_boolean.white_noise_basement
|
- input_boolean.white_noise_basement
|
||||||
from: 'on'
|
from: 'on'
|
||||||
to: 'off'
|
to: 'off'
|
||||||
id: basement-off
|
id: basement-off
|
||||||
|
alias: Basement Off
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id:
|
entity_id:
|
||||||
- input_boolean.white_noise_kallen_bedroom
|
- input_boolean.white_noise_kallen_bedroom
|
||||||
from: 'on'
|
from: 'on'
|
||||||
to: 'off'
|
to: 'off'
|
||||||
id: kallen-off
|
id: kallen-off
|
||||||
|
alias: Kallen Off
|
||||||
|
- alias: Emma Timeout
|
||||||
|
platform: state
|
||||||
|
id: emma-timeout
|
||||||
|
entity_id:
|
||||||
|
- media_player.emma_bedroom_google_speaker
|
||||||
|
to: 'off'
|
||||||
|
- alias: Basement Timeout
|
||||||
|
platform: state
|
||||||
|
id: basement-timeout
|
||||||
|
entity_id:
|
||||||
|
- media_player.basement_google_speaker
|
||||||
|
to: 'off'
|
||||||
|
- alias: Kallen Timeout
|
||||||
|
platform: state
|
||||||
|
id: kallen-timeout
|
||||||
|
entity_id:
|
||||||
|
- media_player.kallen_bedroom_google_speaker
|
||||||
|
to: 'off'
|
||||||
condition: []
|
condition: []
|
||||||
action:
|
action:
|
||||||
- choose:
|
- choose:
|
||||||
@ -572,14 +596,15 @@
|
|||||||
target:
|
target:
|
||||||
entity_id: media_player.emma_bedroom_google_speaker
|
entity_id: media_player.emma_bedroom_google_speaker
|
||||||
alias: Set volume
|
alias: Set volume
|
||||||
|
alias: Emma On
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: trigger
|
- condition: trigger
|
||||||
id: basement-on
|
id: basement-on
|
||||||
sequence:
|
sequence:
|
||||||
- alias: Start river sounds
|
- service: google_assistant_sdk.send_text_command
|
||||||
service: google_assistant_sdk.send_text_command
|
|
||||||
data:
|
data:
|
||||||
command: give me thunderstorm sounds on basement studio speaker
|
command: give me thunderstorm sounds on basement studio speaker
|
||||||
|
alias: Start thunderstorm sounds
|
||||||
- service: media_player.volume_set
|
- service: media_player.volume_set
|
||||||
data:
|
data:
|
||||||
volume_level: '{{ states(''input_number.basement_google_speaker_night_volume'')
|
volume_level: '{{ states(''input_number.basement_google_speaker_night_volume'')
|
||||||
@ -587,6 +612,7 @@
|
|||||||
target:
|
target:
|
||||||
entity_id: media_player.basement_google_speaker
|
entity_id: media_player.basement_google_speaker
|
||||||
alias: Set volume
|
alias: Set volume
|
||||||
|
alias: Basement On
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: trigger
|
- condition: trigger
|
||||||
id: kallen-on
|
id: kallen-on
|
||||||
@ -602,6 +628,7 @@
|
|||||||
target:
|
target:
|
||||||
entity_id: media_player.kallen_bedroom_google_speaker
|
entity_id: media_player.kallen_bedroom_google_speaker
|
||||||
alias: Set volume
|
alias: Set volume
|
||||||
|
alias: Kallen On
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: trigger
|
- condition: trigger
|
||||||
id: emma-off
|
id: emma-off
|
||||||
@ -631,6 +658,7 @@
|
|||||||
target:
|
target:
|
||||||
entity_id: media_player.emma_bedroom_google_speaker
|
entity_id: media_player.emma_bedroom_google_speaker
|
||||||
alias: Reset volume
|
alias: Reset volume
|
||||||
|
alias: Emma Off
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: trigger
|
- condition: trigger
|
||||||
id: basement-off
|
id: basement-off
|
||||||
@ -654,6 +682,7 @@
|
|||||||
target:
|
target:
|
||||||
entity_id: media_player.basement_google_speaker
|
entity_id: media_player.basement_google_speaker
|
||||||
alias: Reset volume
|
alias: Reset volume
|
||||||
|
alias: Basement Off
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: trigger
|
- condition: trigger
|
||||||
id: kallen-off
|
id: kallen-off
|
||||||
@ -688,8 +717,96 @@
|
|||||||
target:
|
target:
|
||||||
entity_id: media_player.kallen_bedroom_google_speaker
|
entity_id: media_player.kallen_bedroom_google_speaker
|
||||||
alias: Reset volume
|
alias: Reset volume
|
||||||
|
alias: Kallen Off
|
||||||
|
- conditions:
|
||||||
|
- condition: trigger
|
||||||
|
id:
|
||||||
|
- emma-timeout
|
||||||
|
sequence:
|
||||||
|
- alias: Reset white noise
|
||||||
|
if:
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_boolean.white_noise_emma_bedroom
|
||||||
|
state: 'on'
|
||||||
|
alias: Check if white noise is still desired
|
||||||
|
then:
|
||||||
|
- delay:
|
||||||
|
hours: 0
|
||||||
|
minutes: 0
|
||||||
|
seconds: 5
|
||||||
|
milliseconds: 0
|
||||||
|
- alias: Start river sounds
|
||||||
|
service: google_assistant_sdk.send_text_command
|
||||||
|
data:
|
||||||
|
command: give me river noise on emma bedroom speaker
|
||||||
|
- service: media_player.volume_set
|
||||||
|
data:
|
||||||
|
volume_level: '{{ states(''input_number.emma_bedroom_google_speaker_night_volume'')
|
||||||
|
}}'
|
||||||
|
target:
|
||||||
|
entity_id: media_player.emma_bedroom_google_speaker
|
||||||
|
alias: Set volume
|
||||||
|
alias: Emma Timeout
|
||||||
|
- conditions:
|
||||||
|
- condition: trigger
|
||||||
|
id:
|
||||||
|
- basement-timeout
|
||||||
|
sequence:
|
||||||
|
- alias: Reset white noise
|
||||||
|
if:
|
||||||
|
- alias: Check if white noise is still desired
|
||||||
|
condition: state
|
||||||
|
entity_id: input_boolean.white_noise_basement
|
||||||
|
state: 'on'
|
||||||
|
then:
|
||||||
|
- delay:
|
||||||
|
hours: 0
|
||||||
|
minutes: 0
|
||||||
|
seconds: 5
|
||||||
|
milliseconds: 0
|
||||||
|
- alias: Start thunderstorm sounds
|
||||||
|
service: google_assistant_sdk.send_text_command
|
||||||
|
data:
|
||||||
|
command: give me thunderstorm sounds on basement studio speaker
|
||||||
|
- service: media_player.volume_set
|
||||||
|
data:
|
||||||
|
volume_level: '{{ states(''input_number.basement_google_speaker_night_volume'')
|
||||||
|
}}'
|
||||||
|
target:
|
||||||
|
entity_id: media_player.basement_google_speaker
|
||||||
|
alias: Set volume
|
||||||
|
alias: Basement Timeout
|
||||||
|
- conditions:
|
||||||
|
- condition: trigger
|
||||||
|
id:
|
||||||
|
- kallen-timeout
|
||||||
|
sequence:
|
||||||
|
- alias: Reset white noise
|
||||||
|
if:
|
||||||
|
- alias: Check if white noise is still desired
|
||||||
|
condition: state
|
||||||
|
entity_id: input_boolean.white_noise_kallen_bedroom
|
||||||
|
state: 'on'
|
||||||
|
then:
|
||||||
|
- delay:
|
||||||
|
hours: 0
|
||||||
|
minutes: 0
|
||||||
|
seconds: 5
|
||||||
|
milliseconds: 0
|
||||||
|
- alias: Start river sounds
|
||||||
|
service: google_assistant_sdk.send_text_command
|
||||||
|
data:
|
||||||
|
command: give me river noise on kallen bedroom speaker
|
||||||
|
- service: media_player.volume_set
|
||||||
|
data:
|
||||||
|
volume_level: '{{ states(''input_number.kallen_bedroom_google_speaker_night_volume'')
|
||||||
|
}}'
|
||||||
|
target:
|
||||||
|
entity_id: media_player.kallen_bedroom_google_speaker
|
||||||
|
alias: Set volume
|
||||||
|
alias: Kallen Timeout
|
||||||
mode: parallel
|
mode: parallel
|
||||||
max: 10
|
max: 20
|
||||||
- id: '1671584633378'
|
- id: '1671584633378'
|
||||||
alias: Delivery Mode Cleanup
|
alias: Delivery Mode Cleanup
|
||||||
description: ''
|
description: ''
|
||||||
|
Reference in New Issue
Block a user