Code:
alias: "Notify: Kalender "
description: ""
trigger:
- platform: calendar
event: start
entity_id: calendar.abfall
offset: "-6:0:0"
alias: Müll
id: Müll
- platform: calendar
event: start
entity_id: calendar.abfall
offset: "-8:0:0"
alias: Müll
id: Müll
condition: []
action:
- if:
- condition: trigger
id: Müll
then:
- service: media_player.volume_set
data:
volume_level: 1
target:
device_id:
- 0e6795c42100e17165c34c8913e89224
- dac216e124908529d9efe496fe84abad
- f65293706e97e49848aee9d23773f068
- if:
- condition: template
value_template: "{{ trigger.calendar_event.summary == 'Gelber Sack' }}"
then:
- service: notify.alexa_media
data:
target:
- media_player.alexa_buro
- media_player.alexa_stube
- media_player.alexa_schlafzimmer
message: Gelbe Säcke rausstellen bitte!
data:
type: tts
alias: Alexa sagt bescheid
- delay:
hours: 0
minutes: 0
seconds: 10
milliseconds: 0
- service: notify.alexa_media
data:
message: Gelbe Säcke rausstellen bitte!
target:
- media_player.alexa_buro
- media_player.alexa_stube
- media_player.alexa_schlafzimmer
data:
type: tts
alias: Alexa sagt bescheid
alias: Gelber Sack
- if:
- condition: template
value_template: "{{ trigger.calendar_event.summary == 'Papiertonne' }}"
then:
- service: notify.alexa_media
data:
target:
- media_player.alexa_buro
- media_player.alexa_stube
- media_player.alexa_schlafzimmer
message: Papiertonne rausstellen bitte!
data:
type: tts
alias: Alexa sagt bescheid
- delay:
hours: 0
minutes: 0
seconds: 10
milliseconds: 0
- service: notify.alexa_media
data:
message: Papiertonne rausstellen bitte!
target:
- media_player.alexa_buro
- media_player.alexa_stube
- media_player.alexa_schlafzimmer
data:
type: tts
alias: Alexa sagt bescheid
alias: Altpapier
- service: media_player.volume_set
data:
volume_level: 0.5
target:
device_id:
- f65293706e97e49848aee9d23773f068
- dac216e124908529d9efe496fe84abad
- 0e6795c42100e17165c34c8913e89224
alias: Müll
mode: queued
max: 10