add sensor card to first demo (#4035)

* add sensor card to first demo

* Change to temperature sensor
This commit is contained in:
Ian Richardson 2019-10-22 14:43:34 -05:00 committed by GitHub
parent bb73039205
commit 49d0f2359b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 1 deletions

View File

@ -217,6 +217,18 @@ export const demoEntitiesArsaboo: DemoConfig["entities"] = (localize) =>
icon: "hademo:currency-usd", icon: "hademo:currency-usd",
}, },
}, },
"sensor.study_temp": {
entity_id: "sensor.study_temp",
state: "20.9",
attributes: {
unit_of_measurement: "°C",
device_class: "temperature",
friendly_name: localize(
"ui.panel.page-demo.config.arsaboo.names.temperature_study"
),
icon: "hademo:thermometer",
},
},
"cover.garagedoor": { "cover.garagedoor": {
entity_id: "cover.garagedoor", entity_id: "cover.garagedoor",
state: "closed", state: "closed",

View File

@ -446,6 +446,11 @@ export const demoLovelaceArsaboo: DemoConfig["lovelace"] = (localize) => ({
"script.tv_off", "script.tv_off",
], ],
}, },
{
type: "sensor",
entity: "sensor.study_temp",
graph: "line",
},
{ {
type: "entities", type: "entities",
title: "Doorbell", title: "Doorbell",

View File

@ -1782,7 +1782,8 @@
"master_bedroom": "Master Bedroom", "master_bedroom": "Master Bedroom",
"left": "Left", "left": "Left",
"right": "Right", "right": "Right",
"mirror": "Mirror" "mirror": "Mirror",
"temperature_study": "Temperature Study"
}, },
"labels": { "labels": {
"lights": "Lights", "lights": "Lights",