Fire Event with data_template

Hey there!

Can anybody tell me if its possible to fire an event and set event_data using templates?

Example:
- event: appdaemon_scripts__thermostat_generic_update
event_data:
entity_id: ‘{{entity_id}}’

It does not seem as {{entity_id}} gets resolved.

Cheers,
Matthias

No one? :frowning:

I’ve stumbled across this myself recently and do not think it’s possible, not without event_data_template being implemented to execute the templates at runtime.

For what it’s worth, I was stumbling over the same thing so submitted a pull request to implement event_data_template. We’ll see what happens.

1 Like