From 7b3ee9aeedbb953be3dd2ea85cdceeec928f6890 Mon Sep 17 00:00:00 2001 From: jbouwh Date: Sat, 3 Apr 2021 17:56:43 +0200 Subject: [PATCH] rebase and redo proposed change --- 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 3650ba6dead5..ac49e346819e 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