Use shorter name for dashboard (#19980)

This commit is contained in:
Paul Bottein 2024-03-04 19:07:37 +01:00 committed by GitHub
parent 1b7742ef7f
commit 42aa18ac16
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 19 deletions

View File

@ -232,6 +232,7 @@ export const demoEntitiesSections: DemoConfig["entities"] = () =>
unit_of_measurement: "gCO2eq/kWh", unit_of_measurement: "gCO2eq/kWh",
attribution: "Data provided by Electricity Maps", attribution: "Data provided by Electricity Maps",
friendly_name: "Electricity Maps CO2 intensity", friendly_name: "Electricity Maps CO2 intensity",
icon: "mdi:molecule-co2",
}, },
}, },
"sun.sun": { "sun.sun": {
@ -250,23 +251,14 @@ export const demoEntitiesSections: DemoConfig["entities"] = () =>
friendly_name: "Sun", friendly_name: "Sun",
}, },
}, },
"sensor.moon_phase": { "sensor.rain": {
entity_id: "sensor.moon_phase", entity_id: "sensor.moon_phase",
state: "waning_crescent", state: "7.2",
attributes: { attributes: {
options: [ state_class: "total_increasing",
"new_moon", unit_of_measurement: "mm",
"waxing_crescent", device_class: "precipitation",
"first_quarter", friendly_name: "Rain",
"waxing_gibbous",
"full_moon",
"waning_gibbous",
"last_quarter",
"waning_crescent",
],
device_class: "enum",
icon: "mdi:moon-waning-crescent",
friendly_name: "Moon Phase",
}, },
}, },
"climate.ground_floor": { "climate.ground_floor": {

View File

@ -116,7 +116,7 @@ export const demoLovelaceSections: DemoConfig["lovelace"] = () => ({
{ {
type: "tile", type: "tile",
entity: "sensor.tesla_wall_connector_session_energy", entity: "sensor.tesla_wall_connector_session_energy",
name: "EV last charge", name: "Last charge",
color: "green", color: "green",
}, },
{ {
@ -155,9 +155,8 @@ export const demoLovelaceSections: DemoConfig["lovelace"] = () => ({
}, },
{ {
type: "tile", type: "tile",
entity: "sensor.moon_phase", entity: "sensor.rain",
color: "indigo", color: "blue",
name: "Moon",
}, },
{ {
features: [ features: [
@ -166,6 +165,7 @@ export const demoLovelaceSections: DemoConfig["lovelace"] = () => ({
}, },
], ],
type: "tile", type: "tile",
name: "Downstairs",
entity: "climate.ground_floor", entity: "climate.ground_floor",
state_content: ["preset_mode", "current_temperature"], state_content: ["preset_mode", "current_temperature"],
}, },
@ -176,6 +176,7 @@ export const demoLovelaceSections: DemoConfig["lovelace"] = () => ({
}, },
], ],
type: "tile", type: "tile",
name: "Upstairs",
entity: "climate.first_floor", entity: "climate.first_floor",
state_content: ["preset_mode", "current_temperature"], state_content: ["preset_mode", "current_temperature"],
}, },