Update template fan to provide guidance on how to convert from speeds (#16963)

This commit is contained in:
J. Nick Koston 2021-03-12 00:42:45 -10:00 committed by GitHub
parent 23774f95f3
commit c3f1aa9326
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,7 +119,7 @@ fan:
required: false
type: action
preset_modes:
description: List of preset modes the fan is capable of.
description: List of preset modes the fan is capable of. This is an arbitrary list of strings and must not contain any speeds.
required: false
type: [string, list]
default: []
@ -129,3 +129,12 @@ fan:
type: integer
default: 100
{% endconfiguration %}
## Converting from speeds to percentage
When converting a fan with 3 speeds from the old fan entity model, the following percentages can be used:
0 - `off`
33 - `low`
66 - `medium`
100 - `high`