Can someone possibly help me figure out why does the below work but the second code post does not? (On the first code post, I get the message to both the iOS phones and the tv but on the second code post, I don’t get a message to the phones (notify.parents)
There are no errors in the logs.
WORKS:
text_notify:
sequence:
- service: notify.parents
data:
title: '{{ title }}'
message: '{{ message }}'
- service: notify.tvs
data:
message: '{{ message }}'
title: '{{ title }}'
data:
fontsize: max
position: bottom-right
duration: 10
transparency: 25%
color: indigo
interrupt: 0
WORKS (CALLED DIRECTLY BY SERVICE–> rather than through script and variable); and it groups the messages properly.
- service: notify.parents
data:
title: '{{ title }}'
message: '{{ message }}'
data:
group: testgroup
tag:
DOES NOT WORK:—> used by an automation as shown in the last code post.
text_notify:
sequence:
- service: notify.parents
data:
title: '{{ title }}'
message: '{{ message }}'
data:
group: '{{ group }}'
tag: '{{ tag }}'
I get no message at all, its like the “second level” data cannot be handled properly when I try to use it through a “text_notify” script.
- id: dog_mode_deactivated
alias: Dog mode Deactivated
initial_state: true
trigger:
- platform: state
entity_id: input_boolean.dog_mode
to: "off"
action:
- service: script.text_notify
data:
who: "parents"
message: "Dog Mode has been disabled"
data:
group: 'modes'
tag:
- service: light.turn_off
data: {}
target:
entity_id:
- light.long_kitchen_cabinet_accents
- light.short_kitchen_cabinet_accents