#Call script from Tile Card and pass Tile `entity` for the script input

1 messages · Page 1 of 1 (latest)

dreamy oracle
#

Is it possible to pass the Tile Card's entity to a script's required entity_id field?

I have a Tile Card with Interactions > Icon tap behavior set to (Action) Script: Turn Target Thing On. Right now, I have a Selector field for selecting the same entity of the card, but I'd like a way to just pass through the entity already set on the Tile Card itself.

When viewing editor for Tile Card, I see the "entity" field/property is correctly set and just need some way to pass that through to the script as input.

#

For context, trying to use the entity as a template variable, no clue if this is actually supposed to work at all, just trying to illustrate my objective