From 49d0f2359b31b3553f64f4fca0bd65857297d8c6 Mon Sep 17 00:00:00 2001 From: Ian Richardson Date: Tue, 22 Oct 2019 14:43:34 -0500 Subject: [PATCH] add sensor card to first demo (#4035) * add sensor card to first demo * Change to temperature sensor --- demo/src/configs/arsaboo/entities.ts | 12 ++++++++++++ demo/src/configs/arsaboo/lovelace.ts | 5 +++++ src/translations/en.json | 3 ++- 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/demo/src/configs/arsaboo/entities.ts b/demo/src/configs/arsaboo/entities.ts index 77a4d1c16a..fcae1bc846 100644 --- a/demo/src/configs/arsaboo/entities.ts +++ b/demo/src/configs/arsaboo/entities.ts @@ -217,6 +217,18 @@ export const demoEntitiesArsaboo: DemoConfig["entities"] = (localize) => 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": { entity_id: "cover.garagedoor", state: "closed", diff --git a/demo/src/configs/arsaboo/lovelace.ts b/demo/src/configs/arsaboo/lovelace.ts index ddb95ad98b..79a275c578 100644 --- a/demo/src/configs/arsaboo/lovelace.ts +++ b/demo/src/configs/arsaboo/lovelace.ts @@ -446,6 +446,11 @@ export const demoLovelaceArsaboo: DemoConfig["lovelace"] = (localize) => ({ "script.tv_off", ], }, + { + type: "sensor", + entity: "sensor.study_temp", + graph: "line", + }, { type: "entities", title: "Doorbell", diff --git a/src/translations/en.json b/src/translations/en.json index 222645ba6f..03fab1fae2 100755 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -1782,7 +1782,8 @@ "master_bedroom": "Master Bedroom", "left": "Left", "right": "Right", - "mirror": "Mirror" + "mirror": "Mirror", + "temperature_study": "Temperature Study" }, "labels": { "lights": "Lights",