diff --git a/lib/extension/homeassistant.js b/lib/extension/homeassistant.js index 1b2bd880b..f871047d2 100644 --- a/lib/extension/homeassistant.js +++ b/lib/extension/homeassistant.js @@ -547,7 +547,7 @@ const lightWithPostfix = (postfix) => { schema: 'template', command_topic: true, command_topic_prefix: postfix, - command_on_template: `> + command_on_template: ` {"state": "on" {%- if brightness is defined -%} , "brightness": {{ brightness }}