From da8b8aa3732f2357680b4afe35684dc913445143 Mon Sep 17 00:00:00 2001 From: Koen Kanters Date: Tue, 10 Mar 2020 19:28:19 +0100 Subject: [PATCH] Fix command_on_template for lightWithPostfix. https://github.com/Koenkk/zigbee2mqtt/issues/3003#issuecomment-596868209 --- lib/extension/homeassistant.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }}