From 5f2b251d0ae830d3e51fe849ebb0b7ec5c1928d1 Mon Sep 17 00:00:00 2001 From: Tucker Kern Date: Wed, 20 Mar 2024 02:33:57 -0600 Subject: [PATCH] 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 --- source/dashboards/features.markdown | 36 ++++++++++++++++++ .../dashboards/features/fan_preset_modes.png | Bin 0 -> 2930 bytes 2 files changed, 36 insertions(+) create mode 100644 source/images/dashboards/features/fan_preset_modes.png diff --git a/source/dashboards/features.markdown b/source/dashboards/features.markdown index 144d11b6937..7b067779159 100644 --- a/source/dashboards/features.markdown +++ b/source/dashboards/features.markdown @@ -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). + +

+ Screenshot of the tile card with the fan preset modes feature + Screenshot of the tile card with the fan preset modes feature +

+ +```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). diff --git a/source/images/dashboards/features/fan_preset_modes.png b/source/images/dashboards/features/fan_preset_modes.png new file mode 100644 index 0000000000000000000000000000000000000000..25179dd761781ed5e4bb0c5f9882b0d88509f423 GIT binary patch literal 2930 zcmZ`*cRbtc8c(SnRimw0ltg3Htk|tu6=KB5(OzoCICNOirL-uGLt7$6P&JBbdrQrh zD+#sQpH;Ke2&q`LBZLUKaqj1y``3LxpZ8hsdcM#5yr1Vya&oX15|9=Efj~kw2ul!JvBA8u&}^pvpF2j+S=O8%*@Wt&IWsLc84{-wKK?Ie%oMn(YLnu_G#O@ z{R}2+Z=cF!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