mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-13 20:36:52 +00:00
Update template fan to include speed_count
(#16562)
Co-authored-by: Franck Nijhof <git@frenck.dev>
This commit is contained in:
parent
97290f831c
commit
dda6ef637f
@ -50,6 +50,7 @@ fan:
|
|||||||
service: script.fan_direction
|
service: script.fan_direction
|
||||||
data:
|
data:
|
||||||
direction: "{{ direction }}"
|
direction: "{{ direction }}"
|
||||||
|
speed_count: 6
|
||||||
preset_modes:
|
preset_modes:
|
||||||
- 'auto'
|
- 'auto'
|
||||||
- 'smart'
|
- 'smart'
|
||||||
@ -122,4 +123,9 @@ fan:
|
|||||||
required: false
|
required: false
|
||||||
type: [string, list]
|
type: [string, list]
|
||||||
default: []
|
default: []
|
||||||
|
speed_count:
|
||||||
|
description: The number of speeds the fan supports. Used to calculate the percentage step for the `fan.increase_speed` and `fan.decrease_speed` services.
|
||||||
|
required: false
|
||||||
|
type: integer
|
||||||
|
default: 100
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user