stockholm/makefu/2configs/bureautomation/device_tracker/openwrt.nix
2021-03-17 20:04:13 +01:00

19 lines
473 B
Nix

# 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;
};
}
];
}