2020-01-17 22:38:03 +01:00
|
|
|
timed_sleep:
|
2024-05-03 20:50:49 +02:00
|
|
|
alias: Einschlafen mit Licht und Musik auto-aus
|
2020-01-17 22:38:03 +01:00
|
|
|
sequence:
|
2024-05-03 20:50:49 +02:00
|
|
|
- service: media_player.shuffle_set
|
|
|
|
data_template:
|
|
|
|
entity_id: media_player.bedroompi
|
|
|
|
shuffle: '{% if shuffle %}True{% else %}False{% endif %}
|
2020-01-17 22:38:03 +01:00
|
|
|
|
2024-05-03 20:50:49 +02:00
|
|
|
'
|
|
|
|
- service: media_player.repeat_set
|
|
|
|
data:
|
|
|
|
entity_id: media_player.bedroompi
|
|
|
|
repeat: 'off'
|
|
|
|
- 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:
|
2024-05-03 20:50:49 +02:00
|
|
|
alias: Schlafzimmer Musik aus 20min
|
2020-10-05 23:04:22 +02:00
|
|
|
sequence:
|
2024-05-03 20:50:49 +02:00
|
|
|
- service: media_player.squeezebox_call_method
|
|
|
|
data:
|
|
|
|
entity_id: media_player.bedroompi
|
|
|
|
command: sleep 1200
|
2020-10-05 23:04:22 +02:00
|
|
|
bedroom_music_off_30:
|
2024-05-03 20:50:49 +02:00
|
|
|
alias: Schlafzimmer Musik aus 30min
|
2020-10-05 23:04:22 +02:00
|
|
|
sequence:
|
2024-05-03 20:50:49 +02:00
|
|
|
- service: media_player.squeezebox_call_method
|
|
|
|
data:
|
|
|
|
entity_id: media_player.bedroompi
|
|
|
|
command: sleep 1800
|
2020-10-05 23:04:22 +02:00
|
|
|
bedroom_music_off_45:
|
2024-05-03 20:50:49 +02:00
|
|
|
alias: Schlafzimmer Musik aus 45min
|
2020-10-05 23:04:22 +02:00
|
|
|
sequence:
|
2024-05-03 20:50:49 +02:00
|
|
|
- service: media_player.squeezebox_call_method
|
|
|
|
data:
|
|
|
|
entity_id: media_player.bedroompi
|
|
|
|
command: sleep 2700
|
2020-10-05 23:04:22 +02:00
|
|
|
bedroom_music_off_60:
|
2024-05-03 20:50:49 +02:00
|
|
|
alias: Schlafzimmer Musik aus 1h
|
2020-10-05 23:04:22 +02:00
|
|
|
sequence:
|
2024-05-03 20:50:49 +02:00
|
|
|
- service: media_player.squeezebox_call_method
|
|
|
|
data:
|
|
|
|
entity_id: media_player.bedroompi
|
|
|
|
command: sleep 3600
|
2020-10-05 23:04:22 +02:00
|
|
|
bedroom_waves:
|
2024-05-03 20:50:49 +02:00
|
|
|
alias: Schlafzimmer Wellen
|
2020-10-05 23:04:22 +02:00
|
|
|
sequence:
|
2024-05-03 20:50:49 +02:00
|
|
|
- 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
|
2020-10-05 23:04:22 +02:00
|
|
|
bedroom_rain:
|
2024-05-03 20:50:49 +02:00
|
|
|
alias: Schlafzimmer Regen
|
2020-10-05 23:04:22 +02:00
|
|
|
sequence:
|
2024-05-03 20:50:49 +02:00
|
|
|
- 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
|
2020-10-05 23:04:22 +02:00
|
|
|
bedroom_sleep_music_long:
|
2024-05-03 20:50:49 +02:00
|
|
|
alias: Einschlaf Playlist
|
2020-10-05 23:04:22 +02:00
|
|
|
sequence:
|
2024-05-03 20:50:49 +02:00
|
|
|
- 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
|
2020-10-05 23:04:22 +02:00
|
|
|
bedroom_sleep_music_short:
|
2024-05-03 20:50:49 +02:00
|
|
|
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
|
|
|
|
esphome_light_toggle:
|
|
|
|
alias: EspHome Light toggle
|
|
|
|
sequence:
|
|
|
|
- service: light.toggle
|
|
|
|
data_template:
|
|
|
|
entity_id: '{{ light_name }}'
|
|
|
|
transition: '{{ transition }}'
|
|
|
|
rgbw_color:
|
|
|
|
- '{{ red }}'
|
|
|
|
- '{{ green }}'
|
|
|
|
- '{{ blue }}'
|
|
|
|
- '{{ white }}'
|
|
|
|
mode: single
|
|
|
|
icon: mdi:lightbulb-auto
|
|
|
|
sprinkler_an_5_minuten:
|
|
|
|
alias: Sprinkler an für einige Minuten
|
|
|
|
description: Starte Sprinkler für ein paar Minuten
|
|
|
|
fields:
|
|
|
|
minutes:
|
|
|
|
name: minutes
|
|
|
|
description: Dauer in Minute wie lange an
|
|
|
|
default: 3
|
|
|
|
selector:
|
|
|
|
number:
|
|
|
|
min: 0
|
|
|
|
max: 10
|
|
|
|
step: 1
|
|
|
|
unit_of_measurement: minutes
|
|
|
|
mode: slider
|
|
|
|
sequence:
|
|
|
|
- service: switch.turn_on
|
|
|
|
data: {}
|
|
|
|
target:
|
|
|
|
entity_id:
|
|
|
|
- switch.ventil_sprinkler_sud
|
|
|
|
- switch.ventil_sprinkler_westen
|
|
|
|
- delay:
|
|
|
|
minutes: '{{minutes | default(3) }}'
|
|
|
|
- service: switch.turn_off
|
|
|
|
data: {}
|
|
|
|
target:
|
|
|
|
entity_id:
|
|
|
|
- switch.ventil_sprinkler_sud
|
|
|
|
- switch.ventil_sprinkler_westen
|
|
|
|
mode: restart
|
|
|
|
icon: mdi:sprinkler-variant
|
|
|
|
pool_pumpe_schalten:
|
|
|
|
alias: Pool Pumpe schalten
|
|
|
|
description: Pool Pumpe Geschwindigkeit schalten
|
|
|
|
fields:
|
|
|
|
value:
|
|
|
|
name: Speed
|
|
|
|
description: 'Speed, 0 off, 1,2,3 '
|
|
|
|
selector:
|
|
|
|
number:
|
|
|
|
min: 0
|
|
|
|
max: 3
|
|
|
|
step: 1
|
|
|
|
mode: slider
|
|
|
|
sequence:
|
|
|
|
- if:
|
|
|
|
- condition: template
|
|
|
|
value_template: '{{value == 0 }}'
|
|
|
|
then:
|
|
|
|
- service: switch.turn_on
|
|
|
|
data: {}
|
|
|
|
target:
|
|
|
|
entity_id: switch.poolpumpe_speed_off
|
|
|
|
- if:
|
|
|
|
- condition: template
|
|
|
|
value_template: '{{value == 1 }}'
|
|
|
|
then:
|
|
|
|
- service: switch.turn_on
|
|
|
|
data: {}
|
|
|
|
target:
|
|
|
|
entity_id: switch.poolpumpe_speed1
|
|
|
|
- if:
|
|
|
|
- condition: template
|
|
|
|
value_template: '{{value == 2 }}'
|
|
|
|
then:
|
|
|
|
- service: switch.turn_on
|
|
|
|
data: {}
|
|
|
|
target:
|
|
|
|
entity_id: switch.poolpumpe_speed2
|
|
|
|
- if:
|
|
|
|
- condition: template
|
|
|
|
value_template: '{{value == 3 }}'
|
|
|
|
then:
|
|
|
|
- service: switch.turn_on
|
|
|
|
data: {}
|
|
|
|
target:
|
|
|
|
entity_id: switch.poolpumpe_speed3
|
|
|
|
- delay:
|
|
|
|
seconds: 1
|
|
|
|
- service: switch.turn_off
|
|
|
|
data: {}
|
|
|
|
target:
|
|
|
|
entity_id:
|
|
|
|
- switch.poolpumpe_speed_off
|
|
|
|
- switch.poolpumpe_speed1
|
|
|
|
- switch.poolpumpe_speed2
|
|
|
|
- switch.poolpumpe_speed3
|
|
|
|
mode: single
|
|
|
|
icon: hue:room-pool
|
|
|
|
roomtracker_learn_aktueller_raum:
|
|
|
|
alias: 'RoomTracker Learn: Aktueller Raum'
|
2020-10-05 23:04:22 +02:00
|
|
|
sequence:
|
2024-05-03 20:50:49 +02:00
|
|
|
- service: mqtt.publish
|
|
|
|
metadata: {}
|
|
|
|
data:
|
|
|
|
qos: '0'
|
|
|
|
topic: my_btmonitor/known_room
|
|
|
|
payload_template: '{{real_room}}'
|
|
|
|
mode: single
|
|
|
|
icon: mdi:desk
|
|
|
|
fields:
|
|
|
|
real_room:
|
|
|
|
selector:
|
|
|
|
select:
|
|
|
|
multiple: false
|
|
|
|
options:
|
|
|
|
- arbeitszimmer
|
|
|
|
- wohnzimmer
|
|
|
|
- esszimmer
|
|
|
|
- küche
|
|
|
|
- sofa
|
|
|
|
- eingangsbereich
|
|
|
|
- buero_oben
|
|
|
|
- wohnzimmer_oben
|
|
|
|
- schlafzimmer
|
|
|
|
- garten
|
|
|
|
- kinderzimmer
|
|
|
|
- abstellraum3dDrucker
|
|
|
|
- keins
|
|
|
|
required: true
|
|
|
|
name: real_room
|
|
|
|
description: Aktueller Raum in dem Apple Watch und iPhone ist
|