Hello. I have a blueprint (based on the stock motion-activated light blueprint) that calls a script, while passing the entity_id of the target light to turn on:
- alias: "Turn on the light"
service: script.xxxxx
data:
entity: !input light_target
The script, in turn, has several conditionals with differing calls to “light.turn_on”, for example:
Ah, I see… so it was passing a reference to the entity rather than passing the name itself?
One of the reasons that I have this broken out into a separate script is so that I can also call it from other automations (not based on the blueprint). How would I then change my calls to the script from those if I make this change?