summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/bureautomation/device_tracker/openwrt.nix
blob: 6b0144129ad8adc17e843a02c4e34cf626ee9ef0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# requires `opkg install luci-mod-rpc` on router
# see https://www.home-assistant.io/components/luci/

{
  services.home-assistant.config.device_tracker =
  [
    { platform = "luci";
      host = "192.168.8.1";
      username = "root";
      password = import <secrets/hass/router.nix>;
      interval_seconds = 30; # instead of 12seconds
      consider_home = 300; # 5 minutes timeout
      new_device_defaults = {
        track_new_devices = true;
        hide_if_away = false;
      };
    }
  ];
}