mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-08-28 13:34:24 +00:00
Fix command_on_template for lightWithPostfix. https://github.com/Koenkk/zigbee2mqtt/issues/3003#issuecomment-596868209
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user