mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-13 12:26:35 +00:00
Various demo tweaks + cleanups (#8229)
This commit is contained in:
parent
a3339c9d5f
commit
831b9da0cf
@ -54,6 +54,8 @@ export const demoEntitiesArsaboo: DemoConfig["entities"] = (localize) =>
|
|||||||
state: "21",
|
state: "21",
|
||||||
attributes: {
|
attributes: {
|
||||||
friendly_name: "Living room temperature",
|
friendly_name: "Living room temperature",
|
||||||
|
device_class: "temperature",
|
||||||
|
unit_of_measurement: "°C",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"sensor.study_temp_rounded": {
|
"sensor.study_temp_rounded": {
|
||||||
@ -61,6 +63,8 @@ export const demoEntitiesArsaboo: DemoConfig["entities"] = (localize) =>
|
|||||||
state: "23",
|
state: "23",
|
||||||
attributes: {
|
attributes: {
|
||||||
friendly_name: "Study temperature",
|
friendly_name: "Study temperature",
|
||||||
|
device_class: "temperature",
|
||||||
|
unit_of_measurement: "°C",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"sensor.living_room": {
|
"sensor.living_room": {
|
||||||
@ -261,7 +265,7 @@ export const demoEntitiesArsaboo: DemoConfig["entities"] = (localize) =>
|
|||||||
entity_id: "light.kitchen_lights",
|
entity_id: "light.kitchen_lights",
|
||||||
state: "off",
|
state: "off",
|
||||||
attributes: {
|
attributes: {
|
||||||
friendly_name: "Kitchen lights",
|
friendly_name: "Kitchen Lights",
|
||||||
supported_features: 1,
|
supported_features: 1,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -484,7 +488,7 @@ export const demoEntitiesArsaboo: DemoConfig["entities"] = (localize) =>
|
|||||||
attributes: {
|
attributes: {
|
||||||
min_mireds: 111,
|
min_mireds: 111,
|
||||||
max_mireds: 400,
|
max_mireds: 400,
|
||||||
friendly_name: "Garage lights",
|
friendly_name: "Garage Lights",
|
||||||
supported_features: 55,
|
supported_features: 55,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -12,6 +12,7 @@ export const demoLovelaceArsaboo: DemoConfig["lovelace"] = (localize) => ({
|
|||||||
{
|
{
|
||||||
type: "entities",
|
type: "entities",
|
||||||
title: localize("ui.panel.page-demo.config.arsaboo.labels.lights"),
|
title: localize("ui.panel.page-demo.config.arsaboo.labels.lights"),
|
||||||
|
state_color: true,
|
||||||
entities: [
|
entities: [
|
||||||
{
|
{
|
||||||
entity: "light.kitchen_lights",
|
entity: "light.kitchen_lights",
|
||||||
|
@ -653,7 +653,7 @@ export const demoEntitiesJimpower: DemoConfig["entities"] = () =>
|
|||||||
entity_id: "binary_sensor.smoke_sensor_158d0001b8ddc7",
|
entity_id: "binary_sensor.smoke_sensor_158d0001b8ddc7",
|
||||||
state: "off",
|
state: "off",
|
||||||
attributes: {
|
attributes: {
|
||||||
Density: 0,
|
density: 0,
|
||||||
battery_level: 59,
|
battery_level: 59,
|
||||||
friendly_name: "Downstairs Smoke Detector",
|
friendly_name: "Downstairs Smoke Detector",
|
||||||
device_class: "smoke",
|
device_class: "smoke",
|
||||||
@ -663,7 +663,7 @@ export const demoEntitiesJimpower: DemoConfig["entities"] = () =>
|
|||||||
entity_id: "binary_sensor.smoke_sensor_158d0001b8deba",
|
entity_id: "binary_sensor.smoke_sensor_158d0001b8deba",
|
||||||
state: "off",
|
state: "off",
|
||||||
attributes: {
|
attributes: {
|
||||||
Density: 0,
|
density: 0,
|
||||||
battery_level: 65,
|
battery_level: 65,
|
||||||
friendly_name: "Upstairs Smoke Detector",
|
friendly_name: "Upstairs Smoke Detector",
|
||||||
device_class: "smoke",
|
device_class: "smoke",
|
||||||
|
@ -3,49 +3,7 @@ import { DemoConfig } from "../types";
|
|||||||
|
|
||||||
export const demoLovelaceJimpower: DemoConfig["lovelace"] = () => ({
|
export const demoLovelaceJimpower: DemoConfig["lovelace"] = () => ({
|
||||||
name: "Kingia Castle",
|
name: "Kingia Castle",
|
||||||
resources: [
|
resources: [],
|
||||||
// {
|
|
||||||
// url: "/local/custom_ui/dark-sky-weather-card.js?v=4",
|
|
||||||
// type: "js",
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// url: "/local/custom_ui/mini-media-player-bundle.js?v=0.9.8",
|
|
||||||
// type: "module",
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// url: "/local/custom_ui/tracker-card.js?v=0.1.5",
|
|
||||||
// type: "js",
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// url: "/local/custom_ui/surveillance-card.js?v=0.0.1",
|
|
||||||
// type: "module",
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// url: "/local/custom_ui/mini-graph-card-bundle.js?v=0.1.0",
|
|
||||||
// type: "module",
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// url: "/local/custom_ui/slider-entity-row.js?v=d6da75",
|
|
||||||
// type: "js",
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// url:
|
|
||||||
// "/local/custom_ui/compact-custom-header/compact-custom-header.js?v=0.2.7",
|
|
||||||
// type: "js",
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// url: "/local/custom_ui/waze-card.js?v=1.1.1",
|
|
||||||
// type: "js",
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// url: "/local/custom_ui/circle-sensor-card.js?v=1.2.0",
|
|
||||||
// type: "module",
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// url: "/local/custom_ui/monster-card.js?v=0.2.3",
|
|
||||||
// type: "js",
|
|
||||||
// },
|
|
||||||
],
|
|
||||||
views: [
|
views: [
|
||||||
{
|
{
|
||||||
cards: [
|
cards: [
|
||||||
@ -603,89 +561,6 @@ export const demoLovelaceJimpower: DemoConfig["lovelace"] = () => ({
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
cards: [
|
cards: [
|
||||||
// {
|
|
||||||
// style: {
|
|
||||||
// "background-image": 'url("/assets/jimpower/cardbackK.png")',
|
|
||||||
// "background-size": "100% 400px",
|
|
||||||
// "box-shadow": "3px 3px rgba(0,0,0,0.4)",
|
|
||||||
// "background-repeat": "no-repeat",
|
|
||||||
// color: "#999999",
|
|
||||||
// "border-radius": "20px",
|
|
||||||
// border: "solid 1px rgba(100,100,100,0.3)",
|
|
||||||
// "background-color": "rgba(50,50,50,0.3)",
|
|
||||||
// },
|
|
||||||
// type: "custom:card-modder",
|
|
||||||
// card: {
|
|
||||||
// entity_visibility: "sensor.dark_sky_visibility",
|
|
||||||
// entity_sun: "sun.sun",
|
|
||||||
// entity_daily_summary:
|
|
||||||
// "sensor.bom_gc_forecast_detailed_summary_0",
|
|
||||||
// entity_temperature: "sensor.bom_temp",
|
|
||||||
// entity_forecast_high_temp_3:
|
|
||||||
// "sensor.bom_gc_forecast_max_temp_c_3",
|
|
||||||
// entity_forecast_high_temp_2:
|
|
||||||
// "sensor.bom_gc_forecast_max_temp_c_2",
|
|
||||||
// entity_forecast_high_temp_5:
|
|
||||||
// "sensor.bom_gc_forecast_max_temp_c_5",
|
|
||||||
// entity_forecast_high_temp_4:
|
|
||||||
// "sensor.bom_gc_forecast_max_temp_c_4",
|
|
||||||
// entity_wind_speed: "sensor.bom_wind_sp",
|
|
||||||
// entity_forecast_icon_4: "sensor.dark_sky_icon_4",
|
|
||||||
// entity_forecast_icon_5: "sensor.dark_sky_icon_5",
|
|
||||||
// entity_forecast_icon_2: "sensor.dark_sky_icon_2",
|
|
||||||
// entity_forecast_icon_3: "sensor.dark_sky_icon_3",
|
|
||||||
// entity_forecast_icon_1: "sensor.dark_sky_icon_1",
|
|
||||||
// entity_forecast_high_temp_1:
|
|
||||||
// "sensor.bom_gc_forecast_max_temp_c_1",
|
|
||||||
// entity_wind_bearing: "sensor.bom_wind_bear",
|
|
||||||
// entity_forecast_low_temp_2:
|
|
||||||
// "sensor.bom_gc_forecast_min_temp_c_2",
|
|
||||||
// entity_forecast_low_temp_3:
|
|
||||||
// "sensor.bom_gc_forecast_min_temp_c_3",
|
|
||||||
// entity_pressure: "sensor.bom_pres",
|
|
||||||
// entity_forecast_low_temp_1:
|
|
||||||
// "sensor.bom_gc_forecast_min_temp_c_1",
|
|
||||||
// entity_forecast_low_temp_4:
|
|
||||||
// "sensor.bom_gc_forecast_min_temp_c_4",
|
|
||||||
// entity_forecast_low_temp_5:
|
|
||||||
// "sensor.bom_gc_forecast_min_temp_c_5",
|
|
||||||
// entity_humidity: "sensor.bom_humd",
|
|
||||||
// type: "custom:dark-sky-weather-card",
|
|
||||||
// entity_current_conditions: "sensor.dark_sky_icon",
|
|
||||||
// },
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// style: {
|
|
||||||
// "background-image": 'url("/assets/jimpower/home/waze_5.png")',
|
|
||||||
// "background-size": "100% 400px",
|
|
||||||
// "box-shadow": "3px 3px rgba(0,0,0,0.4)",
|
|
||||||
// "background-repeat": "no-repeat",
|
|
||||||
// "border-radius": "20px",
|
|
||||||
// border: "solid 1px rgba(100,100,100,0.3)",
|
|
||||||
// "background-color": "rgba(50,50,50,0.3)",
|
|
||||||
// },
|
|
||||||
// type: "custom:card-modder",
|
|
||||||
// card: {
|
|
||||||
// entities: [
|
|
||||||
// {
|
|
||||||
// name: "James",
|
|
||||||
// zone: "zone.home",
|
|
||||||
// entity: "sensor.james_to_home",
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// name: "Tina",
|
|
||||||
// zone: "zone.home",
|
|
||||||
// entity: "sensor.tina_to_home",
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// name: "Work",
|
|
||||||
// zone: "zone.powertec",
|
|
||||||
// entity: "sensor.commute_to_work",
|
|
||||||
// },
|
|
||||||
// ],
|
|
||||||
// type: "custom:waze-card",
|
|
||||||
// },
|
|
||||||
// },
|
|
||||||
{
|
{
|
||||||
style: {
|
style: {
|
||||||
"border-radius": "20px",
|
"border-radius": "20px",
|
||||||
@ -722,46 +597,8 @@ export const demoLovelaceJimpower: DemoConfig["lovelace"] = () => ({
|
|||||||
],
|
],
|
||||||
type: "vertical-stack",
|
type: "vertical-stack",
|
||||||
},
|
},
|
||||||
// {
|
|
||||||
// cards: [
|
|
||||||
// {
|
|
||||||
// style: {
|
|
||||||
// "border-radius": "20px",
|
|
||||||
// color: "#999999",
|
|
||||||
// "box-shadow": "3px 3px rgba(0,0,0,0.4)",
|
|
||||||
// border: "solid 1px rgba(100,100,100,0.3)",
|
|
||||||
// },
|
|
||||||
// type: "custom:card-modder",
|
|
||||||
// card: {
|
|
||||||
// type: "picture-entity",
|
|
||||||
// entity: "camera.bom_radar",
|
|
||||||
// },
|
|
||||||
// },
|
|
||||||
// // {
|
|
||||||
// // style: {
|
|
||||||
// // "background-image": 'url("/assets/jimpower/cardbackK.png")',
|
|
||||||
// // "background-size": "100% 525px",
|
|
||||||
// // "box-shadow": "3px 3px rgba(0,0,0,0.4)",
|
|
||||||
// // "background-repeat": "no-repeat",
|
|
||||||
// // color: "#999999",
|
|
||||||
// // "border-radius": "20px",
|
|
||||||
// // border: "solid 1px rgba(100,100,100,0.3)",
|
|
||||||
// // "background-color": "rgba(50,50,50,0.3)",
|
|
||||||
// // },
|
|
||||||
// // type: "custom:card-modder",
|
|
||||||
// // card: {
|
|
||||||
// // title: null,
|
|
||||||
// // type: "custom:tracker-card",
|
|
||||||
// // trackers: [
|
|
||||||
// // "sensor.custom_card_tracker",
|
|
||||||
// // "sensor.custom_component_tracker",
|
|
||||||
// // ],
|
|
||||||
// // },
|
|
||||||
// // },
|
|
||||||
// ],
|
|
||||||
// type: "vertical-stack",
|
|
||||||
// },
|
|
||||||
],
|
],
|
||||||
|
path: "home",
|
||||||
icon: "mdi:castle",
|
icon: "mdi:castle",
|
||||||
name: "Home",
|
name: "Home",
|
||||||
background:
|
background:
|
||||||
@ -881,26 +718,13 @@ export const demoLovelaceJimpower: DemoConfig["lovelace"] = () => ({
|
|||||||
card: {
|
card: {
|
||||||
image: "/assets/jimpower/security/air_8.jpg",
|
image: "/assets/jimpower/security/air_8.jpg",
|
||||||
elements: [
|
elements: [
|
||||||
{
|
|
||||||
image:
|
|
||||||
"https://www.airvisual.com/assets/aqi/ic-face-1-green.svg",
|
|
||||||
type: "image",
|
|
||||||
style: {
|
|
||||||
width: "80px",
|
|
||||||
top: "30%",
|
|
||||||
left: "12%",
|
|
||||||
transform: "none",
|
|
||||||
height: "80px",
|
|
||||||
},
|
|
||||||
entity: "sensor.us_air_pollution_level_2",
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
style: {
|
style: {
|
||||||
color: "hsl(120, 41%, 39%)",
|
color: "hsl(120, 41%, 39%)",
|
||||||
top: "50%",
|
top: "50%",
|
||||||
"font-weight": 600,
|
"font-weight": 600,
|
||||||
"font-size": "20px",
|
"font-size": "50px",
|
||||||
left: "44%",
|
left: "30%",
|
||||||
},
|
},
|
||||||
type: "state-label",
|
type: "state-label",
|
||||||
entity: "sensor.us_air_pollution_level_2",
|
entity: "sensor.us_air_pollution_level_2",
|
||||||
@ -920,7 +744,7 @@ export const demoLovelaceJimpower: DemoConfig["lovelace"] = () => ({
|
|||||||
style: {
|
style: {
|
||||||
color: "white",
|
color: "white",
|
||||||
top: "80%",
|
top: "80%",
|
||||||
left: "52%",
|
left: "48%",
|
||||||
},
|
},
|
||||||
type: "state-icon",
|
type: "state-icon",
|
||||||
entity: "sensor.us_main_pollutant_2",
|
entity: "sensor.us_main_pollutant_2",
|
||||||
@ -1411,6 +1235,7 @@ export const demoLovelaceJimpower: DemoConfig["lovelace"] = () => ({
|
|||||||
type: "vertical-stack",
|
type: "vertical-stack",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
path: "security",
|
||||||
icon: "hass:shield-home",
|
icon: "hass:shield-home",
|
||||||
name: "Security",
|
name: "Security",
|
||||||
background:
|
background:
|
||||||
|
@ -101,7 +101,12 @@ export const demoEntitiesKernehed: DemoConfig["entities"] = () =>
|
|||||||
"sensor.zwave_battery_front_door": {
|
"sensor.zwave_battery_front_door": {
|
||||||
entity_id: "sensor.zwave_battery_front_door",
|
entity_id: "sensor.zwave_battery_front_door",
|
||||||
state: "63",
|
state: "63",
|
||||||
attributes: { friendly_name: "Battery", icon: "mdi:battery-60" },
|
attributes: {
|
||||||
|
friendly_name: "Battery",
|
||||||
|
icon: "mdi:battery-60",
|
||||||
|
unit_of_measurement: "%",
|
||||||
|
device_class: "battery",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
"sensor.oskar_devices": {
|
"sensor.oskar_devices": {
|
||||||
entity_id: "sensor.oskar_devices",
|
entity_id: "sensor.oskar_devices",
|
||||||
@ -164,7 +169,7 @@ export const demoEntitiesKernehed: DemoConfig["entities"] = () =>
|
|||||||
},
|
},
|
||||||
"input_select.christmas_pattern": {
|
"input_select.christmas_pattern": {
|
||||||
entity_id: "input_select.christmas_pattern",
|
entity_id: "input_select.christmas_pattern",
|
||||||
state: "None",
|
state: "Rainbow",
|
||||||
attributes: {
|
attributes: {
|
||||||
options: [
|
options: [
|
||||||
"None",
|
"None",
|
||||||
@ -186,7 +191,7 @@ export const demoEntitiesKernehed: DemoConfig["entities"] = () =>
|
|||||||
},
|
},
|
||||||
"input_select.christmas_palette": {
|
"input_select.christmas_palette": {
|
||||||
entity_id: "input_select.christmas_palette",
|
entity_id: "input_select.christmas_palette",
|
||||||
state: "None",
|
state: "Party",
|
||||||
attributes: {
|
attributes: {
|
||||||
options: [
|
options: [
|
||||||
"None",
|
"None",
|
||||||
@ -457,7 +462,7 @@ export const demoEntitiesKernehed: DemoConfig["entities"] = () =>
|
|||||||
state: "0.0",
|
state: "0.0",
|
||||||
attributes: {
|
attributes: {
|
||||||
unit_of_measurement: "kB/s",
|
unit_of_measurement: "kB/s",
|
||||||
friendly_name: "Nedladdning",
|
friendly_name: "Downloading",
|
||||||
icon: "mdi:file-download",
|
icon: "mdi:file-download",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -471,7 +476,7 @@ export const demoEntitiesKernehed: DemoConfig["entities"] = () =>
|
|||||||
state: "0.0",
|
state: "0.0",
|
||||||
attributes: {
|
attributes: {
|
||||||
unit_of_measurement: "kB/s",
|
unit_of_measurement: "kB/s",
|
||||||
friendly_name: "Uppladdning",
|
friendly_name: "Uploading",
|
||||||
icon: "mdi:file-upload",
|
icon: "mdi:file-upload",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -2,44 +2,7 @@ import { DemoConfig } from "../types";
|
|||||||
|
|
||||||
export const demoLovelaceKernehed: DemoConfig["lovelace"] = () => ({
|
export const demoLovelaceKernehed: DemoConfig["lovelace"] = () => ({
|
||||||
name: "Hem",
|
name: "Hem",
|
||||||
resources: [
|
resources: [],
|
||||||
// {
|
|
||||||
// url: "/local/custom-lovelace/monster-card.js",
|
|
||||||
// type: "js",
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// url: "/local/custom-lovelace/mini-media-player-bundle.js?v=0.9.8",
|
|
||||||
// type: "module",
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// url: "/local/custom-lovelace/slideshow-card.js?=1.1.0",
|
|
||||||
// type: "js",
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// url: "/local/custom-lovelace/fold-entity-row.js?v=3ae2c4",
|
|
||||||
// type: "js",
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// url: "/local/custom-lovelace/swipe-card/swipe-card.js?v=2.0.0",
|
|
||||||
// type: "module",
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// url: "/local/custom-lovelace/upcoming-media-card/upcoming-media-card.js",
|
|
||||||
// type: "js",
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// url: "/local/custom-lovelace/tracker-card.js?v=0.1.5",
|
|
||||||
// type: "js",
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// url: "/local/custom-lovelace/card-tools.js?v=6ce5d0",
|
|
||||||
// type: "js",
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// url: "/local/custom-lovelace/krisinfo.js?=0.0.1",
|
|
||||||
// type: "js",
|
|
||||||
// },
|
|
||||||
],
|
|
||||||
views: [
|
views: [
|
||||||
{
|
{
|
||||||
cards: [
|
cards: [
|
||||||
@ -64,7 +27,7 @@ export const demoLovelaceKernehed: DemoConfig["lovelace"] = () => ({
|
|||||||
style: {
|
style: {
|
||||||
color: "white",
|
color: "white",
|
||||||
top: "93%",
|
top: "93%",
|
||||||
left: "90%",
|
left: "85%",
|
||||||
},
|
},
|
||||||
type: "state-label",
|
type: "state-label",
|
||||||
entity: "sensor.battery_oskar",
|
entity: "sensor.battery_oskar",
|
||||||
@ -87,7 +50,7 @@ export const demoLovelaceKernehed: DemoConfig["lovelace"] = () => ({
|
|||||||
{
|
{
|
||||||
style: {
|
style: {
|
||||||
color: "white",
|
color: "white",
|
||||||
top: "92%",
|
top: "93%",
|
||||||
left: "20%",
|
left: "20%",
|
||||||
},
|
},
|
||||||
type: "state-label",
|
type: "state-label",
|
||||||
@ -96,8 +59,8 @@ export const demoLovelaceKernehed: DemoConfig["lovelace"] = () => ({
|
|||||||
{
|
{
|
||||||
style: {
|
style: {
|
||||||
color: "white",
|
color: "white",
|
||||||
top: "92%",
|
top: "93%",
|
||||||
left: "90%",
|
left: "85%",
|
||||||
},
|
},
|
||||||
type: "state-label",
|
type: "state-label",
|
||||||
entity: "sensor.battery_bella",
|
entity: "sensor.battery_bella",
|
||||||
@ -105,7 +68,7 @@ export const demoLovelaceKernehed: DemoConfig["lovelace"] = () => ({
|
|||||||
{
|
{
|
||||||
style: {
|
style: {
|
||||||
color: "white",
|
color: "white",
|
||||||
top: "92%",
|
top: "93%",
|
||||||
left: "55%",
|
left: "55%",
|
||||||
},
|
},
|
||||||
type: "state-label",
|
type: "state-label",
|
||||||
@ -131,78 +94,6 @@ export const demoLovelaceKernehed: DemoConfig["lovelace"] = () => ({
|
|||||||
type: "entities",
|
type: "entities",
|
||||||
title: "Lock",
|
title: "Lock",
|
||||||
},
|
},
|
||||||
// {
|
|
||||||
// filter: {
|
|
||||||
// exclude: [
|
|
||||||
// {
|
|
||||||
// state: "not_home",
|
|
||||||
// },
|
|
||||||
// ],
|
|
||||||
// include: [
|
|
||||||
// {
|
|
||||||
// entity_id: "device_tracker.annasiphone",
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// entity_id: "device_tracker.iphone_2",
|
|
||||||
// },
|
|
||||||
// ],
|
|
||||||
// },
|
|
||||||
// type: "custom:monster-card",
|
|
||||||
// card: {
|
|
||||||
// show_header_toggle: false,
|
|
||||||
// type: "entities",
|
|
||||||
// title: "G\u00e4ster",
|
|
||||||
// },
|
|
||||||
// show_empty: false,
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// filter: {
|
|
||||||
// exclude: [
|
|
||||||
// {
|
|
||||||
// state: "Inget",
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// state: "i.u.",
|
|
||||||
// },
|
|
||||||
// ],
|
|
||||||
// include: [
|
|
||||||
// {
|
|
||||||
// entity_id: "sensor.pollen_al",
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// entity_id: "sensor.pollen_alm",
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// entity_id: "sensor.pollen_salg_vide",
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// entity_id: "sensor.pollen_bjork",
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// entity_id: "sensor.pollen_bok",
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// entity_id: "sensor.pollen_ek",
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// entity_id: "sensor.pollen_grabo",
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// entity_id: "sensor.pollen_gras",
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// entity_id: "sensor.pollen_hassel",
|
|
||||||
// },
|
|
||||||
// ],
|
|
||||||
// },
|
|
||||||
// type: "custom:monster-card",
|
|
||||||
// card: {
|
|
||||||
// show_header_toggle: false,
|
|
||||||
// type: "entities",
|
|
||||||
// title: "Pollenniv\u00e5er",
|
|
||||||
// },
|
|
||||||
// show_empty: false,
|
|
||||||
// },
|
|
||||||
{
|
{
|
||||||
cards: [
|
cards: [
|
||||||
{
|
{
|
||||||
@ -226,10 +117,6 @@ export const demoLovelaceKernehed: DemoConfig["lovelace"] = () => ({
|
|||||||
],
|
],
|
||||||
type: "vertical-stack",
|
type: "vertical-stack",
|
||||||
},
|
},
|
||||||
// {
|
|
||||||
// url: "https://embed.windy.com/embed2.html",
|
|
||||||
// type: "iframe",
|
|
||||||
// },
|
|
||||||
{
|
{
|
||||||
entities: [
|
entities: [
|
||||||
{
|
{
|
||||||
@ -263,6 +150,7 @@ export const demoLovelaceKernehed: DemoConfig["lovelace"] = () => ({
|
|||||||
],
|
],
|
||||||
type: "glance",
|
type: "glance",
|
||||||
show_state: false,
|
show_state: false,
|
||||||
|
columns: 4,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
entities: ["sensor.oskar_bluetooth"],
|
entities: ["sensor.oskar_bluetooth"],
|
||||||
@ -270,32 +158,6 @@ export const demoLovelaceKernehed: DemoConfig["lovelace"] = () => ({
|
|||||||
type: "entities",
|
type: "entities",
|
||||||
title: "Occupancy",
|
title: "Occupancy",
|
||||||
},
|
},
|
||||||
// {
|
|
||||||
// filter: {
|
|
||||||
// exclude: [
|
|
||||||
// {
|
|
||||||
// state: false,
|
|
||||||
// },
|
|
||||||
// ],
|
|
||||||
// include: [
|
|
||||||
// {
|
|
||||||
// entity_id:
|
|
||||||
// "binary_sensor.fibaro_system_unknown_type0c02_id1003_sensor_2",
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// entity_id:
|
|
||||||
// "binary_sensor.fibaro_system_unknown_type0c02_id1003_sensor_3",
|
|
||||||
// },
|
|
||||||
// ],
|
|
||||||
// },
|
|
||||||
// type: "custom:monster-card",
|
|
||||||
// card: {
|
|
||||||
// show_header_toggle: false,
|
|
||||||
// type: "entities",
|
|
||||||
// title: "Brandvarnare",
|
|
||||||
// },
|
|
||||||
// show_empty: false,
|
|
||||||
// },
|
|
||||||
{
|
{
|
||||||
type: "weather-forecast",
|
type: "weather-forecast",
|
||||||
entity: "weather.smhi_vader",
|
entity: "weather.smhi_vader",
|
||||||
@ -378,41 +240,9 @@ export const demoLovelaceKernehed: DemoConfig["lovelace"] = () => ({
|
|||||||
"binary_sensor.windows_server",
|
"binary_sensor.windows_server",
|
||||||
"binary_sensor.teamspeak",
|
"binary_sensor.teamspeak",
|
||||||
"binary_sensor.harmony_hub",
|
"binary_sensor.harmony_hub",
|
||||||
// {
|
|
||||||
// style: {
|
|
||||||
// height: "1px",
|
|
||||||
// width: "85%",
|
|
||||||
// "margin-left": "auto",
|
|
||||||
// background: "#62717b",
|
|
||||||
// "margin-right": "auto",
|
|
||||||
// },
|
|
||||||
// type: "divider",
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// items: ["sensor.uptime_router", "sensor.installerad_routeros"],
|
|
||||||
// head: {
|
|
||||||
// entity: "binary_sensor.router",
|
|
||||||
// },
|
|
||||||
// type: "custom:fold-entity-row",
|
|
||||||
// group_config: {
|
|
||||||
// icon: "mdi:router",
|
|
||||||
// },
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// items: [
|
|
||||||
// "sensor.uptime_router_server",
|
|
||||||
// "sensor.installerad_routeros_server",
|
|
||||||
// ],
|
|
||||||
// head: {
|
|
||||||
// entity: "binary_sensor.router_server",
|
|
||||||
// },
|
|
||||||
// type: "custom:fold-entity-row",
|
|
||||||
// group_config: {
|
|
||||||
// icon: "mdi:router",
|
|
||||||
// },
|
|
||||||
// },
|
|
||||||
],
|
],
|
||||||
show_header_toggle: false,
|
show_header_toggle: false,
|
||||||
|
state_color: true,
|
||||||
type: "entities",
|
type: "entities",
|
||||||
title: "Network",
|
title: "Network",
|
||||||
},
|
},
|
||||||
@ -422,29 +252,10 @@ export const demoLovelaceKernehed: DemoConfig["lovelace"] = () => ({
|
|||||||
"binary_sensor.ubiquiti_switch",
|
"binary_sensor.ubiquiti_switch",
|
||||||
"binary_sensor.ubiquiti_nvr",
|
"binary_sensor.ubiquiti_nvr",
|
||||||
"binary_sensor.entre_kamera",
|
"binary_sensor.entre_kamera",
|
||||||
// {
|
|
||||||
// items: ["sensor.uptime_ap_1"],
|
|
||||||
// head: {
|
|
||||||
// entity: "binary_sensor.accesspunkt_1",
|
|
||||||
// },
|
|
||||||
// type: "custom:fold-entity-row",
|
|
||||||
// group_config: {
|
|
||||||
// icon: "router-wireless",
|
|
||||||
// },
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// items: ["sensor.uptime_ap_2"],
|
|
||||||
// head: {
|
|
||||||
// entity: "binary_sensor.accesspunkt_2",
|
|
||||||
// },
|
|
||||||
// type: "custom:fold-entity-row",
|
|
||||||
// group_config: {
|
|
||||||
// icon: "router-wireless",
|
|
||||||
// },
|
|
||||||
// },
|
|
||||||
"sensor.total_clients_wireless",
|
"sensor.total_clients_wireless",
|
||||||
],
|
],
|
||||||
show_header_toggle: false,
|
show_header_toggle: false,
|
||||||
|
state_color: true,
|
||||||
type: "entities",
|
type: "entities",
|
||||||
title: "Ubiquiti",
|
title: "Ubiquiti",
|
||||||
},
|
},
|
||||||
|
@ -215,6 +215,7 @@ export const demoLovelaceTeachingbirds: DemoConfig["lovelace"] = () => ({
|
|||||||
card: {
|
card: {
|
||||||
type: "glance",
|
type: "glance",
|
||||||
show_state: false,
|
show_state: false,
|
||||||
|
columns: 4,
|
||||||
},
|
},
|
||||||
state_filter: ["on"],
|
state_filter: ["on"],
|
||||||
},
|
},
|
||||||
@ -808,67 +809,6 @@ export const demoLovelaceTeachingbirds: DemoConfig["lovelace"] = () => ({
|
|||||||
],
|
],
|
||||||
type: "vertical-stack",
|
type: "vertical-stack",
|
||||||
},
|
},
|
||||||
// {
|
|
||||||
// cards: [
|
|
||||||
// {
|
|
||||||
// entities: [
|
|
||||||
// {
|
|
||||||
// hide_when_off: true,
|
|
||||||
// toggle: true,
|
|
||||||
// type: "custom:slider-entity-row",
|
|
||||||
// name: "Bedside",
|
|
||||||
// entity: "light.bedside_lamp",
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// hide_when_off: true,
|
|
||||||
// toggle: true,
|
|
||||||
// type: "custom:slider-entity-row",
|
|
||||||
// name: "Bedroom",
|
|
||||||
// entity: "light.bedroom_ceiling_light",
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// hide_when_off: true,
|
|
||||||
// toggle: true,
|
|
||||||
// type: "custom:slider-entity-row",
|
|
||||||
// name: "Isa",
|
|
||||||
// entity: "light.isa_ceiling_light",
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// hide_when_off: true,
|
|
||||||
// toggle: true,
|
|
||||||
// type: "custom:slider-entity-row",
|
|
||||||
// name: "Upstairs hallway",
|
|
||||||
// entity: "light.upstairs_hallway_ceiling_light_level",
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// hide_when_off: true,
|
|
||||||
// toggle: true,
|
|
||||||
// type: "custom:slider-entity-row",
|
|
||||||
// name: "Nightlight",
|
|
||||||
// entity: "light.gateway_light_34ce008bfc4b",
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// hide_when_off: true,
|
|
||||||
// toggle: true,
|
|
||||||
// type: "custom:slider-entity-row",
|
|
||||||
// name: "Walk in closet",
|
|
||||||
// entity: "light.walk_in_closet_lights",
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// hide_when_off: true,
|
|
||||||
// toggle: false,
|
|
||||||
// type: "custom:slider-entity-row",
|
|
||||||
// name: "Stefan",
|
|
||||||
// entity: "light.stefan_lightstrip",
|
|
||||||
// },
|
|
||||||
// ],
|
|
||||||
// show_header_toggle: false,
|
|
||||||
// type: "entities",
|
|
||||||
// title: "Upstairs",
|
|
||||||
// },
|
|
||||||
// ],
|
|
||||||
// type: "vertical-stack",
|
|
||||||
// },
|
|
||||||
],
|
],
|
||||||
path: "lights",
|
path: "lights",
|
||||||
title: "Lights",
|
title: "Lights",
|
||||||
@ -918,10 +858,6 @@ export const demoLovelaceTeachingbirds: DemoConfig["lovelace"] = () => ({
|
|||||||
name: "Dafang",
|
name: "Dafang",
|
||||||
icon: "mdi:webcam",
|
icon: "mdi:webcam",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name: "IR Hallway",
|
|
||||||
entity: "sensor.system_ir_blaster",
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
name: "IR Bedroom",
|
name: "IR Bedroom",
|
||||||
entity: "sensor.system_ir_blaster_bedroom",
|
entity: "sensor.system_ir_blaster_bedroom",
|
||||||
@ -940,7 +876,7 @@ export const demoLovelaceTeachingbirds: DemoConfig["lovelace"] = () => ({
|
|||||||
"sensor.system_ring_chime",
|
"sensor.system_ring_chime",
|
||||||
],
|
],
|
||||||
type: "glance",
|
type: "glance",
|
||||||
columns: 5,
|
columns: 4,
|
||||||
show_state: false,
|
show_state: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user