More "state_color" variants for gallery + wording tweaks (#14641)

This commit is contained in:
Philip Allgaier 2022-12-08 15:05:09 +01:00 committed by GitHub
parent b581b95d9d
commit feddbdba96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 41 additions and 6 deletions

View File

@ -1,5 +1,5 @@
--- ---
title: Alerts title: Alert
subtitle: An alert displays a short, important message in a way that attracts the user's attention without interrupting the user's task. subtitle: An alert displays a short, important message in a way that attracts the user's attention without interrupting the user's task.
--- ---

View File

@ -1,3 +1,4 @@
--- ---
title: Progress Bars title: Bar
subtitle: Can be used to communicate progress of a task.
--- ---

View File

@ -1,5 +1,5 @@
--- ---
title: Selectors title: Selector
--- ---
See the website for [list of available selectors](https://www.home-assistant.io/docs/blueprint/selectors/). See the website for [list of available selectors](https://www.home-assistant.io/docs/blueprint/selectors/).

View File

@ -142,6 +142,25 @@ const CONFIGS = [
heading: "Basic", heading: "Basic",
config: ` config: `
- type: entities - type: entities
entities:
- scene.romantic_lights
- device_tracker.demo_paulus
- cover.kitchen_window
- group.kitchen
- lock.kitchen_door
- light.bed_light
- light.non_existing
- climate.ecobee
- input_number.number
- sensor.humidity
- text.message
`,
},
{
heading: "With enabled state color",
config: `
- type: entities
state_color: true
entities: entities:
- scene.romantic_lights - scene.romantic_lights
- device_tracker.demo_paulus - device_tracker.demo_paulus

View File

@ -35,11 +35,11 @@ const CONFIGS = [
`, `,
}, },
{ {
heading: "Without State", heading: "With State",
config: ` config: `
- type: button - type: button
entity: light.bed_light entity: light.bed_light
show_state: false show_state: true
`, `,
}, },
{ {

View File

@ -62,6 +62,21 @@ const CONFIGS = [
heading: "Basic example", heading: "Basic example",
config: ` config: `
- type: glance - type: glance
entities:
- device_tracker.demo_paulus
- media_player.living_room
- sun.sun
- cover.kitchen_window
- light.kitchen_lights
- lock.kitchen_door
- light.ceiling_lights
`,
},
{
heading: "No state colors",
config: `
- type: glance
state_color: false
entities: entities:
- device_tracker.demo_paulus - device_tracker.demo_paulus
- media_player.living_room - media_player.living_room

View File

@ -1,3 +1,3 @@
--- ---
title: Grid And Stack Card title: Grid and Stack Card
--- ---