Add fan preset modes feature (#31191)

* Update preset mode feature

* Update features documentation to reflect that fan preset modes are distinct from climate preset modes

* Add screenshot of fan preset modes
This commit is contained in:
Tucker Kern 2024-03-20 02:33:57 -06:00 committed by GitHub
parent 90900be684
commit 5f2b251d0a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 36 additions and 0 deletions

View File

@ -233,6 +233,42 @@ type:
type: string
{% endconfiguration %}
## Fan preset modes
Widget that displays buttons or icons to control the preset mode for a [fan](/integrations/fan).
<p class='img'>
<img src='/images/dashboards/features/fan_preset_modes.png' alt='Screenshot of the tile card with the fan preset modes feature'>
Screenshot of the tile card with the fan preset modes feature
</p>
```yaml
features:
- type: "fan-preset-modes"
style: "icons"
preset_modes:
- auto
- smart
- sleep
- 'on'
```
{% configuration features %}
type:
required: true
description: "`fan-preset-modes`"
type: string
style:
required: false
description: "How the preset modes should be displayed. It can be either `dropdown` or `icons`."
type: string
default: dropdown
preset_modes:
required: true
description: List of preset modes to show on the card. The list can contain any supported preset modes.
type: list
{% endconfiguration %}
## Fan speed
Widget that displays speed controls for a [fan](/integrations/fan).

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB