When I reload HA I get the following error and nothing else.
home-assistant.log.1:2021-12-12 01:57:29 INFO (MainThread) [homeassistant.components.device_tracker] Setting up device_tracker.ubus
home-assistant.log.1:2021-12-12 01:57:34 ERROR (MainThread) [homeassistant.components.device_tracker] Error setting up platform legacy ubus
home-assistant.log.1: File "/usr/src/homeassistant/homeassistant/components/device_tracker/legacy.py", line 245, in async_setup_legacy
home-assistant.log.1: File "/usr/src/homeassistant/homeassistant/components/ubus/device_tracker.py", line 43, in get_scanner
home-assistant.log.1: File "/usr/src/homeassistant/homeassistant/components/ubus/device_tracker.py", line 87, in __init__
Digging through sources some, I realize that the url scheme is hardcoded to http. There’s no way to specify https, and probably not way to allow for self signed certs.
Having had a look at the supporting ubus-rpc library, we can see that the library supports https as well as self signed certificates, given that this is a default on openwrt these days it seems surprising that this isn’t supported in the integration. I have written then following patch that should allow these parameters to be configured properly. It is currently untested, I’ll update when I get a chance to try it out.