I don’t believe you need ‘to:’ since the docs show an example without. I’ve always used/seen ‘platform’ being listed before the ‘entity_id’ but I suppose that should not really make any difference if the HA parsers worked independently of that order.
edit: i know its enabled by default but just wondering if it ever got disabled at some point and the recovery state of the automation is then out of whack.
Yeah you have ‘trigger’ inside your template and I’m almost sure that it is this that he complains about. Can’t test right now as I’m not home. Your example can’t work, did you try exactly the code I suggested?
Your template is wrong and you need to change data to data_template and payload_template to payload (as far as I know payload_template is not valid for automations.
When you execute an automation manually the trigger and condition part are skipped and it goes straight to the action part. And your action part can’t work when you trigger it manually, because you don’t have a trigger then and your template will fail. To ensure that the trigger part is correct, change the action part to something easy like turn on a switch, then change the input select and see if the switched turned on.
Edit: I just saw that your error message shows that it is the trigger in the template for the service call that is causing the issues and not the trigger part.
Error rendering template for call_service at pos 1: UndefinedError: 'trigger' is undefined
Edit 2: Just tested this in my test environment and can confirm it works as intended: