Openwrt presence without DHCP active

Hello, I have an asus router active in my garage but it is not assigning IP address to DHCP clients since I have a main router in home that handle this for the whole network.

Is it possible to obtain presence detection in garage using my openwrt router if it has DHCP server not active?

Thank you

if you only need a presence indicator per person, you could use the network_scanner integration and look for the mac address of the phone instead of the IP address. I have set up a templete for a binary sensor checking this. See example below:

  template:
    binary_sensor:
      - name: chriss_is_home
        state: '{{ (state_attr("sensor.network_scanner","devices")| map(attribute="mac") | select("search", "XX:XX:XX:XX:XX:XX") | list | count) == 1 }}'

Replace “XX:XX:XX:XX:XX:XX” with the mac address of your phone (seen in wifi settings). Some phone have the option to generate a random mac address for each wifi network. You can disable that in the advanced wifi settings of your phone (on android it is called MAC-addresstype, set it tho ‘phone-MAC’)

Since it does not rely on your router or network ip, it seems a lot more stable and you don’t have to mess with the router

Super!
I will try it

Thank you
:slight_smile:

No luck, it does not work across vlans (my case)…

Does your Ha server have access to the vlans?

Not directly (does not have interafaces on other vlans)