sorry, forgot to repond to this.
you are right, that works ok.
I’ve tested with:
message: >
{{state_attr(trigger.event.data.entity_id,'name')}} was updated to {{state_attr(trigger.event.data.entity_id,'latest_release_url').split('tag/')[1]}}.
Visit the release page {{state_attr(trigger.event.data.entity_id,'latest_release_url')}} to download.
Object is {{trigger.event.data.object_id}}
Entity is {{trigger.event.data.entity_id}}
Name is {{state_attr(trigger.event.data.entity_id,'name')}}
Fake Object is {{trigger.event.data.entity_id.split('.')[1]}}
and the message is clear on all templates, except for the one using object_id, which simply results in an empty field:
Object is
all others show the expected outcome. Why cant we use object_id here? State objects - Home Assistant would suggest otherwise, and in regular jinja templates I do so without issue.
about your format:
{{ trigger.event.data.entity_id.split('.', 1)[1] }}
what does the 1 in split('.', 1)
do? I think I get the same result without it?