I’ve dug around the forums for this, but I haven’t seen anyone that has had this issue yet. I’m trying to create a script that notifies a person only if they are home. I’ve found that this:
alias: Text KP
variables:
target: person.kp
data: notify.mobile_app_traveller
sequence:
- condition: state
entity_id: person.kp
state: home
- service: '{{ data }}'
data:
message: test
mode: single
works, but this:
alias: Text KP
variables:
target: person.kp
data: notify.mobile_app_traveller
sequence:
- condition: state
entity_id: '{{ target }}'
state: home
- service: '{{ data }}'
data:
message: test
mode: single
generates this error on saving:
Message malformed: Entity ID {{ target }} is an invalid entity ID for dictionary value @ data['sequence'][0]['entity_id']
What am I missing here?