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

View File

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