I’ve been following this great project for a very long time and have always had an instance running in a corner.
I’ve started migrating my setup to Gladys but I’m encountering an issue with the Lan Manager service that I can’t resolve.
My instance runs in Docker on a Debian VM (host Proxmox)
When I start discovery the scan runs for a while then times out, in the logs I have:
lan-manager.scan.js:58 (NmapScan.onError) LANManager fails to discover devices over network - Over scan timeout 30000
However, when running the command nmap -sn 192.168.0.112/24 from the container I can see my devices discovered in about 15s
I have quite a few other stacks running on this VM so multiple network interfaces appear in the Lan Manager config; I only kept the CIDR 192.168**** enabled
I thought it might be a DNS issue but apparently not (AdGuard).
I’m stumped…
Has anyone experienced this or have any ideas on where to look?
Thanks in advance to those who take the time to respond.
Yes my IP addresses are indeed on that network, I have the Hue and Broadlink integrations that correctly find the bridges on that same network.
The nmap command I ran is executed from the container, not the VM.
Yes also for the network type in Docker, I copy/pasted your Docker Compose example without changing anything except the port
What’s strange is that apparently the service worked one day, since I have a registered device (certainly following a test on another version a long time ago).
Maybe in my case the timeout added via a PR is too short, nmap in the container reports 31 devices up
To be on the safe side, I also tested by disabling the CIDR 192.168*** to test on others (one at a time), same result: LANManager fails to discover devices over the network
Ok, heads up, this isn’t necessarily a very reliable way to detect presence, your phone goes into Wi‑Fi sleep quite regularly I think, and you’ll be marked as absent ^^
Mainly for managing the lights when I’m away. I have Lidl Zigbee bulbs that don’t remember the last state like Hue bulbs do, so with each power cut (which happens regularly where I live) the whole house is lit. When I’m on vacation or at work it’s a pain having to connect to the house via VPN to turn everything off.
I had thought of creating a scene to turn the lights off when absent for a certain amount of time.
If you don’t have many bulbs, switch to IKEA Zigbee bulbs, they’re €9 and they handle returning to the previous state
Otherwise, indeed you can use OwnTracks in zone mode
Are you on iPhone or Android? Otherwise on iPhone you can use Shortcuts to make automations (or even, if you have an Apple TV, you can use HomeKit to indicate
Do you mean the scan’s timeout delay? Do you think that’s the issue on your end? I’m really not sure — as you said, on your system, in 15 seconds nmap found everything in the CLI, and it’s exactly the same thing executed by Gladys, so I’m not convinced!