I’ll preface this post with two things: first, I’ve searched, here and elsewhere to try and figure out what I’m doing wrong. I’ve spent days doing this. Second is that I hate asking for help when I feel like I should be able to figure something out on my own. But even with several years of experience with Home Assistant, I am completely stumped by what has to be a week 1 beginner skill.
On top of that I have automations that are several years old that are still dutifully passing data to scripts that are also several years old. My automation:
trigger:
- platform: geo_location
source: sensor.location_davesphone
zone: zone.home
event: enter
- platform: state
entity_id: person.dave
from: 'not_home'
to: 'home'
action:
- data: {}
entity_id: input_number.whoishome
action: input_number.increment
- data:
variables:
androidauto: binary_sensor.androidauto_davesphone
action: script.turn_on
target:
entity_id: script.illuminate_garage_entry
And the receiving script:
'illuminate_garage_entry':
alias: Illuminate Garage Entry
sequence:
- condition: state
entity_id: binary_sensor.isdark_outside
state: 'on'
- condition: and
conditions:
- condition: state
entity_id: "{{ androidauto }}"
state: 'on'
- action: light.turn_on
target:
entity_id: light.outsidelightspro
data:
effect: 'Garage Entry'
This is how they are right now, but I’ve also tried calling the script directly, and tried all manner of using quotes, single and double - and omitting them entirely. I’ve even done copy/paste of examples that were claimed to be working - just modifying with my own entities and other specifics. Nothing I do will seem to allow my passed variable to resolve. This is what I find in my logs:
Script with alias 'Illuminate Garage Entry' could not be validated and has been disabled: Entity {{ androidauto }} is neither a valid entity ID nor a valid UUID for dictionary value @ data['sequence'][1]['conditions'][0]['entity_id']. Got '{{ androidauto }}'