Unifi Direct Error "Failed to decode response from AP"

I set up presence detection with my Ubiquiti AP, (Unifi direct AP) and it’s working great.

However, after the system runs for a couple of hours, my log gets spammed with this:

Failed to decode response from AP.
13:10 components/device_tracker/unifi_direct.py (ERROR)
Failed to decode response from AP.
13:05 components/device_tracker/unifi_direct.py (ERROR)
Failed to decode response from AP.
13:02 components/device_tracker/unifi_direct.py (ERROR)
Failed to decode response from AP.
13:01 components/device_tracker/unifi_direct.py (ERROR)
Failed to decode response from AP.
12:54 components/device_tracker/unifi_direct.py (ERROR)
Failed to decode response from AP.
12:47 components/device_tracker/unifi_direct.py (ERROR)

Presence detection still works as it should, but my local network slows down noticeably when the errors start.

Restarting HA solves this issues for a few hours, but the errors eventually start again.

I don’t have an active Unifi Controller running at all times because this component doesn’t require it.

Any ideas?

Other users have seen that issue, I haven’t. I believe they fixed it by updating to the lastest firmware on third AP. Can you give that a try?

Same issue here on 0.69 with my AP running 3.9.27.8537.

Once this starts happening can you manually SSH to the AP and run the following command mca-dump | tr -d "\n" See what the response looks like, should be JSON. Try to copy it and paste it in to a JSON formatter/validator https://jsonformatter.curiousconcept.com/

Thank you for your suggestions! I updated to 3.9.27.8537 but the errors are still there.

I did the mca-dump | tr -d “\n” thing, here’s the result:

{
   "antenna_table":[
      {
         "id":4,
         "name":"Combined",
         "wifi0_gain":3,
         "wifi1_gain":3
      }
   ],
   "board_rev":33,
   "bootid":1,
   "bootrom_version":"unifi-v1.6.13.275-g65f82952",
   "cfgversion":"b9b38d8486f2d336",
   "country_code":0,
   "countrycode_table":[

   ],
   "default":false,
   "discovery_response":false,
   "dualboot":true,
   "fw_caps":196151,
   "guest_token":"5C54698917B7E92B4158AB5F71603B1E",
   "has_eth1":false,
   "has_speaker":false,
   "hostname":"UBNT",
   "if_table":[
      {
         "full_duplex":true,
         "ip":"0.0.0.0",
         "mac":"f0:9f:c2:a6:48:48",
         "name":"eth0",
         "netmask":"0.0.0.0",
         "num_port":1,
         "rx_bytes":1058356808,
         "rx_dropped":0,
         "rx_errors":0,
         "rx_multicast":0,
         "rx_packets":11161438,
         "speed":1000,
         "tx_bytes":551038570,
         "tx_dropped":0,
         "tx_errors":0,
         "tx_packets":4982386,
         "up":true
      }
   ],
   "inform_url":"http://192.168.0.14:8080/inform",
   "ip":"192.168.0.18",
   "isolated":false,
   "last_error":"Unknown[11] (http://192.168.0.14:8080/inform)",
   "locating":false,
   "mac":"f0:9f:c2:a6:48:48",
   "model":"U7LT",
   "model_display":"UAP-AC-Lite",
   "netmask":"255.255.255.0",
   "radio_table":[
      {
         "athstats":{
            "ast_ath_reset":0,
            "ast_be_xmit":1031822,
            "ast_cst":13707,
            "ast_deadqueue_reset":0,
            "ast_fullqueue_stop":0,
            "ast_txto":1,
            "cu_self_rx":14,
            "cu_self_tx":4,
            "cu_total":19,
            "n_rx_aggr":4147758,
            "n_rx_pkts":5540404,
            "n_tx_bawadv":5805215,
            "n_tx_bawretries":550065,
            "n_tx_pkts":6092655,
            "n_tx_queue":3775967,
            "n_tx_retries":550071,
            "n_tx_xretries":689,
            "n_txaggr_compgood":2886029,
            "n_txaggr_compretries":550811,
            "n_txaggr_compxretry":0,
            "n_txaggr_prepends":267645,
            "name":"wifi0"
         },
         "builtin_ant_gain":3,
         "builtin_antenna":true,
         "ieee_modes":10,
         "max_txpower":20,
         "min_txpower":4,
         "name":"wifi0",
         "nss":2,
         "radio":"ng",
         "radio_caps":16404,
         "scan_table":[
            {
               "age":7,
               "band":"ng",
               "bssid":"0c:51:01:eb:9a:8c",
               "bw":20,
               "center_freq":2462,
               "channel":11,
               "essid":"",
               "freq":2462,
               "is_adhoc":false,
               "is_ubnt":false,
               "noise":-95,
               "rssi":4,
               "rssi_age":7,
               "security":"WPA2 (AES/CCMP)",
               "signal":-91
            },
            {
               "age":8,
               "band":"ng",
               "bssid":"f0:b4:29:81:ad:ca",
               "bw":20,
               "center_freq":2462,
               "channel":11,
               "essid":"Xiaomi@HERE_2.4G",
               "freq":2462,
               "is_adhoc":false,
               "is_ubnt":false,
               "noise":-95,
               "rssi":4,
               "rssi_age":8,
               "security":"WPA2 (AES/CCMP)",
               "signal":-91
            },
            {
               "age":2,
               "band":"ng",
               "bssid":"80:2a:a8:c7:7a:41",
               "bw":20,
               "center_freq":2462,
               "channel":11,
               "essid":"The House",
               "freq":2462,
               "is_adhoc":false,
               "is_default":false,
               "is_isolated":false,
               "is_locating":false,
               "is_meshv3":false,
               "is_ubnt":true,
               "is_unifi":true,
               "is_vport":false,
               "is_vwire":false,
               "model":"U7LT",
               "model_display":"UAP-AC-Lite",
               "noise":-95,
               "rssi":6,
               "rssi_age":2,
               "security":"WPA2 (AES/CCMP)",
               "serialno":"802AA8C67A41",
               "signal":-89
            },
            {
               "age":0,
               "band":"ng",
               "bssid":"4a:0e:14:84:3b:dd",
               "bw":20,
               "center_freq":2462,
               "channel":11,
               "essid":"Vodafone Homespot",
               "freq":2462,
               "is_adhoc":false,
               "is_ubnt":false,
               "noise":-95,
               "rssi":5,
               "rssi_age":0,
               "security":"Open",
               "signal":-90
            },
            {
               "age":1,
               "band":"ng",
               "bssid":"c8:0e:14:84:3b:dd",
               "bw":20,
               "center_freq":2462,
               "channel":11,
               "essid":"Enjoy our sexy noises",
               "freq":2462,
               "is_adhoc":false,
               "is_ubnt":false,
               "noise":-95,
               "rssi":6,
               "rssi_age":1,
               "security":"WPA2 (AES/CCMP)",
               "signal":-89
            },
            {
               "age":2,
               "band":"ng",
               "bssid":"bc:14:01:b5:96:98",
               "bw":20,
               "center_freq":2462,
               "channel":11,
               "essid":"HITRON-9690",
               "freq":2462,
               "is_adhoc":false,
               "is_ubnt":false,
               "noise":-95,
               "rssi":11,
               "rssi_age":2,
               "security":"WPA2 (AES/CCMP)",
               "signal":-84
            },
            {
               "age":1,
               "band":"ng",
               "bssid":"3a:0e:14:84:3b:dd",
               "bw":20,
               "center_freq":2462,
               "channel":11,
               "essid":"Vodafone Hotspot",
               "freq":2462,
               "is_adhoc":false,
               "is_ubnt":false,
               "noise":-95,
               "rssi":6,
               "rssi_age":1,
               "security":"Open",
               "signal":-89
            },
            {
               "age":0,
               "band":"ng",
               "bssid":"4a:0e:14:98:39:3f",
               "bw":40,
               "center_freq":2452,
               "channel":11,
               "essid":"Vodafone Homespot",
               "freq":2462,
               "is_adhoc":false,
               "is_ubnt":false,
               "noise":-95,
               "rssi":6,
               "rssi_age":0,
               "security":"Open",
               "signal":-89
            },
            {
               "age":1,
               "band":"ng",
               "bssid":"3a:0e:14:98:39:3f",
               "bw":40,
               "center_freq":2452,
               "channel":11,
               "essid":"Vodafone Hotspot",
               "freq":2462,
               "is_adhoc":false,
               "is_ubnt":false,
               "noise":-95,
               "rssi":6,
               "rssi_age":1,
               "security":"Open",
               "signal":-89
            },
            {
               "age":0,
               "band":"ng",
               "bssid":"c8:0e:14:98:39:3f",
               "bw":40,
               "center_freq":2452,
               "channel":11,
               "essid":"FRITZ!Box 6490 Cable",
               "freq":2462,
               "is_adhoc":false,
               "is_ubnt":false,
               "noise":-95,
               "rssi":6,
               "rssi_age":0,
               "security":"WPA2 (AES/CCMP)",
               "signal":-89
            },
            {
               "age":0,
               "band":"ng",
               "bssid":"80:2a:a8:57:53:dc",
               "bw":20,
               "center_freq":2462,
               "channel":11,
               "essid":"cheesecakefactory2",
               "freq":2462,
               "is_adhoc":false,
               "is_default":false,
               "is_isolated":false,
               "is_locating":false,
               "is_meshv3":false,
               "is_ubnt":true,
               "is_unifi":true,
               "is_vport":false,
               "is_vwire":false,
               "model":"U7PG2",
               "model_display":"UAP-AC-Pro-Gen2",
               "noise":-95,
               "rssi":18,
               "rssi_age":0,
               "security":"WPA2 (AES/CCMP)",
               "serialno":"802AA85653DC",
               "signal":-77
            },
            {
               "age":0,
               "band":"ng",
               "bssid":"b8:8d:12:67:a9:13",
               "bw":20,
               "center_freq":2462,
               "channel":11,
               "essid":"oldcheesecakefactory",
               "freq":2462,
               "is_adhoc":false,
               "is_ubnt":false,
               "noise":-95,
               "rssi":21,
               "rssi_age":0,
               "security":"WPA2 (AES/CCMP)",
               "signal":-74
            }
         ]
      },
      {
         "athstats":{
            "ast_ath_reset":26,
            "ast_be_xmit":1032259,
            "ast_cst":0,
            "ast_deadqueue_reset":12,
            "ast_fullqueue_stop":0,
            "ast_txto":0,
            "cu_self_rx":0,
            "cu_self_tx":0,
            "cu_total":1,
            "n_rx_aggr":161723,
            "n_rx_pkts":2194767,
            "n_tx_bawadv":1626549,
            "n_tx_bawretries":0,
            "n_tx_pkts":1080,
            "n_tx_queue":0,
            "n_tx_retries":1,
            "n_tx_xretries":86506,
            "n_txaggr_compgood":0,
            "n_txaggr_compretries":0,
            "n_txaggr_compxretry":0,
            "n_txaggr_prepends":0,
            "name":"wifi1"
         },
         "builtin_ant_gain":3,
         "builtin_antenna":true,
         "has_dfs":true,
         "has_fccdfs":true,
         "ieee_modes":21,
         "is_11ac":true,
         "max_txpower":20,
         "min_txpower":4,
         "name":"wifi1",
         "nss":2,
         "radio":"na",
         "radio_caps":50479124,
         "scan_table":[

         ]
      }
   ],
   "required_version":"3.4.1",
   "scan_radio_table":[

   ],
   "selfrun_beacon":true,
   "serial":"F09FC2A64848",
   "spectrum_scanning":false,
   "ssh_session_table":[

   ],
   "state":3,
   "stream_token":"",
   "sys_stats":{
      "loadavg_1":"0.02",
      "loadavg_15":"0.05",
      "loadavg_5":"0.04",
      "mem_buffer":0,
      "mem_total":129302528,
      "mem_used":73482240
   },
   "system-stats":{
      "cpu":"7.3",
      "mem":"56.8",
      "uptime":"52873"
   },
   "time":1526608770,
   "tm_ready":true,
   "uplink":"eth0",
   "uptime":52873,
   "vap_table":[
      {
         "bssid":"f0:9f:c2:a7:48:48",
         "ccq":965,
         "channel":11,
         "essid":"( ͡° ͜ʖ ͡°)",
         "id":"5a58c3b544aec5e245d5b080",
         "mac_filter_rejections":0,
         "name":"ath0",
         "num_sta":5,
         "radio":"ng",
         "radio_name":"wifi0",
         "rx_bytes":157938301,
         "rx_crypts":315,
         "rx_dropped":318,
         "rx_errors":318,
         "rx_frags":0,
         "rx_nwids":43517,
         "rx_packets":1032004,
         "sta_table":[
            {
               "auth_time":4294967256,
               "authorized":true,
               "ccq":946,
               "dhcpend_time":420,
               "dhcpstart_time":420,
               "hostname":"iPhonevonNastja",
               "idletime":13,
               "ip":"192.168.0.22",
               "is_11n":true,
               "mac":"b8:53:ac:55:27:ea",
               "noise":-109,
               "rssi":23,
               "rx_bytes":77421,
               "rx_mcast":0,
               "rx_packets":1054,
               "rx_rate":1000,
               "rx_retries":0,
               "serialno":"00:00:00:00:00:00",
               "signal":-86,
               "state":31,
               "state_ht":true,
               "state_pwrmgt":true,
               "tx_bytes":232307,
               "tx_packets":335,
               "tx_power":34,
               "tx_rate":39000,
               "tx_retries":274,
               "uptime":2450,
               "vlan_id":0
            },
            {
               "auth_time":4294967256,
               "authorized":true,
               "ccq":991,
               "dhcpend_time":960,
               "dhcpstart_time":960,
               "hostname":"amazon-f3aac00a6",
               "idletime":0,
               "ip":"192.168.0.11",
               "is_11n":true,
               "mac":"6c:56:97:b7:24:d1",
               "noise":-109,
               "rssi":50,
               "rx_bytes":506519,
               "rx_mcast":0,
               "rx_packets":7783,
               "rx_rate":24000,
               "rx_retries":0,
               "serialno":"00:00:00:00:00:00",
               "signal":-59,
               "state":31,
               "state_ht":true,
               "state_pwrmgt":true,
               "tx_bytes":173862,
               "tx_packets":861,
               "tx_power":34,
               "tx_rate":72222,
               "tx_retries":146,
               "uptime":3203,
               "vlan_id":0
            },
            {
               "auth_time":4294966146,
               "authorized":true,
               "ccq":991,
               "dhcpend_time":3570,
               "dhcpstart_time":3560,
               "hostname":"HS100",
               "idletime":15,
               "ip":"192.168.0.10",
               "is_11n":true,
               "mac":"70:4f:57:01:8b:e6",
               "noise":-109,
               "rssi":51,
               "rx_bytes":2342201,
               "rx_mcast":0,
               "rx_packets":11151,
               "rx_rate":65000,
               "rx_retries":0,
               "serialno":"00:00:00:00:00:00",
               "signal":-58,
               "state":15,
               "state_ht":true,
               "state_pwrmgt":false,
               "tx_bytes":1354410,
               "tx_packets":8731,
               "tx_power":34,
               "tx_rate":72222,
               "tx_retries":367,
               "uptime":27784,
               "vlan_id":0
            },
            {
               "auth_time":4294967276,
               "authorized":true,
               "ccq":991,
               "dhcpend_time":2000,
               "dhcpstart_time":2000,
               "hostname":"lumi-gateway-v3_miio63156958",
               "idletime":1,
               "ip":"192.168.0.13",
               "is_11n":true,
               "mac":"34:ce:00:fa:65:56",
               "noise":-109,
               "rssi":57,
               "rx_bytes":3373264,
               "rx_mcast":0,
               "rx_packets":18768,
               "rx_rate":72109,
               "rx_retries":0,
               "serialno":"00:00:00:00:00:00",
               "signal":-52,
               "state":15,
               "state_ht":true,
               "state_pwrmgt":false,
               "tx_bytes":542146,
               "tx_packets":6614,
               "tx_power":34,
               "tx_rate":65000,
               "tx_retries":96,
               "uptime":52855,
               "vlan_id":0
            },
            {
               "auth_time":4294967266,
               "authorized":true,
               "ccq":991,
               "dhcpend_time":0,
               "dhcpstart_time":0,
               "idletime":0,
               "ip":"192.168.0.24",
               "is_11n":false,
               "mac":"78:28:ca:27:68:f4",
               "noise":-109,
               "rssi":57,
               "rx_bytes":22305838,
               "rx_mcast":0,
               "rx_packets":96752,
               "rx_rate":24000,
               "rx_retries":0,
               "serialno":"00:00:00:00:00:00",
               "signal":-52,
               "state":5,
               "state_ht":false,
               "state_pwrmgt":false,
               "tx_bytes":12077961,
               "tx_packets":101105,
               "tx_power":34,
               "tx_rate":54000,
               "tx_retries":1903,
               "uptime":52856,
               "vlan_id":0
            }
         ],
         "state":"RUN",
         "tx_bytes":2120809527,
         "tx_dropped":22,
         "tx_errors":0,
         "tx_latency_avg":449,
         "tx_latency_max":4071,
         "tx_latency_min":0,
         "tx_packets":1699468,
         "tx_power":17,
         "tx_retries":2786,
         "up":true,
         "usage":"user"
      },
      {
         "bssid":"f2:9f:c2:a7:48:48",
         "ccq":970,
         "channel":11,
         "essid":"pipi",
         "id":"5a58c3f144aec5e245d5b088",
         "mac_filter_rejections":0,
         "name":"ath1",
         "num_sta":3,
         "radio":"ng",
         "radio_name":"wifi0",
         "rx_bytes":510005738,
         "rx_crypts":6,
         "rx_dropped":6,
         "rx_errors":6,
         "rx_frags":0,
         "rx_nwids":43466,
         "rx_packets":2998649,
         "sta_table":[
            {
               "auth_time":4294967276,
               "authorized":true,
               "ccq":991,
               "dhcpend_time":0,
               "dhcpstart_time":0,
               "idletime":0,
               "ip":"192.168.0.15",
               "is_11n":true,
               "mac":"8c:85:90:6d:a4:6f",
               "noise":-109,
               "rssi":26,
               "rx_bytes":7888440,
               "rx_mcast":0,
               "rx_packets":45883,
               "rx_rate":1000,
               "rx_retries":0,
               "serialno":"00:00:00:00:00:00",
               "signal":-83,
               "state":15,
               "state_ht":true,
               "state_pwrmgt":false,
               "tx_bytes":156177621,
               "tx_packets":123811,
               "tx_power":34,
               "tx_rate":144444,
               "tx_retries":2664,
               "uptime":472,
               "vlan_id":0
            },
            {
               "auth_time":4294967196,
               "authorized":true,
               "ccq":914,
               "dhcpend_time":860,
               "dhcpstart_time":860,
               "hostname":"hassbian",
               "idletime":0,
               "ip":"192.168.0.14",
               "is_11n":true,
               "mac":"b8:27:eb:0b:4d:97",
               "noise":-109,
               "rssi":33,
               "rx_bytes":417511075,
               "rx_mcast":0,
               "rx_packets":1786612,
               "rx_rate":72109,
               "rx_retries":0,
               "serialno":"00:00:00:00:00:00",
               "signal":-76,
               "state":15,
               "state_ht":true,
               "state_pwrmgt":false,
               "tx_bytes":593725066,
               "tx_packets":2031589,
               "tx_power":34,
               "tx_rate":72222,
               "tx_retries":418451,
               "uptime":51992,
               "vlan_id":0
            },
            {
               "auth_time":4294967276,
               "authorized":true,
               "ccq":991,
               "dhcpend_time":30,
               "dhcpstart_time":30,
               "hostname":"yeelink-light-strip1_miio724816",
               "idletime":5,
               "ip":"192.168.0.12",
               "is_11n":true,
               "mac":"78:11:dc:63:bd:c0",
               "noise":-109,
               "rssi":44,
               "rx_bytes":2687208,
               "rx_mcast":0,
               "rx_packets":18943,
               "rx_rate":65000,
               "rx_retries":0,
               "serialno":"00:00:00:00:00:00",
               "signal":-65,
               "state":15,
               "state_ht":true,
               "state_pwrmgt":false,
               "tx_bytes":1160718,
               "tx_packets":16087,
               "tx_power":34,
               "tx_rate":65000,
               "tx_retries":154,
               "uptime":52855,
               "vlan_id":0
            }
         ],
         "state":"RUN",
         "tx_bytes":4083366966,
         "tx_dropped":33,
         "tx_errors":0,
         "tx_latency_avg":413,
         "tx_latency_max":14575,
         "tx_latency_min":0,
         "tx_packets":4441886,
         "tx_power":17,
         "tx_retries":421269,
         "up":true,
         "usage":"user"
      },
      {
         "bssid":"ff:ff:ff:ff:ff:ff",
         "ccq":0,
         "channel":44,
         "essid":"",
         "extchannel":1,
         "id":"user",
         "mac_filter_rejections":0,
         "name":"ath2",
         "num_sta":0,
         "radio":"na",
         "radio_name":"wifi1",
         "rx_bytes":0,
         "rx_crypts":0,
         "rx_dropped":0,
         "rx_errors":0,
         "rx_frags":0,
         "rx_nwids":0,
         "rx_packets":0,
         "sta_table":[

         ],
         "state":"INIT",
         "tx_bytes":0,
         "tx_dropped":0,
         "tx_errors":0,
         "tx_latency_avg":4294967295,
         "tx_latency_max":4294967295,
         "tx_latency_min":4294967295,
         "tx_packets":0,
         "tx_power":17,
         "tx_retries":0,
         "up":false,
         "usage":"uplink"
      },
      {
         "bssid":"f2:9f:c2:a8:48:48",
         "ccq":662,
         "channel":44,
         "essid":"( ͡◉ ͜ʖ ͡◉)",
         "extchannel":1,
         "id":"5a58c3b544aec5e245d5b080",
         "mac_filter_rejections":0,
         "name":"ath3",
         "num_sta":2,
         "radio":"na",
         "radio_name":"wifi1",
         "rx_bytes":140683034,
         "rx_crypts":2462,
         "rx_dropped":2462,
         "rx_errors":2462,
         "rx_frags":0,
         "rx_nwids":514,
         "rx_packets":1013080,
         "sta_table":[
            {
               "auth_time":4294967286,
               "authorized":true,
               "ccq":991,
               "dhcpend_time":160,
               "dhcpstart_time":160,
               "hostname":"iPhonevrichHeld",
               "idletime":6,
               "ip":"192.168.0.21",
               "is_11a":true,
               "is_11ac":true,
               "is_11n":true,
               "mac":"40:98:ad:17:a9:a9",
               "noise":-102,
               "rssi":12,
               "rx_bytes":8033046,
               "rx_mcast":0,
               "rx_packets":14292,
               "rx_rate":30000,
               "rx_retries":0,
               "serialno":"00:00:00:00:00:00",
               "signal":-90,
               "state":11,
               "state_ht":true,
               "state_pwrmgt":false,
               "tx_bytes":8194913,
               "tx_packets":11432,
               "tx_power":34,
               "tx_rate":54000,
               "tx_retries":0,
               "uptime":17811,
               "vlan_id":0
            },
            {
               "auth_time":4294967216,
               "authorized":true,
               "ccq":333,
               "dhcpend_time":460,
               "dhcpstart_time":460,
               "hostname":"android-9ebd3b613a170867",
               "idletime":29,
               "ip":"192.168.0.28",
               "is_11a":true,
               "is_11ac":true,
               "is_11n":true,
               "mac":"2c:26:17:04:1f:0b",
               "noise":-102,
               "rssi":38,
               "rx_bytes":505641,
               "rx_mcast":0,
               "rx_packets":2530,
               "rx_rate":400000,
               "rx_retries":0,
               "serialno":"00:00:00:00:00:00",
               "signal":-64,
               "state":11,
               "state_ht":true,
               "state_pwrmgt":false,
               "tx_bytes":1575656,
               "tx_packets":2617,
               "tx_power":34,
               "tx_rate":400000,
               "tx_retries":0,
               "uptime":23138,
               "vlan_id":0
            }
         ],
         "state":"RUN",
         "tx_bytes":3713691413,
         "tx_dropped":61,
         "tx_errors":47759,
         "tx_latency_avg":140,
         "tx_latency_max":140,
         "tx_latency_min":140,
         "tx_packets":2723800,
         "tx_power":17,
         "tx_retries":0,
         "up":true,
         "usage":"user"
      },
      {
         "bssid":"02:9f:c2:a8:48:48",
         "ccq":0,
         "channel":44,
         "essid":"pipi",
         "extchannel":1,
         "id":"5a58c3f144aec5e245d5b088",
         "mac_filter_rejections":0,
         "name":"ath4",
         "num_sta":0

So that’s every line? You didn’t forget or accidentally leave anything off? Because that isn’t valid, it’s like it just stopped half way

hi…
i have the same issue.
even all the wifi device not avalible until i make a restart to the AP…
I ALSO upgrade to the last firmware for ap.

Has this issue been fixed: I am getting Failed to decode also.
I can ssh to the AP and the JSON data is correct.

Does it always happen or only after running for awhile?

I’m seeing the same thing. Since updating to 0.83.3, my presence detection no long works, and I’m getting the error “Failed to decode response from AP”. I updated my AP to the latest firmware last night, but there was no change. Ran the mca-dump command, and the JSON response looks ok.

So another user found an issue. That user was having intermittent issues and it turned out there was a nearby access point (a neighbor or something) that had a " in the name. Possible that the same thing is happening to you?

Can you enable debug logs for HA and when you get the error send me the raw JSON that gets dumped to the log?

I’ve set my logger to debug, but I’m still only seeing this:

2018-12-07 11:15:43 ERROR (SyncWorker_4) [homeassistant.components.device_tracker.unifi_direct] Failed to decode response from AP.

Make sure you don’t have more than one logger in your config.

yeah still not getting any more info in my logs. is there anywhere else i can check?

You can explicitly tell the logger to set the unifi to debug

logger:
  default: info
  logs:
    homeassistant.components.device_tracker.unifi_direct: debug

that gives me more info during boot, but no json debug messages for unifi direct.

I am not sure then. Adding that exact line gets me tons of output. I know the other user that found the " problem was having a hard time getting logging to work and it was because there were two logger sections in his config.

I am getting these errors in the log about every minute. I have today updated to the latest AP firmware, but still the same. However, the device tracking works like a charm, but the errors flooding the log are seriously annoying.

You are lucky. I’ve the same error. But the tracking is not working for me.

so i updated the fw on both my ap’s and also the controller, but now im getting the same issue. restarting home-assistant doesnt help.
the dump has tons of info, but its not printing on a new line. if i remove the expression | tr -d “\n” then it prints on a new line properly