summaryrefslogtreecommitdiffstats
path: root/krebs/2configs/shack/glados/multi/shackopen.nix
blob: d9be9adfa274106cac4c9838b468922e2671f660 (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
{
  services.home-assistant.config =
  {
    binary_sensor = [
      { platform = "mqtt";
        name = "Portal Lock";
        device_class = "door";
        state_topic = "portal/gateway/status";
        availability_topic = "portal/gateway/lwt";
        payload_on = "open";
        payload_off = "closed";
        payload_available = "online";
        payload_not_available = "offline";
      }
    ];
    sensor = [
      { platform = "mqtt";
        name = "Keyholder";
        state_topic = "portal/gateway/keyholder";
        availability_topic = "portal/gateway/lwt";
        payload_available = "online";
        payload_not_available = "offline";
      }
    ];
  };
}