mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 17:26:42 +00:00
Improve gallery hui-light-card (#7684)
This commit is contained in:
parent
8fd1f35c59
commit
530f494df8
@ -8,29 +8,43 @@ import "../components/demo-cards";
|
|||||||
const ENTITIES = [
|
const ENTITIES = [
|
||||||
getEntity("light", "bed_light", "on", {
|
getEntity("light", "bed_light", "on", {
|
||||||
friendly_name: "Bed Light",
|
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,
|
supported_features: 1,
|
||||||
}),
|
}),
|
||||||
getEntity("light", "unavailable", "unavailable", {
|
getEntity("light", "unavailable", "unavailable", {
|
||||||
|
friendly_name: "Lost Light",
|
||||||
supported_features: 1,
|
supported_features: 1,
|
||||||
}),
|
}),
|
||||||
];
|
];
|
||||||
|
|
||||||
const CONFIGS = [
|
const CONFIGS = [
|
||||||
{
|
{
|
||||||
heading: "Basic example",
|
heading: "Switchable Light",
|
||||||
config: `
|
config: `
|
||||||
- type: light
|
- type: light
|
||||||
entity: light.bed_light
|
entity: light.bed_light
|
||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
heading: "Dim",
|
heading: "Dimmable Light On",
|
||||||
config: `
|
config: `
|
||||||
- type: light
|
- type: light
|
||||||
entity: light.dim
|
entity: light.dim_on
|
||||||
|
`,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
heading: "Dimmable Light Off",
|
||||||
|
config: `
|
||||||
|
- type: light
|
||||||
|
entity: light.dim_off
|
||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user