A daemon to detect devices on a network and update Catbus accordingly.
{
"mqttBroker": "tcp://broker.local:1883",
"devices": {
"TV": {
"mac": "aa:bb:cc:dd:ee:ff",
"topic": "home/living-room/tv/power"
}
}
}
The daemon (and cmd/arp-scan
tool) wraps arp-scan
to detect devices that exist on the network, periodically polling.
TODO: ping devices that showed up on ARP scanning, to poll more frequently, to detect shutdowns faster.
TODO: implement a small DHCP server to pick up connects faster.