2020-01-17 22:38:03 +01:00
|
|
|
#timed_sleep_rain:
|
|
|
|
# alias: "Einschlafen mit Regen"
|
|
|
|
# sequence:
|
|
|
|
# - service: media_player.play_media
|
|
|
|
# data:
|
|
|
|
# entity_id: media_player.bedroompi
|
|
|
|
# media_content_id: spotify:playlist:37i9dQZF1DXbcPC6Vvqudd
|
|
|
|
# media_content_type: music
|
|
|
|
# - service: scene.turn_on
|
|
|
|
# data:
|
|
|
|
# entity_id: scene.schlafzimmer_einschlaflicht
|
|
|
|
# - service: squeezebox_telnet.squeezebox_call_method
|
|
|
|
# data:
|
|
|
|
# command: sleep
|
|
|
|
# parameters:
|
|
|
|
# - 2700
|
|
|
|
# - service: light.turn_off
|
|
|
|
# data:
|
|
|
|
# transition: 900
|
|
|
|
# entity_id: group.bedroom
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#timed_sleep_music:
|
|
|
|
# alias: "Einschlafen mit Musik"
|
|
|
|
# sequence:
|
|
|
|
# - service: media_player.play_media
|
|
|
|
# data:
|
|
|
|
# entity_id: media_player.bedroompi
|
|
|
|
# media_content_id: "Good Night"
|
|
|
|
# media_content_type: music
|
|
|
|
# - service: scene.turn_on
|
|
|
|
# data:
|
|
|
|
# entity_id: scene.schlafzimmer_einschlaflicht
|
|
|
|
# - service: light.turn_off
|
|
|
|
# data:
|
|
|
|
# transition: 900
|
|
|
|
# entity_id: group.bedroom
|
|
|
|
|
|
|
|
timed_sleep:
|
|
|
|
alias: "Einschlafen mit Licht und Musik auto-aus"
|
|
|
|
sequence:
|
|
|
|
- service: media_player.shuffle_set
|
|
|
|
data_template:
|
|
|
|
entity_id: "media_player.bedroompi"
|
|
|
|
shuffle: >
|
|
|
|
{% if shuffle %}True{% else %}False{% endif %}
|
2021-02-01 21:02:55 +01:00
|
|
|
- service: media_player.repeat_set
|
|
|
|
data:
|
|
|
|
entity_id: "media_player.bedroompi"
|
|
|
|
repeat: "off"
|
2020-01-17 22:38:03 +01:00
|
|
|
- service: media_player.play_media
|
|
|
|
data_template:
|
|
|
|
entity_id: "media_player.bedroompi"
|
|
|
|
media_content_id: "{{media_content_id}}"
|
|
|
|
media_content_type: "music"
|
|
|
|
- service: scene.turn_on
|
|
|
|
data:
|
|
|
|
entity_id: scene.schlafzimmer_einschlaflicht
|
|
|
|
- service: light.turn_off
|
|
|
|
data_template:
|
|
|
|
transition: "{{light_off_secs}}"
|
|
|
|
entity_id: group.bedroom
|
|
|
|
- service: media_player.squeezebox_call_method
|
|
|
|
data_template:
|
|
|
|
entity_id: "media_player.bedroompi"
|
|
|
|
command: "sleep {{music_off_secs}}"
|
|
|
|
|
2020-10-05 23:04:22 +02:00
|
|
|
bedroom_music_off_20:
|
|
|
|
alias: "Schlafzimmer Musik aus 20min"
|
|
|
|
sequence:
|
|
|
|
- service: media_player.squeezebox_call_method
|
|
|
|
data:
|
|
|
|
entity_id: "media_player.bedroompi"
|
|
|
|
command: "sleep 1200"
|
|
|
|
|
|
|
|
bedroom_music_off_30:
|
|
|
|
alias: "Schlafzimmer Musik aus 30min"
|
|
|
|
sequence:
|
|
|
|
- service: media_player.squeezebox_call_method
|
|
|
|
data:
|
|
|
|
entity_id: "media_player.bedroompi"
|
|
|
|
command: "sleep 1800"
|
|
|
|
|
|
|
|
bedroom_music_off_45:
|
|
|
|
alias: "Schlafzimmer Musik aus 45min"
|
|
|
|
sequence:
|
|
|
|
- service: media_player.squeezebox_call_method
|
|
|
|
data:
|
|
|
|
entity_id: "media_player.bedroompi"
|
|
|
|
command: "sleep 2700"
|
|
|
|
|
|
|
|
bedroom_music_off_60:
|
|
|
|
alias: "Schlafzimmer Musik aus 1h"
|
|
|
|
sequence:
|
|
|
|
- service: media_player.squeezebox_call_method
|
|
|
|
data:
|
|
|
|
entity_id: "media_player.bedroompi"
|
|
|
|
command: "sleep 3600"
|
|
|
|
|
|
|
|
bedroom_waves:
|
|
|
|
alias: "Schlafzimmer Wellen"
|
|
|
|
sequence:
|
|
|
|
- service: media_player.shuffle_set
|
|
|
|
data:
|
|
|
|
entity_id: "media_player.bedroompi"
|
|
|
|
shuffle: True
|
|
|
|
- service: media_player.play_media
|
|
|
|
data:
|
|
|
|
entity_id: "media_player.bedroompi"
|
|
|
|
media_content_id: "spotify:playlist:5D1liEDe4Fo6guA2M28hO2"
|
|
|
|
media_content_type: "music"
|
|
|
|
- service: media_player.squeezebox_call_method
|
|
|
|
data:
|
|
|
|
entity_id: "media_player.bedroompi"
|
|
|
|
command: "sleep 3600"
|
|
|
|
|
|
|
|
bedroom_rain:
|
|
|
|
alias: "Schlafzimmer Regen"
|
|
|
|
sequence:
|
|
|
|
- service: media_player.shuffle_set
|
|
|
|
data:
|
|
|
|
entity_id: "media_player.bedroompi"
|
|
|
|
shuffle: True
|
|
|
|
- service: media_player.play_media
|
|
|
|
data:
|
|
|
|
entity_id: "media_player.bedroompi"
|
|
|
|
media_content_id: "spotify:playlist:37i9dQZF1DXbcPC6Vvqudd"
|
|
|
|
media_content_type: "music"
|
|
|
|
- service: media_player.squeezebox_call_method
|
|
|
|
data:
|
|
|
|
entity_id: "media_player.bedroompi"
|
|
|
|
command: "sleep 3600"
|
|
|
|
|
|
|
|
bedroom_sleep_music_long:
|
|
|
|
alias: "Einschlaf Playlist"
|
|
|
|
sequence:
|
|
|
|
- service: media_player.shuffle_set
|
|
|
|
data:
|
|
|
|
entity_id: "media_player.bedroompi"
|
|
|
|
shuffle: False
|
|
|
|
- service: media_player.play_media
|
|
|
|
data:
|
|
|
|
media_content_id: Good Night Long
|
|
|
|
media_content_type: music
|
|
|
|
entity_id: media_player.bedroompi
|
|
|
|
|
|
|
|
bedroom_sleep_music_short:
|
|
|
|
alias: "Einschlaf Playlist Kurz"
|
|
|
|
sequence:
|
|
|
|
- service: media_player.shuffle_set
|
|
|
|
data:
|
|
|
|
entity_id: "media_player.bedroompi"
|
|
|
|
shuffle: False
|
|
|
|
- service: media_player.play_media
|
|
|
|
data:
|
|
|
|
media_content_id: Good Night
|
|
|
|
media_content_type: music
|
|
|
|
entity_id: media_player.bedroompi
|