Please format your post correctly.
But from what I can see, you appear to be confusing automations and scripts. Scripts don’t have triggers.
Also you don’t use triggers in value_templates.
Please format your post correctly.
But from what I can see, you appear to be confusing automations and scripts. Scripts don’t have triggers.
Also you don’t use triggers in value_templates.