summaryrefslogtreecommitdiffstats
path: root/lass/2configs/hass/rooms
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2020-09-27 15:36:01 +0200
committerlassulus <lassulus@lassul.us>2020-09-27 15:36:01 +0200
commitd450eb6c37745af467c30c1c1a83f764fdeb6ce6 (patch)
tree7873f9cb558118aa762793dee8a5e22bf63e5a77 /lass/2configs/hass/rooms
parent0cee1b93024ff9ca0e89687324682b69814b7107 (diff)
l hass: make lovelace configurable
Diffstat (limited to 'lass/2configs/hass/rooms')
-rw-r--r--lass/2configs/hass/rooms/bett.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/lass/2configs/hass/rooms/bett.nix b/lass/2configs/hass/rooms/bett.nix
index b5da9221c..16227fcb6 100644
--- a/lass/2configs/hass/rooms/bett.nix
+++ b/lass/2configs/hass/rooms/bett.nix
@@ -5,4 +5,35 @@ with import ../lib.nix { inherit lib; };
lass.hass.config = lib.mkMerge [
(lightswitch switches.dimmer.bett lights.bett)
];
+
+ lass.hass.love = {
+ resources = [{
+ url = "https://raw.githubusercontent.com/ljmerza/light-entity-card/master/dist/light-entity-card.js.map";
+ type = "js";
+ }];
+ views = [{
+ title = "bett";
+ cards = [
+ {
+ type = "markdown";
+ title = "hello world";
+ content = "This is just a test";
+ }
+ {
+ type = "light";
+ entity = "light.${lights.bett}";
+ }
+ {
+ type = "custom:light-entity-card";
+ entity = "light.${lights.bett}";
+ }
+ {
+ type = "history-graph";
+ entities = [
+ "light.${lights.bett}"
+ ];
+ }
+ ];
+ }];
+ };
}