mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-16 22:06:50 +00:00
Fix documentation for new feature mqtt command templates (#17252)
This commit is contained in:
parent
4ed78dab24
commit
f4fda64a0d
@ -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 %}
|
Loading…
x
Reference in New Issue
Block a user