diff --git a/source/_docs/automation/templating.markdown b/source/_docs/automation/templating.markdown index ede399f862e..58d0aee93cf 100644 --- a/source/_docs/automation/templating.markdown +++ b/source/_docs/automation/templating.markdown @@ -27,7 +27,7 @@ automation 2: platform: mqtt topic: /notify/+ action: - service_template: > + service: > notify.{{ trigger.topic.split('/')[-1] }} data: message: '{{ trigger.payload }}'