summaryrefslogtreecommitdiffstats
path: root/krebs/2configs/shack/glados/multi/shackopen.nix
blob: 354405d06193d6d91a8112377b03529f8b5bfc8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
  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";
    }
  ];
}