From 5267c6fdfc82fe91dfb426684a18110d975de49d Mon Sep 17 00:00:00 2001 From: pcan08 <155250376+pcan08@users.noreply.github.com> Date: Mon, 11 Aug 2025 19:40:32 +0200 Subject: [PATCH] Add fan direction feature in gallery (#26499) --- gallery/src/pages/lovelace/tile-card.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/gallery/src/pages/lovelace/tile-card.ts b/gallery/src/pages/lovelace/tile-card.ts index ecfa9ca0b3..9a89b0c568 100644 --- a/gallery/src/pages/lovelace/tile-card.ts +++ b/gallery/src/pages/lovelace/tile-card.ts @@ -11,6 +11,7 @@ import { provideHass } from "../../../../src/fake_data/provide_hass"; import "../../components/demo-cards"; import { mockIcons } from "../../../../demo/src/stubs/icons"; import { ClimateEntityFeature } from "../../../../src/data/climate"; +import { FanEntityFeature } from "../../../../src/data/fan"; const ENTITIES = [ getEntity("switch", "tv_outlet", "on", { @@ -100,6 +101,12 @@ const ENTITIES = [ ClimateEntityFeature.FAN_MODE + ClimateEntityFeature.TARGET_TEMPERATURE_RANGE, }), + getEntity("fan", "fan_direction", "on", { + friendly_name: "Ceiling fan", + device_class: "fan", + direction: "reverse", + supported_features: [FanEntityFeature.DIRECTION], + }), ]; const CONFIGS = [ @@ -261,6 +268,15 @@ const CONFIGS = [ - type: target-temperature `, }, + { + heading: "Fan direction feature", + config: ` +- type: tile + entity: fan.fan_direction + features: + - type: fan-direction + `, + }, ]; @customElement("demo-lovelace-tile-card")