Auto-off feature
This commit is contained in:
63
scripts.yaml
63
scripts.yaml
@@ -0,0 +1,63 @@
|
||||
#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 %}
|
||||
- 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}}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user