Ability to specify location in DD-WRT, OpenWRT, presence detection

Hi, I’m wondering if it’s possible to add a custom location reported by DD-WRT device_tracker and similar router-based device trackers.

For exampe, in my setup I have two DD-WRT routers.

device_tracker:
  - platform: ddwrt
    host: 192.168.1.6
    username: admin
    password: mypass
    track_new_devices: false
    interval_seconds: 30
  - platform: ddwrt
    host: 192.168.1.5
    username: admin
    password: mypass
    track_new_devices: false
    interval_seconds: 30

And they together can track my device home/not_home status.

Since one AP is in the very south of the house, and the other is in the very north of the house, they could help me get the locaton of the device I’m tracking.

I was thinking, if it would be possible to customize the “home” status, so the device location can be more precise.

Something like:

device_tracker:
  - platform: ddwrt
    home_location: 'home_south'
  - platform: ddwrt
    home_location: 'home_north"

Of course I’m aware there are more accurate methods of in-door location, like: Owntracks, Find, Bluetooth beacons, but every needs something like an App, or adding more hardware, while Acesss Points already are in every house.

Do you think this can be useful for somebody else in similar situation?

Thanks

There are a couple of other feature requests just like this one.

I started to look at the code but it appears that they way the code is written the minute a device is seen by a device tracker we assume it’s home.

Code change wise you would have to call the see service and place any “seen” device into whatever zone you would want.