Unifi_Direct - Failed to decode response from AP

So I got the unifi_direct component setup, and it’s working great, as expected!

Problem is, every time it polls for new devices (30secs in my case), it reports the following error in the logs:

2017-12-09 09:04:44 ERROR (Thread-29) [homeassistant.components.device_tracker.unifi_direct] Failed to decode response from AP.
2017-12-09 09:05:15 ERROR (Thread-22) [homeassistant.components.device_tracker.unifi_direct] Failed to decode response from AP.
2017-12-09 09:05:46 ERROR (Thread-20) [homeassistant.components.device_tracker.unifi_direct] Failed to decode response from AP.
2017-12-09 09:06:17 ERROR (Thread-11) [homeassistant.components.device_tracker.unifi_direct] Failed to decode response from AP.
2017-12-09 09:06:48 ERROR (Thread-40) [homeassistant.components.device_tracker.unifi_direct] Failed to decode response from AP.
2017-12-09 09:07:19 ERROR (Thread-18) [homeassistant.components.device_tracker.unifi_direct] Failed to decode response from AP.
2017-12-09 09:07:50 ERROR (Thread-36) [homeassistant.components.device_tracker.unifi_direct] Failed to decode response from AP.
2017-12-09 09:08:21 ERROR (Thread-3) [homeassistant.components.device_tracker.unifi_direct] Failed to decode response from AP.
2017-12-09 09:08:52 ERROR (Thread-5) [homeassistant.components.device_tracker.unifi_direct] Failed to decode response from AP.
2017-12-09 09:09:23 ERROR (Thread-29) [homeassistant.components.device_tracker.unifi_direct] Failed to decode response from AP.
2017-12-09 09:09:54 ERROR (Thread-39) [homeassistant.components.device_tracker.unifi_direct] Failed to decode response from AP.
2017-12-09 09:10:25 ERROR (Thread-7) [homeassistant.components.device_tracker.unifi_direct] Failed to decode response from AP.

Anyone else experiencing this?

I haven’t seen this. Can you do me a favor and PM me the output from your AP?

SSH into the AP and run this command.

mca-dump | tr -d "\n"

I’m having the same issue.:

Failed to decode response from AP.
15:06 components/device_tracker/unifi_direct.py (ERROR)
Failed to decode response from AP.
15:06 components/device_tracker/unifi_direct.py (ERROR)
Failed to decode response from AP.
15:06 components/device_tracker/unifi_direct.py (ERROR)
Failed to decode response from AP.
15:06 components/device_tracker/unifi_direct.py (ERROR)
Failed to decode response from AP.
15:06 components/device_tracker/unifi_direct.py (ERROR)
Failed to decode response from AP.
15:05 components/device_tracker/unifi_direct.py (ERROR)

Any news regarding this issue?

I’d say, first thing, make sure your AP firmware is updated to the latest version. That fixed a lot of my issues. But I’m sure @w1ll1am23 will have some more input after that.

1 Like

Thank you. Updating the firmware solved the issues :slight_smile:

1 Like

I’m having this issue as well. My Unifi controller and APs all have the latest software/firmware.

I’ve attempted to run the command ‘mca-dump | tr -d “\n”’, but I don’t have “mca-dump” on my system and not sure where to go to get it.

Just to be sure - is the unifi-direct applicable to unifi controller software installed on Linux boxes (my case), or only to dedicated unifi hardware (e.g. Unifi Security Gateway)?

Thanks!

The unifi direct component is only confirmed to work on unifi access points. This component connects via SSH to the access point directly.

Ah, OK! I get it now. I was trying to connect to the controller, not the AP. Works just fine when I tell it the correct device to connect to. Thanks

will this work with the USG or only wifi APs? Im trying to get this to work over the unifi controller integration because the controller takes forever to update the status of a device, sometimes never at all until I reload the integration