Help with Config Error (invalid entity ID)

And for your service, if you want to template entity_id, it needs to go in target or data. It can’t be outside