This user_id (d70c34161d8d4f7691b8a6566a8443c7) is for me, and the automation should execute only when I turn on the light. Yet the automation never executes.
My formatting of the template is apparently not correct?
You are using the >- line continuation character to indicate the template starts on the next line. Therefore remove the double-quotes wrapping the template. They’re only needed if the template is on the same line as the value_template option.
I entered the template using the Visual Editor in the UI and did not manually enter the “>-”, it is a little strange that it was added automatically…