Unable to discover devices in my network

Hey guys and girls :slight_smile:

I’m new to the HomeAssistant-World, happy to dive in but now running into errors I do not yet understand. Maybe someone has had similar issues and can point me in the right direction.

My Raspberry is running Home Assistant 0.95.4 using Hassio with the HassOS image. Everything is going great so far, TV is connected, lights are working, even my age-old robot can be controlled.

Next step: presence detection.
Or rather it’s sibling: finding mobile devices :blush:

Figured out the easiest way would be getting data about mobile devices in the network from my FritzBox directly.
Followed this instruction: https://www.home-assistant.io/components/fritz/
No devices found.
Maybe my FritzBoy is the wrong kind of special, let’s look elsewhere.

My next attempt: nmap.
Followed the instructions here: https://www.home-assistant.io/components/nmap_tracker/
Still no devices found.

My yaml now looks like this:

  - platform: fritz
    username: admin
    password: nottellingyou
  - platform: nmap_tracker
    home_interval: 5
      track_new_devices: True
      hide_if_away: False

Am I missing something?
Any help is greatly appreciated! :slight_smile:

Things I learned along the way and might or might not be relevant:

  • I can SSH onto my pi but I only have a CLI, not a real shell. Don’t have a clue how to install stuff per command line (won’t let me), maybe that’s the thing that is missing.
  • known-devices.yaml is not getting created automatically but is deprecated anyway. Just to be sure I touched it, it is there but empty.

I can’t comment on the hassio side of things - I’m running on ubuntu so I’ve got full shell access.

that said,
are there

  • any logs you can look at?
  • is there any other machine you can run nmap from?
  • are your mobile devices on the same wifi/lan as the rpi (eg 192.168.1.x)
  • are they on a normal - not guest - wifi (which may block interaction with them)
1 Like

This is normal for Hassio. It has a very limited CLI exposed. The good news is neither of the components you are using should require extra configuration via the CLI if you are using Hassio.

1 Like

My Working config

  - platform: fritz
    host: !secret my_fritz_host
    consider_home: 180
      track_new_devices: false
      hide_if_away: false

You should also get entries in known_devices.yaml It might take a few minutes.

Linux has me spoiled :face_with_hand_over_mouth:
Thank you for reassuring me that there is no problem with the installation.

The logs didn’t help me much, but your second question helped me a lot.
I downloaded nmap for my laptop and did not find my phone either, checked the IP-addresses again, and low and behold: Letting nmap scan yielded all my connected devices.
Thank you for taking the time to answer me. :sunflower:

1 Like