From 530f494df8eb07c54f931fec289e6f67f3387277 Mon Sep 17 00:00:00 2001 From: Philip Allgaier Date: Tue, 17 Nov 2020 15:46:00 +0100 Subject: [PATCH] Improve gallery hui-light-card (#7684) --- gallery/src/demos/demo-hui-light-card.ts | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/gallery/src/demos/demo-hui-light-card.ts b/gallery/src/demos/demo-hui-light-card.ts index 552bb2b0df..97808f930a 100644 --- a/gallery/src/demos/demo-hui-light-card.ts +++ b/gallery/src/demos/demo-hui-light-card.ts @@ -8,29 +8,43 @@ import "../components/demo-cards"; const ENTITIES = [ getEntity("light", "bed_light", "on", { friendly_name: "Bed Light", - brightness: 130, + brightness: 255, }), - getEntity("light", "dim", "off", { + getEntity("light", "dim_on", "on", { + friendly_name: "Dining Room", + supported_features: 1, + brightness: 100, + }), + getEntity("light", "dim_off", "off", { + friendly_name: "Dining Room", supported_features: 1, }), getEntity("light", "unavailable", "unavailable", { + friendly_name: "Lost Light", supported_features: 1, }), ]; const CONFIGS = [ { - heading: "Basic example", + heading: "Switchable Light", config: ` - type: light entity: light.bed_light `, }, { - heading: "Dim", + heading: "Dimmable Light On", config: ` - type: light - entity: light.dim + entity: light.dim_on + `, + }, + { + heading: "Dimmable Light Off", + config: ` +- type: light + entity: light.dim_off `, }, {