summaryrefslogtreecommitdiffstats
path: root/krebs/2configs/shack/glados/sensors/spaceapi.nix
blob: ea20ad29d300ea44c5adccb3b0e4a9f27cf84d08 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
  services.home-assistant.config.binary_sensor =
  [
    {
      platform = "rest";
      resource = "https://spaceapi.afra-berlin.de/v1/status.json";
      method = "GET";
      name = "Door AFRA Berlin";
      device_class = "door";
      value_template = "{{ value_json.open }}";
    }
    {
      platform = "rest";
      resource = "http://club.entropia.de/spaceapi";
      method = "GET";
      name = "Door Entropia";
      device_class = "door";
      value_template = "{{ value_json.open }}";
    }
    {
      platform = "rest";
      resource = "http://www.c-base.org/status.json";
      method = "GET";
      name = "Door C-Base Berlin";
      device_class = "door";
      value_template = "{{ value_json.open }}";
    }
    {
      platform = "rest";
      resource = "https://status.raumzeitlabor.de/api/full.json";
      method = "GET";
      name = "Door RZL";
      device_class = "door";
      value_template = "{{ value_json.status }}";
    }
    {
      platform = "rest";
      resource = "https://datenobservatorium.de/";
      method = "GET";
      name = "Door Datenobservatorium";
      device_class = "door";
      value_template = "false";
      scan_interval = 2592000;
    }
    {
      platform = "rest";
      resource = "https://infuanfu.de/";
      method = "GET";
      name = "Door Infuanfu";
      device_class = "door";
      value_template = "false";
      scan_interval = 2592000;
    }
  ];
}