Searched for this but surprisingly found nothing.
Two OpenWRT devices here. One as router downstairs, the other as access point upstairs.
The router is already running GitHub - mueslo/openwrt_hass_devicetracker: Simple OpenWRT package which forwards device connection changes to a HomeAssistant instance, the access point will follow.
The thing is, to have advanced automation Home Assistant (Hassio) should know whether a device is upstairs or downstairs.
I tried a custom source_type in the openwrt_hass_devicetracker script but HA refuses this.
2018-12-16 18:05:21 ERROR (MainThread) [homeassistant.core] Invalid service data for device_tracker.see: value is not allowed for dictionary value @ data[‘source_type’]. Got ‘router_sb1’
How to pass location data with device_tracker ánd how to use it in automations?