ERRORs setting up openwrt/LEDE with Luci

Hi all,

I am trying to set up the integration with OpenWRT but I get some errors and it doesn’t work. My enviroment is HA running in a docker on a Synology NAS and my router is a TP-link with openwrt.

I followed the instructions and install the package luci-mod-rpc as doc says.

When I configured HA it throws me this:

2019-01-05 21:59:17 ERROR (MainThread) [homeassistant.components.device_tracker] Error setting up   platform luci
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/urllib3/", line 600, in urlopen
File "/usr/local/lib/python3.6/site-packages/urllib3/", line 343, in _make_request
File "/usr/local/lib/python3.6/site-packages/urllib3/", line 839, in _validate_conn
File "/usr/local/lib/python3.6/site-packages/urllib3/", line 344, in connect
File "/usr/local/lib/python3.6/site-packages/urllib3/util/", line 357, in ssl_wrap_socket
return context.wrap_socket(sock)
File "/usr/local/lib/python3.6/", line 407, in wrap_socket
_context=self, _session=session)
File "/usr/local/lib/python3.6/", line 817, in __init__
File "/usr/local/lib/python3.6/", line 1077, in do_handshake
File "/usr/local/lib/python3.6/", line 689, in do_handshake
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:847)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/requests/", line 449, in send
File "/usr/local/lib/python3.6/site-packages/urllib3/", line 638, in urlopen
File "/usr/local/lib/python3.6/site-packages/urllib3/util/", line 398, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='', port=443): Max retries exceeded     with url: /cgi-bin/luci/rpc/auth (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:847)'),))

my configuration.yaml is, I am using both confs for device tracking:


  • platform: gpslogger
  • platform: luci
    username: root
    password: XXXXXX

Hope someone has an idea, thanks in advance!

I can recommend the ubus component.

I can’t recommend ubus, it is clearly missing hosts on my network (but it is working to some extent.) nmap seems to work better, but when luci was working for me, it was the most accurate.

Alas, luci doesn’t work for me, even though I’ve turned off SSL (with ssl: false). This is with the latest release of OpenWRT (merging LEDE back in). It worked previously for me, so some combination of HASS and OpenWRT updates broke it. It fails silently for me (whereas I was seeing the SSL cert errors before I turned off SSL. And yes, I can curl port 80 of my router.)

I’m also failing to get the Luci device tracker working with HA. Digging about in the packets appears that the Luci component is using a call to net.arptable which was dropped in OpenWRT 18.06 and needs to try ‘neighbors’ instead.

Google turns up this patch but doesn’t seem to have been submitted/made it to the main release ?

1 Like

That’s my patch. Am working on getting it fixed in HA soon.

Thanks for letting us know - great stuff - hope it appears soon :slight_smile:

Yes it has been merged so should be in 0.89 I guess.

1 Like

Any News? Ha not working for me in OpenWRT
OpenWrt SNAPSHOT r13059-9fac9168c6 / LuCI Master git-20.116.42735-f44ba48

HA latest Version

When i get all the entitys in home assistant i cant rename them.
" This entity (“device_tracker.c0_12_7d_07_33_19”) does not have a unique ID, therefore its settings cannot be managed from the UI."

Is there any way to do it? :slight_smile: or is customizations menu to customize the only way to do it?

1 Like