Unifi_direct presence detection randomly stops working

I’m using Unifi Direct presence detection with my Unifi AP. The controller is a HASS addon. I don’t know if that’s relevant. Sometimes the presence detection stops working and either I or my wife are permanently “home” or “away”. I additionally don’t know if it’s relevant but my log has a fair amount of:

Error doing job: SSL error errno:1 reason: UNKNOWN_PROTOCOL
7:02 PM /usr/local/lib/python3.6/site-packages/homeassistant/core.py (ERROR)
Error doing job: SSL handshake failed
7:02 PM /usr/local/lib/python3.6/site-packages/homeassistant/core.py (ERROR)
Error doing job: SSL error errno:1 reason: HTTP_REQUEST
6:09 PM /usr/local/lib/python3.6/site-packages/homeassistant/core.py (ERROR)
Error doing job: SSL handshake failed
6:09 PM /usr/local/lib/python3.6/site-packages/homeassistant/core.py (ERROR)
Error doing job: SSL error errno:1 reason: NO_SHARED_CIPHER
4:19 PM /usr/local/lib/python3.6/site-packages/homeassistant/core.py (ERROR)
Error doing job: SSL handshake failed
4:19 PM /usr/local/lib/python3.6/site-packages/homeassistant/core.py (ERROR)
Error doing job: SSL error errno:1 reason: WRONG_VERSION_NUMBER
4:19 PM /usr/local/lib/python3.6/site-packages/homeassistant/core.py (ERROR)

in it. I’d love to get this working reliably…

Any tips?!

Have you noticed if any access points around you have special characters specifically ' or " in them? Another user found an issue where a neighbor had an access point with ' in the name and it caused the JSON parsing from the unifi AP to crash.

Apparently the AP wasnt always present so it only failed some times.