mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-13 12:26:35 +00:00
Simplify demo (#3438)
This commit is contained in:
parent
689e37782e
commit
4edcd5f2ef
@ -245,16 +245,7 @@ export const demoEntitiesArsaboo: DemoConfig["entities"] = (localize) =>
|
||||
homebridge_cover_type: "garage_door",
|
||||
},
|
||||
},
|
||||
"light.master_lights": {
|
||||
entity_id: "light.master_lights",
|
||||
state: "off",
|
||||
attributes: {
|
||||
min_mireds: 153,
|
||||
max_mireds: 500,
|
||||
friendly_name: "Master Lights",
|
||||
supported_features: 63,
|
||||
},
|
||||
},
|
||||
|
||||
"light.living_room_lights": {
|
||||
entity_id: "light.living_room_lights",
|
||||
state: "off",
|
||||
@ -280,40 +271,7 @@ export const demoEntitiesArsaboo: DemoConfig["entities"] = (localize) =>
|
||||
supported_features: 1,
|
||||
},
|
||||
},
|
||||
"light.hue_color_lamp_1": {
|
||||
entity_id: "light.hue_color_lamp_1",
|
||||
state: "on",
|
||||
attributes: {
|
||||
min_mireds: 153,
|
||||
max_mireds: 500,
|
||||
friendly_name: localize("ui.panel.page-demo.config.arsaboo.names.left"),
|
||||
supported_features: 63,
|
||||
},
|
||||
},
|
||||
"light.hue_color_lamp_2": {
|
||||
entity_id: "light.hue_color_lamp_2",
|
||||
state: "off",
|
||||
attributes: {
|
||||
min_mireds: 153,
|
||||
max_mireds: 500,
|
||||
friendly_name: localize(
|
||||
"ui.panel.page-demo.config.arsaboo.names.right"
|
||||
),
|
||||
supported_features: 63,
|
||||
},
|
||||
},
|
||||
"light.hue_color_lamp_3": {
|
||||
entity_id: "light.hue_color_lamp_3",
|
||||
state: "on",
|
||||
attributes: {
|
||||
min_mireds: 153,
|
||||
max_mireds: 500,
|
||||
friendly_name: localize(
|
||||
"ui.panel.page-demo.config.arsaboo.names.mirror"
|
||||
),
|
||||
supported_features: 63,
|
||||
},
|
||||
},
|
||||
|
||||
"sensor.plexspy": {
|
||||
entity_id: "sensor.plexspy",
|
||||
state: "0",
|
||||
@ -405,16 +363,6 @@ export const demoEntitiesArsaboo: DemoConfig["entities"] = (localize) =>
|
||||
supported_features: 0,
|
||||
},
|
||||
},
|
||||
"light.gateway_light_34ce00813670": {
|
||||
entity_id: "light.gateway_light_34ce00813670",
|
||||
state: "off",
|
||||
attributes: {
|
||||
friendly_name: localize(
|
||||
"ui.panel.page-demo.config.arsaboo.names.hallway"
|
||||
),
|
||||
supported_features: 17,
|
||||
},
|
||||
},
|
||||
"alarm_control_panel.abode_alarm": {
|
||||
entity_id: "alarm_control_panel.abode_alarm",
|
||||
state: "disarmed",
|
||||
@ -472,35 +420,7 @@ export const demoEntitiesArsaboo: DemoConfig["entities"] = (localize) =>
|
||||
device_class: "motion",
|
||||
},
|
||||
},
|
||||
"binary_sensor.water_leak_sensor_158d0001d77800": {
|
||||
entity_id: "binary_sensor.water_leak_sensor_158d0001d77800",
|
||||
state: "off",
|
||||
attributes: {
|
||||
battery_level: 41,
|
||||
friendly_name: "Laundry Water Leak",
|
||||
device_class: "moisture",
|
||||
},
|
||||
},
|
||||
"binary_sensor.motion_sensor_158d00016c53bf": {
|
||||
entity_id: "binary_sensor.motion_sensor_158d00016c53bf",
|
||||
state: "off",
|
||||
attributes: {
|
||||
"No motion since": 0,
|
||||
battery_level: 43,
|
||||
friendly_name: "Master Occupancy",
|
||||
device_class: "motion",
|
||||
},
|
||||
},
|
||||
"binary_sensor.motion_sensor_158d00016612af": {
|
||||
entity_id: "binary_sensor.motion_sensor_158d00016612af",
|
||||
state: "off",
|
||||
attributes: {
|
||||
"No motion since": 0,
|
||||
battery_level: 41,
|
||||
friendly_name: "Upstairs Occupancy",
|
||||
device_class: "motion",
|
||||
},
|
||||
},
|
||||
|
||||
"binary_sensor.front_door": {
|
||||
entity_id: "binary_sensor.front_door",
|
||||
state: "off",
|
||||
@ -587,16 +507,6 @@ export const demoEntitiesArsaboo: DemoConfig["entities"] = (localize) =>
|
||||
icon: "hademo:history",
|
||||
},
|
||||
},
|
||||
"light.lifxnrkitchen": {
|
||||
entity_id: "light.lifxnrkitchen",
|
||||
state: "off",
|
||||
attributes: {
|
||||
min_mireds: 111,
|
||||
max_mireds: 400,
|
||||
friendly_name: "LifxnrKitchen",
|
||||
supported_features: 55,
|
||||
},
|
||||
},
|
||||
"light.lifx5": {
|
||||
entity_id: "light.lifx5",
|
||||
state: "on",
|
||||
@ -607,41 +517,6 @@ export const demoEntitiesArsaboo: DemoConfig["entities"] = (localize) =>
|
||||
supported_features: 55,
|
||||
},
|
||||
},
|
||||
"light.lifxnrguest": {
|
||||
entity_id: "light.lifxnrguest",
|
||||
state: "off",
|
||||
attributes: {
|
||||
min_mireds: 111,
|
||||
max_mireds: 400,
|
||||
friendly_name: localize(
|
||||
"ui.panel.page-demo.config.arsaboo.names.patio"
|
||||
),
|
||||
supported_features: 55,
|
||||
},
|
||||
},
|
||||
"light.lifx3": {
|
||||
entity_id: "light.lifx3",
|
||||
state: "off",
|
||||
attributes: {
|
||||
min_mireds: 111,
|
||||
max_mireds: 400,
|
||||
friendly_name: localize(
|
||||
"ui.panel.page-demo.config.arsaboo.names.kitchen"
|
||||
),
|
||||
supported_features: 55,
|
||||
},
|
||||
},
|
||||
"sensor.illumination_158d00016c53bf": {
|
||||
entity_id: "sensor.illumination_158d00016c53bf",
|
||||
state: "10",
|
||||
attributes: {
|
||||
battery_level: 43,
|
||||
unit_of_measurement: "lx",
|
||||
friendly_name: "Master Brightness",
|
||||
device_class: "illuminance",
|
||||
icon: "hademo:brightness-7",
|
||||
},
|
||||
},
|
||||
"sensor.alok_to_home": {
|
||||
entity_id: "sensor.alok_to_home",
|
||||
state: "41",
|
||||
@ -680,13 +555,6 @@ export const demoEntitiesArsaboo: DemoConfig["entities"] = (localize) =>
|
||||
icon: "hademo:car",
|
||||
},
|
||||
},
|
||||
"switch.wemoswitch": {
|
||||
entity_id: "switch.wemoswitch",
|
||||
state: "on",
|
||||
attributes: {
|
||||
friendly_name: localize("ui.panel.page-demo.config.arsaboo.labels.air"),
|
||||
},
|
||||
},
|
||||
"switch.driveway": {
|
||||
entity_id: "switch.driveway",
|
||||
state: "off",
|
||||
|
@ -9,6 +9,27 @@ export const demoLovelaceArsaboo: DemoConfig["lovelace"] = (localize) => ({
|
||||
title: "Home",
|
||||
cards: [
|
||||
{ type: "custom:ha-demo-card" },
|
||||
{
|
||||
type: "entities",
|
||||
title: localize("ui.panel.page-demo.config.arsaboo.labels.lights"),
|
||||
entities: [
|
||||
{
|
||||
entity: "light.kitchen_lights",
|
||||
},
|
||||
{
|
||||
entity: "light.living_room_lights",
|
||||
},
|
||||
{
|
||||
entity: "switch.wemoporch",
|
||||
},
|
||||
"light.lifx5",
|
||||
],
|
||||
},
|
||||
{
|
||||
type: "thermostat",
|
||||
entity: "climate.upstairs",
|
||||
},
|
||||
|
||||
{
|
||||
type: "picture-elements",
|
||||
image: "/assets/arsaboo/floorplans/main.png",
|
||||
@ -381,104 +402,7 @@ export const demoLovelaceArsaboo: DemoConfig["lovelace"] = (localize) => ({
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
type: "picture-elements",
|
||||
image: "/assets/arsaboo/floorplans/second.png",
|
||||
elements: [
|
||||
{
|
||||
type: "state-icon",
|
||||
entity: "binary_sensor.motion_sensor_158d00016612af",
|
||||
style: {
|
||||
top: "40%",
|
||||
left: "35%",
|
||||
},
|
||||
},
|
||||
// {
|
||||
// type: "custom:thermostat-card",
|
||||
// entity: "climate.bedroom",
|
||||
// no_card: true,
|
||||
// hvac: {
|
||||
// attribute: "operation",
|
||||
// },
|
||||
// style: {
|
||||
// top: "79%",
|
||||
// left: "92%",
|
||||
// width: "50px",
|
||||
// height: "50px",
|
||||
// },
|
||||
// },
|
||||
{
|
||||
type: "state-icon",
|
||||
entity: "binary_sensor.motion_sensor_158d00016c53bf",
|
||||
style: {
|
||||
top: "55%",
|
||||
left: "80%",
|
||||
},
|
||||
},
|
||||
{
|
||||
type: "state-label",
|
||||
entity: "sensor.illumination_158d00016c53bf",
|
||||
style: {
|
||||
top: "78%",
|
||||
left: "80%",
|
||||
"text-align": "center",
|
||||
"font-size": "12px",
|
||||
color: "black",
|
||||
},
|
||||
},
|
||||
{
|
||||
type: "image",
|
||||
entity: "light.master_lights",
|
||||
tap_action: {
|
||||
action: "toggle",
|
||||
},
|
||||
hold_action: {
|
||||
action: "more-info",
|
||||
},
|
||||
image: "/assets/arsaboo/icons/light_bulb_off.png",
|
||||
state_image: {
|
||||
on: "/assets/arsaboo/icons/light_bulb_on.png",
|
||||
},
|
||||
state_filter: {
|
||||
on:
|
||||
"brightness(130%) saturate(1.5) drop-shadow(0px 0px 10px gold)",
|
||||
off: "brightness(80%) saturate(0.8)",
|
||||
},
|
||||
style: {
|
||||
top: "70%",
|
||||
left: "80%",
|
||||
width: "7%",
|
||||
padding: "10px",
|
||||
},
|
||||
},
|
||||
{
|
||||
type: "state-icon",
|
||||
entity: "binary_sensor.water_leak_sensor_158d0001d77800",
|
||||
style: {
|
||||
top: "25%",
|
||||
left: "66%",
|
||||
},
|
||||
},
|
||||
// {
|
||||
// type: "custom:thermostat-card",
|
||||
// entity: "climate.upstairs",
|
||||
// no_card: true,
|
||||
// hvac: {
|
||||
// attribute: "operation",
|
||||
// },
|
||||
// style: {
|
||||
// top: "18%",
|
||||
// left: "15%",
|
||||
// width: "50px",
|
||||
// height: "50px",
|
||||
// },
|
||||
// },
|
||||
],
|
||||
},
|
||||
{
|
||||
type: "thermostat",
|
||||
entity: "climate.upstairs",
|
||||
},
|
||||
|
||||
{
|
||||
type: "media-control",
|
||||
entity: "media_player.family_room_2",
|
||||
@ -496,44 +420,11 @@ export const demoLovelaceArsaboo: DemoConfig["lovelace"] = (localize) => ({
|
||||
"sensor.usdinr",
|
||||
],
|
||||
},
|
||||
{
|
||||
type: "entities",
|
||||
title: localize("ui.panel.page-demo.config.arsaboo.labels.lights"),
|
||||
entities: [
|
||||
{
|
||||
entity: "light.gateway_light_34ce00813670",
|
||||
},
|
||||
{
|
||||
entity: "light.lifx3",
|
||||
},
|
||||
{
|
||||
entity: "light.lifxnrguest",
|
||||
},
|
||||
{
|
||||
type: "section",
|
||||
label: localize(
|
||||
"ui.panel.page-demo.config.arsaboo.names.master_bedroom"
|
||||
),
|
||||
},
|
||||
{
|
||||
entity: "light.hue_color_lamp_1",
|
||||
},
|
||||
{
|
||||
entity: "light.hue_color_lamp_2",
|
||||
},
|
||||
{
|
||||
entity: "light.hue_color_lamp_3",
|
||||
},
|
||||
{
|
||||
entity: "switch.wemoswitch",
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
{
|
||||
type: "alarm-panel",
|
||||
entity: "alarm_control_panel.abode_alarm",
|
||||
name: "Abode",
|
||||
name: "Security",
|
||||
states: ["arm_home", "arm_away"],
|
||||
},
|
||||
{
|
||||
@ -554,7 +445,7 @@ export const demoLovelaceArsaboo: DemoConfig["lovelace"] = (localize) => ({
|
||||
},
|
||||
{
|
||||
type: "entities",
|
||||
title: "Ring Doorbell",
|
||||
title: "Doorbell",
|
||||
show_header_toggle: false,
|
||||
entities: [
|
||||
"binary_sensor.ring_front_door_ding",
|
||||
|
Loading…
x
Reference in New Issue
Block a user