mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 16:56:50 +00:00
Format values as code blocks (#16242)
This commit is contained in:
parent
e2ee02796d
commit
b600138c22
@ -10,8 +10,8 @@ ha_domain: template
|
|||||||
---
|
---
|
||||||
|
|
||||||
The `template` platform creates fans that combine integrations and provides the
|
The `template` platform creates fans that combine integrations and provides the
|
||||||
ability to run scripts or invoke services for each of the turn_on, turn_off, set_speed,
|
ability to run scripts or invoke services for each of the `turn_on`, `turn_off`, `set_speed`,
|
||||||
set_oscillating, and set_direction commands of a fan.
|
`set_oscillating`, and `set_direction` commands of a fan.
|
||||||
|
|
||||||
To enable Template Fans in your installation, add the following to your
|
To enable Template Fans in your installation, add the following to your
|
||||||
`configuration.yaml` file:
|
`configuration.yaml` file:
|
||||||
@ -68,7 +68,7 @@ fan:
|
|||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
value_template:
|
value_template:
|
||||||
description: "Defines a template to get the state of the fan. Valid value: 'on'/'off'"
|
description: "Defines a template to get the state of the fan. Valid values: `on`, `off`"
|
||||||
required: true
|
required: true
|
||||||
type: template
|
type: template
|
||||||
speed_template:
|
speed_template:
|
||||||
@ -76,11 +76,11 @@ fan:
|
|||||||
required: false
|
required: false
|
||||||
type: template
|
type: template
|
||||||
oscillating_template:
|
oscillating_template:
|
||||||
description: "Defines a template to get the osc state of the fan. Valid value: true/false"
|
description: "Defines a template to get the osc state of the fan. Valid values: `true`, `false`"
|
||||||
required: false
|
required: false
|
||||||
type: template
|
type: template
|
||||||
direction_template:
|
direction_template:
|
||||||
description: "Defines a template to get the direction of the fan. Valid value: 'forward'/'reverse'"
|
description: "Defines a template to get the direction of the fan. Valid values: `forward`, `reverse`"
|
||||||
required: false
|
required: false
|
||||||
type: template
|
type: template
|
||||||
availability_template:
|
availability_template:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user