summaryrefslogtreecommitdiffstats
path: root/lass/2configs/hass/rooms/bett.nix
blob: 16227fcb664cd9fb7671601b36df25d36fad5ed0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{ lib, ... }:
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}"
          ];
        }
      ];
    }];
  };
}