From f4fda64a0de2bf49ce5b1f4b0c38a45715013b06 Mon Sep 17 00:00:00 2001 From: Jan Bouwhuis Date: Sun, 4 Apr 2021 13:16:48 +0200 Subject: [PATCH] Fix documentation for new feature mqtt command templates (#17252) --- source/_integrations/fan.mqtt.markdown | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/_integrations/fan.mqtt.markdown b/source/_integrations/fan.mqtt.markdown index 3650ba6dead..ac49e346819 100644 --- a/source/_integrations/fan.mqtt.markdown +++ b/source/_integrations/fan.mqtt.markdown @@ -282,6 +282,8 @@ fan: speed_range_max: 100 ``` +{% raw %}} + This example demonstrates how to use command templates with JSON output. ```yaml @@ -295,7 +297,7 @@ fan: oscillation_command_topic: "bedroom_fan/oscillation/set" oscillation_command_template: "{ oscillation: '{{ value }}'}" percentage_command_topic: "bedroom_fan/speed/percentage" - percentage_command_template: "{ percentage: {{ value }}}" + percentage_command_template: "{ percentage: '{{ value }}'}" preset_mode_command_topic: "bedroom_fan/speed/preset_mode" preset_mode_command_template: "{ preset_mode: '{{ value }}'}" preset_modes: @@ -305,3 +307,5 @@ fan: - "eco" - "breeze" ``` + +{% endraw %} \ No newline at end of file