I’m trying to add both services to an automation but for some reason it’s not working… I’ve tried adding a delay in between them but it only ever fires the 1st service and never the second… I’m thinking it should be possible but haven’t even found a working example and no matter what I’ve tried it’s a no go…
Anyone doing this also? If so how did you get it to work? I currently have it rem’ed out because it’s not working anyway…
Thank you!!
- alias: 26 - All Doors and Windows
id: 26 - All Doors and Windows
trigger:
- platform: state
entity_id: device_tracker.john_s_z_fold3
from: "home"
to: "not_home"
condition:
- condition: state
entity_id: group.all_doors
state: "on"
action:
- service: notify.mobile_app_sm_f926u1
data:
message: "TTS"
title: "Attention! The following doors or windows are open. {{ expand('group.all_doors') | selectattr('state','eq','on') | map(attribute='name') | list | join(', ') }}"
data:
channel: alarm_stream_max
ttl: 0
priority: high
#- delay: "00:00:15"
#- service: media_player.volume_set
# data:
# volume_level: 0.59
# target:
# entity_id: media_player.sonos_five
#- service: tts.cloud_say
# entity_id: media_player.sonos_five
# data:
# channel: alarm_stream_max
# ttl: 0
# priority: high
# title: "Attention! The following doors or windows are open. {{ expand('group.all_doors') | selectattr('state','eq','on') | map(attribute='name') | list | join(', ') }}"
I know the second service works as I use it in another automation…and will work if I rem the 1st one out…