From dda6ef637fdd0767d9cc24ce0c298a33a1fd1251 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 18 Feb 2021 21:06:54 -1000 Subject: [PATCH] Update template fan to include `speed_count` (#16562) Co-authored-by: Franck Nijhof --- source/_integrations/fan.template.markdown | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/_integrations/fan.template.markdown b/source/_integrations/fan.template.markdown index 86a57d06443..694c3dcd84b 100644 --- a/source/_integrations/fan.template.markdown +++ b/source/_integrations/fan.template.markdown @@ -50,6 +50,7 @@ fan: service: script.fan_direction data: direction: "{{ direction }}" + speed_count: 6 preset_modes: - 'auto' - 'smart' @@ -122,4 +123,9 @@ fan: required: false type: [string, list] 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 %}