mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-17 14:26:51 +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
|
speed_range_max: 100
|
||||||
```
|
```
|
||||||
|
|
||||||
|
{% raw %}}
|
||||||
|
|
||||||
This example demonstrates how to use command templates with JSON output.
|
This example demonstrates how to use command templates with JSON output.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
@ -295,7 +297,7 @@ fan:
|
|||||||
oscillation_command_topic: "bedroom_fan/oscillation/set"
|
oscillation_command_topic: "bedroom_fan/oscillation/set"
|
||||||
oscillation_command_template: "{ oscillation: '{{ value }}'}"
|
oscillation_command_template: "{ oscillation: '{{ value }}'}"
|
||||||
percentage_command_topic: "bedroom_fan/speed/percentage"
|
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_topic: "bedroom_fan/speed/preset_mode"
|
||||||
preset_mode_command_template: "{ preset_mode: '{{ value }}'}"
|
preset_mode_command_template: "{ preset_mode: '{{ value }}'}"
|
||||||
preset_modes:
|
preset_modes:
|
||||||
@ -305,3 +307,5 @@ fan:
|
|||||||
- "eco"
|
- "eco"
|
||||||
- "breeze"
|
- "breeze"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
{% endraw %}
|
Loading…
x
Reference in New Issue
Block a user