It’s that new-fangled Device Automation thing. It’s a great idea when used via the UI. However, when converted to text in an automation, it looks like the long way to get something done (compared to calling a service). I’m not very familiar with its syntax. In this case, maybe it doesn’t like the presence of template in type
?