dmamontov / hass-miwifi

MiWiFi for Home Assistant
https://community.home-assistant.io/t/xiaomi-miwifi-component-for-tracking-devices-and-managing-routers/288734
Apache License 2.0
154 stars 16 forks source link

Internal server error during connection attempt #80

Closed ConorIA closed 2 years ago

ConorIA commented 2 years ago

I have an AX3600 with firmware that was de-spied using this tutorial and it seems to be throwing an error for the wifi_detail_all request.

I noticed that ever since I set up a custom VLAN on the IOT antenna to sandbox a device, sometimes on the GUI don't load correctly. I assume that this may be related.

Given that many of the requests are working, is it possible to rescue whatever data gets a good response, and just discard (or set unavailable) the data that gets a bad respone?

2022-06-12 09:04:18 DEBUG (MainThread) [custom_components.miwifi.luci] Connection error (http://192.168.31.1/cgi-bin/luci/api/misystem/topo_graph): All connection attempts failed
2022-06-12 09:04:22 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqsystem/check_rom_update): b'{"status":{"status":0,"percent":0},"msg":"Couldn\'t check for updates","code":1504}'
2022-06-12 09:04:22 DEBUG (MainThread) [custom_components.miwifi.luci] Invalid error code received (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqsystem/check_rom_update): {'status': {'status': 0, 'percent': 0}, 'msg': "Couldn't check for updates", 'code': 1504}
2022-06-12 09:04:22 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqnetwork/mode): b'{"mode":0,"code":0}'
2022-06-12 09:04:22 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqnetwork/wan_info): b'{"info":{"mac":"28:D1:27:70:8E:FD","mtu":"1500","details":{"wanType":"dhcp","peerdns":"0","dns":["192.168.1.121"],"ifname":"eth1"},"gateWay":"209.202.200.129","dnsAddrs1":"","status":1,"uptime":168,"dnsAddrs":"192.168.1.121","ipv6_info":{"wanType":"off"},"ipv6_show":1,"link":1,"ipv4":[{"mask":"255.255.255.224","ip":"209.202.200.147"}]},"code":0}'
2022-06-12 09:04:23 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/misystem/led): b'{"status":1,"code":0}'
2022-06-12 09:04:23 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqnetwork/wifi_detail_all): b'Internal Server Error'
2022-06-12 09:04:23 DEBUG (MainThread) [custom_components.miwifi.luci] Connection error (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqnetwork/wifi_detail_all): Expecting value: line 1 column 1 (char 0)
2022-06-12 09:04:23 WARNING (MainThread) [custom_components.miwifi.updater] Error connecting to router (attempt #1 of 10): LuciConnectionError('Connection error')
2022-06-12 09:04:24 DEBUG (MainThread) [custom_components.miwifi.luci] Start request (http://192.168.1.1/cgi-bin/luci/api/xqsystem/login): {"username": "admin", "logtype": "2", "password": "REDACTED", "nonce": "0_70:85:c2:00:fe:4a_1655039064_983"}
2022-06-12 09:04:24 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/api/xqsystem/login): b'{"url":"/cgi-bin/luci/;stok=REDACTED/web/home","token":"REDACTED","code":0}'
2022-06-12 09:04:24 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqsystem/init_info): b'{"romversion":"3.0.22","countrycode":"EN","code":0,"id":"29010/E0RV26706","routername":"iChuya II","inited":1,"connect":0,"routerId":"8b8be553-3260-3034-5bcf-b14d057dc560","model":"xiaomi.router.r3600","hardware":"R3600","bound":0,"language":"en","modules":{"replacement_assistant":"1"}}'
2022-06-12 09:04:26 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/misystem/status): b'{"dev":[{"mac":"AA:9B:B8:32:3C:B6","maxdownloadspeed":"1297127","isap":0,"upload":"1022618","upspeed":"958","downspeed":"755","online":"119","devname":"Galaxy-Note9","maxuploadspeed":"23839","download":"10165747"},{"mac":"CC:F4:11:A5:B9:79","maxdownloadspeed":"121674","isap":0,"upload":"273216","upspeed":"260","downspeed":"18992","online":"124","devname":"Google-Nest-Mini","maxuploadspeed":"10607","download":"1293576"},{"mac":"20:DF:B9:6C:E8:FE","maxdownloadspeed":"113080","isap":0,"upload":"136620","upspeed":"728","downspeed":"19165","online":"149","devname":"Google-Home-Mini","maxuploadspeed":"7954","download":"939321"},{"mac":"54:60:09:FF:5E:3C","maxdownloadspeed":"114738","isap":0,"upload":"136191","upspeed":"664","downspeed":"19155","online":"154","devname":"Google-Home","maxuploadspeed":"8888","download":"931824"},{"mac":"70:85:C2:00:FE:4A","maxdownloadspeed":"30588","isap":0,"upload":"269224","upspeed":"3699","downspeed":"30588","online":"159","devname":"Rancher","maxuploadspeed":"8950","download":"726309"},{"mac":"1C:53:F9:1E:83:1A","maxdownloadspeed":"112527","isap":0,"upload":"62085","upspeed":"28","downspeed":"110","online":"154","devname":"1C:53:F9:1E:83:1A","maxuploadspeed":"4582","download":"598829"},{"mac":"00:04:4B:F4:0A:28","maxdownloadspeed":"91688","isap":0,"upload":"74316","upspeed":"0","downspeed":"0","online":"159","devname":"00:04:4B:F4:0A:28","maxuploadspeed":"3794","download":"502485"},{"mac":"D8:FC:93:95:14:83","maxdownloadspeed":"15308","isap":0,"upload":"138372","upspeed":"239","downspeed":"1615","online":"144","devname":"sumo2","maxuploadspeed":"4933","download":"384447"},{"mac":"52:2D:A8:EA:55:D8","maxdownloadspeed":"7883","isap":0,"upload":"23313","upspeed":"0","downspeed":"0","online":"64","devname":"Karla-s-Galaxy-A71","maxuploadspeed":"2940","download":"50210"},{"mac":"","maxdownloadspeed":"0","upload":105847,"download":77574,"ip":"","downspeed":0,"online":"149","devname":"Others","maxuploadspeed":"136","upspeed":585}],"code":0,"mem":{"usage":0.53,"total":"512MB","hz":"1333MHz","type":"DDR3"},"temperature":0,"count":{"all_without_mash":74,"online":26,"all":74,"online_without_mash":26},"hardware":{"mac":"28:D1:27:70:8E:FD","platform":"R3600","version":"3.0.22","channel":"release","sn":"29010/E0RV26706"},"upTime":"206.09","cpu":{"core":4,"hz":"1.4GHz","load":0},"wan":{"downspeed":"9595","maxdownloadspeed":"1304964","devname":"nil","upload":"2301615","upspeed":"5702","maxuploadspeed":"35383","download":"15827044"}}'
2022-06-12 09:04:31 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqsystem/check_rom_update): b'{"status":{"status":0,"percent":0},"msg":"Couldn\'t check for updates","code":1504}'
2022-06-12 09:04:31 DEBUG (MainThread) [custom_components.miwifi.luci] Invalid error code received (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqsystem/check_rom_update): {'status': {'status': 0, 'percent': 0}, 'msg': "Couldn't check for updates", 'code': 1504}
2022-06-12 09:04:31 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqnetwork/mode): b'{"mode":0,"code":0}'
2022-06-12 09:04:31 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqnetwork/wan_info): b'{"info":{"mac":"28:D1:27:70:8E:FD","mtu":"1500","details":{"wanType":"dhcp","peerdns":"0","dns":["192.168.1.121"],"ifname":"eth1"},"gateWay":"209.202.200.129","dnsAddrs1":"","status":1,"uptime":177,"dnsAddrs":"192.168.1.121","ipv6_info":{"wanType":"off"},"ipv6_show":1,"link":1,"ipv4":[{"mask":"255.255.255.224","ip":"209.202.200.147"}]},"code":0}'
2022-06-12 09:04:31 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/misystem/led): b'{"status":1,"code":0}'
2022-06-12 09:04:32 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqnetwork/wifi_detail_all): b'Internal Server Error'
2022-06-12 09:04:32 DEBUG (MainThread) [custom_components.miwifi.luci] Connection error (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqnetwork/wifi_detail_all): Expecting value: line 1 column 1 (char 0)
2022-06-12 09:04:32 WARNING (MainThread) [custom_components.miwifi.updater] Error connecting to router (attempt #2 of 10): LuciConnectionError('Connection error')
2022-06-12 09:04:36 DEBUG (MainThread) [custom_components.miwifi.luci] Start request (http://192.168.1.1/cgi-bin/luci/api/xqsystem/login): {"username": "admin", "logtype": "2", "password": "REDACTED", "nonce": "0_70:85:c2:00:fe:4a_1655039076_128"}
2022-06-12 09:04:39 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/api/xqsystem/login): b'{"url":"/cgi-bin/luci/;stok=REDACTED/web/home","token":"REDACTED","code":0}'
2022-06-12 09:04:40 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqsystem/init_info): b'{"romversion":"3.0.22","countrycode":"EN","code":0,"id":"29010/E0RV26706","routername":"iChuya II","inited":1,"connect":0,"routerId":"8b8be553-3260-3034-5bcf-b14d057dc560","model":"xiaomi.router.r3600","hardware":"R3600","bound":0,"language":"en","modules":{"replacement_assistant":"1"}}'
2022-06-12 09:04:42 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/misystem/status): b'{"dev":[{"mac":"AA:9B:B8:32:3C:B6","maxdownloadspeed":"1297127","isap":0,"upload":"1210319","upspeed":"9628","downspeed":"144048","online":"135","devname":"Galaxy-Note9","maxuploadspeed":"23839","download":"13531302"},{"mac":"CC:F4:11:A5:B9:79","maxdownloadspeed":"121674","isap":0,"upload":"278635","upspeed":"10","downspeed":"10","online":"140","devname":"Google-Nest-Mini","maxuploadspeed":"10607","download":"1295451"},{"mac":"70:85:C2:00:FE:4A","maxdownloadspeed":"32715","isap":0,"upload":"331013","upspeed":"5195","downspeed":"23298","online":"175","devname":"Rancher","maxuploadspeed":"8950","download":"1025287"},{"mac":"20:DF:B9:6C:E8:FE","maxdownloadspeed":"113080","isap":0,"upload":"140862","upspeed":"26","downspeed":"0","online":"165","devname":"Google-Home-Mini","maxuploadspeed":"7954","download":"940363"},{"mac":"54:60:09:FF:5E:3C","maxdownloadspeed":"114738","isap":0,"upload":"140332","upspeed":"0","downspeed":"0","online":"170","devname":"Google-Home","maxuploadspeed":"8888","download":"932979"},{"mac":"1C:53:F9:1E:83:1A","maxdownloadspeed":"112527","isap":0,"upload":"62085","upspeed":"0","downspeed":"0","online":"170","devname":"1C:53:F9:1E:83:1A","maxuploadspeed":"4582","download":"598829"},{"mac":"00:04:4B:F4:0A:28","maxdownloadspeed":"91688","isap":0,"upload":"76534","upspeed":"0","downspeed":"0","online":"175","devname":"00:04:4B:F4:0A:28","maxuploadspeed":"3794","download":"510853"},{"mac":"D8:FC:93:95:14:83","maxdownloadspeed":"15308","isap":0,"upload":"153133","upspeed":"1282","downspeed":"2459","online":"160","devname":"sumo2","maxuploadspeed":"4933","download":"425391"},{"mac":"52:2D:A8:EA:55:D8","maxdownloadspeed":"7883","isap":0,"upload":"23365","upspeed":"0","downspeed":"0","online":"80","devname":"Karla-s-Galaxy-A71","maxuploadspeed":"2940","download":"50262"},{"mac":"","maxdownloadspeed":"0","upload":107791,"download":83048,"ip":"","downspeed":0,"online":"165","devname":"Others","maxuploadspeed":"136","upspeed":0}],"code":0,"mem":{"usage":0.54,"total":"512MB","hz":"1333MHz","type":"DDR3"},"temperature":0,"count":{"all_without_mash":74,"online":27,"all":74,"online_without_mash":27},"hardware":{"mac":"28:D1:27:70:8E:FD","platform":"R3600","version":"3.0.22","channel":"release","sn":"29010/E0RV26706"},"upTime":"222.09","cpu":{"core":4,"hz":"1.4GHz","load":0},"wan":{"downspeed":"169817","maxdownloadspeed":"1304964","devname":"nil","upload":"2555142","upspeed":"16143","maxuploadspeed":"35383","download":"19502127"}}'
2022-06-12 09:04:48 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqsystem/check_rom_update): b'{"status":{"status":0,"percent":0},"msg":"Couldn\'t check for updates","code":1504}'
2022-06-12 09:04:48 DEBUG (MainThread) [custom_components.miwifi.luci] Invalid error code received (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqsystem/check_rom_update): {'status': {'status': 0, 'percent': 0}, 'msg': "Couldn't check for updates", 'code': 1504}
2022-06-12 09:04:48 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqnetwork/mode): b'{"mode":0,"code":0}'
2022-06-12 09:04:48 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqnetwork/wan_info): b'{"info":{"mac":"28:D1:27:70:8E:FD","mtu":"1500","details":{"wanType":"dhcp","peerdns":"0","dns":["192.168.1.121"],"ifname":"eth1"},"gateWay":"209.202.200.129","dnsAddrs1":"","status":1,"uptime":194,"dnsAddrs":"192.168.1.121","ipv6_info":{"wanType":"off"},"ipv6_show":1,"link":1,"ipv4":[{"mask":"255.255.255.224","ip":"209.202.200.147"}]},"code":0}'
2022-06-12 09:04:48 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/misystem/led): b'{"status":1,"code":0}'
2022-06-12 09:04:49 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqnetwork/wifi_detail_all): b'Internal Server Error'
2022-06-12 09:04:49 DEBUG (MainThread) [custom_components.miwifi.luci] Connection error (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqnetwork/wifi_detail_all): Expecting value: line 1 column 1 (char 0)
2022-06-12 09:04:49 WARNING (MainThread) [custom_components.miwifi.updater] Error connecting to router (attempt #3 of 10): LuciConnectionError('Connection error')
2022-06-12 09:04:52 DEBUG (MainThread) [custom_components.miwifi.luci] Start request (http://192.168.1.1/cgi-bin/luci/api/xqsystem/login): {"username": "admin", "logtype": "2", "password": "REDACTED", "nonce": "0_70:85:c2:00:fe:4a_1655039092_596"}
2022-06-12 09:04:52 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/api/xqsystem/login): b'{"url":"/cgi-bin/luci/;stok=REDACTED/web/home","token":"REDACTED","code":0}'
2022-06-12 09:04:52 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqsystem/init_info): b'{"romversion":"3.0.22","countrycode":"EN","code":0,"id":"29010/E0RV26706","routername":"iChuya II","inited":1,"connect":0,"routerId":"8b8be553-3260-3034-5bcf-b14d057dc560","model":"xiaomi.router.r3600","hardware":"R3600","bound":0,"language":"en","modules":{"replacement_assistant":"1"}}'
2022-06-12 09:04:54 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/misystem/status): b'{"dev":[{"mac":"AA:9B:B8:32:3C:B6","maxdownloadspeed":"1297127","isap":0,"upload":"1224620","upspeed":"962","downspeed":"3132","online":"147","devname":"Galaxy-Note9","maxuploadspeed":"23839","download":"13554488"},{"mac":"CC:F4:11:A5:B9:79","maxdownloadspeed":"121674","isap":0,"upload":"280444","upspeed":"321","downspeed":"93","online":"152","devname":"Google-Nest-Mini","maxuploadspeed":"10607","download":"1295918"},{"mac":"70:85:C2:00:FE:4A","maxdownloadspeed":"32715","isap":0,"upload":"351904","upspeed":"909","downspeed":"1695","online":"187","devname":"Rancher","maxuploadspeed":"8950","download":"1069754"},{"mac":"20:DF:B9:6C:E8:FE","maxdownloadspeed":"113080","isap":0,"upload":"141187","upspeed":"54","downspeed":"46","online":"177","devname":"Google-Home-Mini","maxuploadspeed":"7954","download":"940648"},{"mac":"54:60:09:FF:5E:3C","maxdownloadspeed":"114738","isap":0,"upload":"141660","upspeed":"265","downspeed":"46","online":"182","devname":"Google-Home","maxuploadspeed":"8888","download":"933212"},{"mac":"1C:53:F9:1E:83:1A","maxdownloadspeed":"112527","isap":0,"upload":"62459","upspeed":"74","downspeed":"0","online":"182","devname":"1C:53:F9:1E:83:1A","maxuploadspeed":"4582","download":"598829"},{"mac":"00:04:4B:F4:0A:28","maxdownloadspeed":"91688","isap":0,"upload":"77495","upspeed":"124","downspeed":"0","online":"187","devname":"00:04:4B:F4:0A:28","maxuploadspeed":"3794","download":"510930"},{"mac":"D8:FC:93:95:14:83","maxdownloadspeed":"15308","isap":0,"upload":"157052","upspeed":"165","downspeed":"1165","online":"172","devname":"sumo2","maxuploadspeed":"4933","download":"442205"},{"mac":"52:2D:A8:EA:55:D8","maxdownloadspeed":"7883","isap":0,"upload":"23365","upspeed":"0","downspeed":"0","online":"92","devname":"Karla-s-Galaxy-A71","maxuploadspeed":"2940","download":"50262"},{"mac":"","maxdownloadspeed":"0","upload":108252,"download":83048,"ip":"","downspeed":0,"online":"177","devname":"Others","maxuploadspeed":"136","upspeed":0}],"code":0,"mem":{"usage":0.54,"total":"512MB","hz":"1333MHz","type":"DDR3"},"temperature":0,"count":{"all_without_mash":74,"online":28,"all":74,"online_without_mash":28},"hardware":{"mac":"28:D1:27:70:8E:FD","platform":"R3600","version":"3.0.22","channel":"release","sn":"29010/E0RV26706"},"upTime":"234.08","cpu":{"core":4,"hz":"1.4GHz","load":0},"wan":{"downspeed":"6179","maxdownloadspeed":"1304964","devname":"nil","upload":"2599511","upspeed":"2877","maxuploadspeed":"35383","download":"19587656"}}'
2022-06-12 09:04:59 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqsystem/check_rom_update): b'{"status":{"status":0,"percent":0},"msg":"Couldn\'t check for updates","code":1504}'
2022-06-12 09:04:59 DEBUG (MainThread) [custom_components.miwifi.luci] Invalid error code received (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqsystem/check_rom_update): {'status': {'status': 0, 'percent': 0}, 'msg': "Couldn't check for updates", 'code': 1504}
2022-06-12 09:04:59 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqnetwork/mode): b'{"mode":0,"code":0}'
2022-06-12 09:04:59 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqnetwork/wan_info): b'{"info":{"mac":"28:D1:27:70:8E:FD","mtu":"1500","details":{"wanType":"dhcp","peerdns":"0","dns":["192.168.1.121"],"ifname":"eth1"},"gateWay":"209.202.200.129","dnsAddrs1":"","status":1,"uptime":205,"dnsAddrs":"192.168.1.121","ipv6_info":{"wanType":"off"},"ipv6_show":1,"link":1,"ipv4":[{"mask":"255.255.255.224","ip":"209.202.200.147"}]},"code":0}'
2022-06-12 09:04:59 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/misystem/led): b'{"status":1,"code":0}'
2022-06-12 09:05:00 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqnetwork/wifi_detail_all): b'Internal Server Error'
2022-06-12 09:05:00 DEBUG (MainThread) [custom_components.miwifi.luci] Connection error (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqnetwork/wifi_detail_all): Expecting value: line 1 column 1 (char 0)
2022-06-12 09:05:00 WARNING (MainThread) [custom_components.miwifi.updater] Error connecting to router (attempt #4 of 10): LuciConnectionError('Connection error')
2022-06-12 09:05:04 DEBUG (MainThread) [custom_components.miwifi.luci] Start request (http://192.168.1.1/cgi-bin/luci/api/xqsystem/login): {"username": "admin", "logtype": "2", "password": "REDACTED", "nonce": "0_70:85:c2:00:fe:4a_1655039104_142"}
2022-06-12 09:05:04 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/api/xqsystem/login): b'{"url":"/cgi-bin/luci/;stok=REDACTED/web/home","token":"REDACTED","code":0}'
2022-06-12 09:05:04 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqsystem/init_info): b'{"romversion":"3.0.22","countrycode":"EN","code":0,"id":"29010/E0RV26706","routername":"iChuya II","inited":1,"connect":0,"routerId":"8b8be553-3260-3034-5bcf-b14d057dc560","model":"xiaomi.router.r3600","hardware":"R3600","bound":0,"language":"en","modules":{"replacement_assistant":"1"}}'
2022-06-12 09:05:06 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/misystem/status): b'{"dev":[{"mac":"AA:9B:B8:32:3C:B6","maxdownloadspeed":"1297127","isap":0,"upload":"1283166","upspeed":"7234","downspeed":"2951","online":"159","devname":"Galaxy-Note9","maxuploadspeed":"23839","download":"13590094"},{"mac":"CC:F4:11:A5:B9:79","maxdownloadspeed":"121674","isap":0,"upload":"280605","upspeed":"10","downspeed":"10","online":"164","devname":"Google-Nest-Mini","maxuploadspeed":"10607","download":"1296022"},{"mac":"70:85:C2:00:FE:4A","maxdownloadspeed":"32715","isap":0,"upload":"353866","upspeed":"326","downspeed":"222","online":"199","devname":"Rancher","maxuploadspeed":"8950","download":"1071324"},{"mac":"20:DF:B9:6C:E8:FE","maxdownloadspeed":"113080","isap":0,"upload":"141239","upspeed":"0","downspeed":"0","online":"189","devname":"Google-Home-Mini","maxuploadspeed":"7954","download":"940700"},{"mac":"54:60:09:FF:5E:3C","maxdownloadspeed":"114738","isap":0,"upload":"141764","upspeed":"10","downspeed":"10","online":"194","devname":"Google-Home","maxuploadspeed":"8888","download":"933316"},{"mac":"1C:53:F9:1E:83:1A","maxdownloadspeed":"112527","isap":0,"upload":"63039","upspeed":"115","downspeed":"63","online":"194","devname":"1C:53:F9:1E:83:1A","maxuploadspeed":"4582","download":"599146"},{"mac":"00:04:4B:F4:0A:28","maxdownloadspeed":"91688","isap":0,"upload":"77957","upspeed":"0","downspeed":"0","online":"199","devname":"00:04:4B:F4:0A:28","maxuploadspeed":"3794","download":"510930"},{"mac":"D8:FC:93:95:14:83","maxdownloadspeed":"15308","isap":0,"upload":"159363","upspeed":"221","downspeed":"1177","online":"184","devname":"sumo2","maxuploadspeed":"4933","download":"456710"},{"mac":"52:2D:A8:EA:55:D8","maxdownloadspeed":"7883","isap":0,"upload":"23365","upspeed":"0","downspeed":"0","online":"104","devname":"Karla-s-Galaxy-A71","maxuploadspeed":"2940","download":"50262"},{"mac":"","maxdownloadspeed":"0","upload":108252,"download":83048,"ip":"","downspeed":0,"online":"189","devname":"Others","maxuploadspeed":"136","upspeed":0}],"code":0,"mem":{"usage":0.54,"total":"512MB","hz":"1333MHz","type":"DDR3"},"temperature":0,"count":{"all_without_mash":74,"online":28,"all":74,"online_without_mash":28},"hardware":{"mac":"28:D1:27:70:8E:FD","platform":"R3600","version":"3.0.22","channel":"release","sn":"29010/E0RV26706"},"upTime":"245.99","cpu":{"core":4,"hz":"1.4GHz","load":0},"wan":{"downspeed":"12869","maxdownloadspeed":"1304964","devname":"nil","upload":"2705780","upspeed":"8384","maxuploadspeed":"35383","download":"19704517"}}'
2022-06-12 09:05:11 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqsystem/check_rom_update): b'{"status":{"status":0,"percent":0},"msg":"Couldn\'t check for updates","code":1504}'
2022-06-12 09:05:11 DEBUG (MainThread) [custom_components.miwifi.luci] Invalid error code received (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqsystem/check_rom_update): {'status': {'status': 0, 'percent': 0}, 'msg': "Couldn't check for updates", 'code': 1504}
2022-06-12 09:05:11 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqnetwork/mode): b'{"mode":0,"code":0}'
2022-06-12 09:05:11 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqnetwork/wan_info): b'{"info":{"mac":"28:D1:27:70:8E:FD","mtu":"1500","details":{"wanType":"dhcp","peerdns":"0","dns":["192.168.1.121"],"ifname":"eth1"},"gateWay":"209.202.200.129","dnsAddrs1":"","status":1,"uptime":217,"dnsAddrs":"192.168.1.121","ipv6_info":{"wanType":"off"},"ipv6_show":1,"link":1,"ipv4":[{"mask":"255.255.255.224","ip":"209.202.200.147"}]},"code":0}'
2022-06-12 09:05:11 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/misystem/led): b'{"status":1,"code":0}'
2022-06-12 09:05:12 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqnetwork/wifi_detail_all): b'Internal Server Error'
2022-06-12 09:05:12 DEBUG (MainThread) [custom_components.miwifi.luci] Connection error (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqnetwork/wifi_detail_all): Expecting value: line 1 column 1 (char 0)
2022-06-12 09:05:12 WARNING (MainThread) [custom_components.miwifi.updater] Error connecting to router (attempt #5 of 10): LuciConnectionError('Connection error')
2022-06-12 09:05:17 DEBUG (MainThread) [custom_components.miwifi.luci] Start request (http://192.168.1.1/cgi-bin/luci/api/xqsystem/login): {"username": "admin", "logtype": "2", "password": "REDACTED", "nonce": "0_70:85:c2:00:fe:4a_1655039117_968"}
2022-06-12 09:05:17 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/api/xqsystem/login): b'{"url":"/cgi-bin/luci/;stok=REDACTED/web/home","token":"REDACTED","code":0}'
2022-06-12 09:05:17 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqsystem/init_info): b'{"romversion":"3.0.22","countrycode":"EN","code":0,"id":"29010/E0RV26706","routername":"iChuya II","inited":1,"connect":0,"routerId":"8b8be553-3260-3034-5bcf-b14d057dc560","model":"xiaomi.router.r3600","hardware":"R3600","bound":0,"language":"en","modules":{"replacement_assistant":"1"}}'
2022-06-12 09:05:18 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/misystem/status): b'{"dev":[{"mac":"AA:9B:B8:32:3C:B6","maxdownloadspeed":"1297127","isap":0,"upload":"1318789","upspeed":"1897","downspeed":"67719","online":"172","devname":"Galaxy-Note9","maxuploadspeed":"23839","download":"13943278"},{"mac":"CC:F4:11:A5:B9:79","maxdownloadspeed":"121674","isap":0,"upload":"280605","upspeed":"0","downspeed":"0","online":"177","devname":"Google-Nest-Mini","maxuploadspeed":"10607","download":"1296022"},{"mac":"70:85:C2:00:FE:4A","maxdownloadspeed":"32715","isap":0,"upload":"369896","upspeed":"502","downspeed":"44","online":"212","devname":"Rancher","maxuploadspeed":"8950","download":"1103184"},{"mac":"20:DF:B9:6C:E8:FE","maxdownloadspeed":"113080","isap":0,"upload":"142347","upspeed":"0","downspeed":"0","online":"202","devname":"Google-Home-Mini","maxuploadspeed":"7954","download":"941400"},{"mac":"54:60:09:FF:5E:3C","maxdownloadspeed":"114738","isap":0,"upload":"142872","upspeed":"0","downspeed":"0","online":"207","devname":"Google-Home","maxuploadspeed":"8888","download":"934016"},{"mac":"1C:53:F9:1E:83:1A","maxdownloadspeed":"112527","isap":0,"upload":"63039","upspeed":"0","downspeed":"0","online":"207","devname":"1C:53:F9:1E:83:1A","maxuploadspeed":"4582","download":"599146"},{"mac":"00:04:4B:F4:0A:28","maxdownloadspeed":"91688","isap":0,"upload":"78100","upspeed":"28","downspeed":"15","online":"212","devname":"00:04:4B:F4:0A:28","maxuploadspeed":"3794","download":"511007"},{"mac":"D8:FC:93:95:14:83","maxdownloadspeed":"15308","isap":0,"upload":"164942","upspeed":"484","downspeed":"1995","online":"197","devname":"sumo2","maxuploadspeed":"4933","download":"482263"},{"mac":"52:2D:A8:EA:55:D8","maxdownloadspeed":"22580","isap":0,"upload":"56346","upspeed":"41","downspeed":"0","online":"117","devname":"Karla-s-Galaxy-A71","maxuploadspeed":"5392","download":"175675"},{"mac":"","maxdownloadspeed":"0","upload":111718,"download":93844,"ip":"","downspeed":0,"online":"202","devname":"Others","maxuploadspeed":"136","upspeed":91}],"code":0,"mem":{"usage":0.54,"total":"512MB","hz":"1333MHz","type":"DDR3"},"temperature":0,"count":{"all_without_mash":74,"online":28,"all":74,"online_without_mash":28},"hardware":{"mac":"28:D1:27:70:8E:FD","platform":"R3600","version":"3.0.22","channel":"release","sn":"29010/E0RV26706"},"upTime":"258.90","cpu":{"core":4,"hz":"1.4GHz","load":0},"wan":{"downspeed":"69774","maxdownloadspeed":"1304964","devname":"nil","upload":"2759727","upspeed":"3046","maxuploadspeed":"35383","download":"20188197"}}'
2022-06-12 09:05:24 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqsystem/check_rom_update): b'{"status":{"status":0,"percent":0},"msg":"Couldn\'t check for updates","code":1504}'
2022-06-12 09:05:24 DEBUG (MainThread) [custom_components.miwifi.luci] Invalid error code received (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqsystem/check_rom_update): {'status': {'status': 0, 'percent': 0}, 'msg': "Couldn't check for updates", 'code': 1504}
2022-06-12 09:05:24 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqnetwork/mode): b'{"mode":0,"code":0}'
2022-06-12 09:05:24 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqnetwork/wan_info): b'{"info":{"mac":"28:D1:27:70:8E:FD","mtu":"1500","details":{"wanType":"dhcp","peerdns":"0","dns":["192.168.1.121"],"ifname":"eth1"},"gateWay":"209.202.200.129","dnsAddrs1":"","status":1,"uptime":230,"dnsAddrs":"192.168.1.121","ipv6_info":{"wanType":"off"},"ipv6_show":1,"link":1,"ipv4":[{"mask":"255.255.255.224","ip":"209.202.200.147"}]},"code":0}'
2022-06-12 09:05:24 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/misystem/led): b'{"status":1,"code":0}'
2022-06-12 09:05:24 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqnetwork/wifi_detail_all): b'Internal Server Error'
2022-06-12 09:05:24 DEBUG (MainThread) [custom_components.miwifi.luci] Connection error (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqnetwork/wifi_detail_all): Expecting value: line 1 column 1 (char 0)
2022-06-12 09:05:24 WARNING (MainThread) [custom_components.miwifi.updater] Error connecting to router (attempt #6 of 10): LuciConnectionError('Connection error')
2022-06-12 09:05:30 DEBUG (MainThread) [custom_components.miwifi.luci] Start request (http://192.168.1.1/cgi-bin/luci/api/xqsystem/login): {"username": "admin", "logtype": "2", "password": "REDACTED", "nonce": "0_70:85:c2:00:fe:4a_1655039130_157"}
2022-06-12 09:05:31 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/api/xqsystem/login): b'{"url":"/cgi-bin/luci/;stok=REDACTED/web/home","token":"REDACTED","code":0}'
2022-06-12 09:05:31 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqsystem/init_info): b'{"romversion":"3.0.22","countrycode":"EN","code":0,"id":"29010/E0RV26706","routername":"iChuya II","inited":1,"connect":0,"routerId":"8b8be553-3260-3034-5bcf-b14d057dc560","model":"xiaomi.router.r3600","hardware":"R3600","bound":0,"language":"en","modules":{"replacement_assistant":"1"}}'
2022-06-12 09:05:32 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/misystem/status): b'{"dev":[{"mac":"AA:9B:B8:32:3C:B6","maxdownloadspeed":"1297127","isap":0,"upload":"1436923","upspeed":"14766","downspeed":"72417","online":"186","devname":"Galaxy-Note9","maxuploadspeed":"23839","download":"14605187"},{"mac":"CC:F4:11:A5:B9:79","maxdownloadspeed":"121674","isap":0,"upload":"281471","upspeed":"133","downspeed":"0","online":"191","devname":"Google-Nest-Mini","maxuploadspeed":"10607","download":"1296022"},{"mac":"70:85:C2:00:FE:4A","maxdownloadspeed":"32715","isap":0,"upload":"380284","upspeed":"340","downspeed":"588","online":"226","devname":"Rancher","maxuploadspeed":"8950","download":"1129962"},{"mac":"20:DF:B9:6C:E8:FE","maxdownloadspeed":"113080","isap":0,"upload":"143292","upspeed":"144","downspeed":"10","online":"216","devname":"Google-Home-Mini","maxuploadspeed":"7954","download":"941633"},{"mac":"54:60:09:FF:5E:3C","maxdownloadspeed":"114738","isap":0,"upload":"144200","upspeed":"210","downspeed":"0","online":"221","devname":"Google-Home","maxuploadspeed":"8888","download":"934249"},{"mac":"1C:53:F9:1E:83:1A","maxdownloadspeed":"112527","isap":0,"upload":"63413","upspeed":"74","downspeed":"0","online":"221","devname":"1C:53:F9:1E:83:1A","maxuploadspeed":"4582","download":"599146"},{"mac":"00:04:4B:F4:0A:28","maxdownloadspeed":"91688","isap":0,"upload":"78860","upspeed":"151","downspeed":"0","online":"226","devname":"00:04:4B:F4:0A:28","maxuploadspeed":"3794","download":"511007"},{"mac":"D8:FC:93:95:14:83","maxdownloadspeed":"15308","isap":0,"upload":"168386","upspeed":"244","downspeed":"1329","online":"211","devname":"sumo2","maxuploadspeed":"4933","download":"503476"},{"mac":"52:2D:A8:EA:55:D8","maxdownloadspeed":"22580","isap":0,"upload":"56346","upspeed":"0","downspeed":"0","online":"131","devname":"Karla-s-Galaxy-A71","maxuploadspeed":"5392","download":"175675"},{"mac":"","maxdownloadspeed":"0","upload":111718,"download":93844,"ip":"","downspeed":0,"online":"216","devname":"Others","maxuploadspeed":"136","upspeed":0}],"code":0,"mem":{"usage":0.54,"total":"512MB","hz":"1333MHz","type":"DDR3"},"temperature":0,"count":{"all_without_mash":74,"online":28,"all":74,"online_without_mash":28},"hardware":{"mac":"28:D1:27:70:8E:FD","platform":"R3600","version":"3.0.22","channel":"release","sn":"29010/E0RV26706"},"upTime":"272.81","cpu":{"core":4,"hz":"1.4GHz","load":0},"wan":{"downspeed":"74345","maxdownloadspeed":"1304964","devname":"nil","upload":"2895966","upspeed":"16066","maxuploadspeed":"35383","download":"20898563"}}'
2022-06-12 09:05:38 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqsystem/check_rom_update): b'{"status":{"status":0,"percent":0},"msg":"Couldn\'t check for updates","code":1504}'
2022-06-12 09:05:38 DEBUG (MainThread) [custom_components.miwifi.luci] Invalid error code received (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqsystem/check_rom_update): {'status': {'status': 0, 'percent': 0}, 'msg': "Couldn't check for updates", 'code': 1504}
2022-06-12 09:05:38 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqnetwork/mode): b'{"mode":0,"code":0}'
2022-06-12 09:05:38 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqnetwork/wan_info): b'{"info":{"mac":"28:D1:27:70:8E:FD","mtu":"1500","details":{"wanType":"dhcp","peerdns":"0","dns":["192.168.1.121"],"ifname":"eth1"},"gateWay":"209.202.200.129","dnsAddrs1":"","status":1,"uptime":244,"dnsAddrs":"192.168.1.121","ipv6_info":{"wanType":"off"},"ipv6_show":1,"link":1,"ipv4":[{"mask":"255.255.255.224","ip":"209.202.200.147"}]},"code":0}'
2022-06-12 09:05:38 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/misystem/led): b'{"status":1,"code":0}'
2022-06-12 09:05:38 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqnetwork/wifi_detail_all): b'Internal Server Error'
2022-06-12 09:05:38 DEBUG (MainThread) [custom_components.miwifi.luci] Connection error (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqnetwork/wifi_detail_all): Expecting value: line 1 column 1 (char 0)
2022-06-12 09:05:38 WARNING (MainThread) [custom_components.miwifi.updater] Error connecting to router (attempt #7 of 10): LuciConnectionError('Connection error')
2022-06-12 09:05:45 DEBUG (MainThread) [custom_components.miwifi.luci] Start request (http://192.168.1.1/cgi-bin/luci/api/xqsystem/login): {"username": "admin", "logtype": "2", "password": "REDACTED", "nonce": "0_70:85:c2:00:fe:4a_1655039145_521"}
2022-06-12 09:05:46 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/api/xqsystem/login): b'{"url":"/cgi-bin/luci/;stok=REDACTED/web/home","token":"REDACTED","code":0}'
2022-06-12 09:05:46 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqsystem/init_info): b'{"romversion":"3.0.22","countrycode":"EN","code":0,"id":"29010/E0RV26706","routername":"iChuya II","inited":1,"connect":0,"routerId":"8b8be553-3260-3034-5bcf-b14d057dc560","model":"xiaomi.router.r3600","hardware":"R3600","bound":0,"language":"en","modules":{"replacement_assistant":"1"}}'
2022-06-12 09:05:47 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/misystem/status): b'{"dev":[{"mac":"AA:9B:B8:32:3C:B6","maxdownloadspeed":"1596979","isap":0,"upload":"7829764","upspeed":"781887","downspeed":"1596979","online":"201","devname":"Galaxy-Note9","maxuploadspeed":"781887","download":"34311398"},{"mac":"CC:F4:11:A5:B9:79","maxdownloadspeed":"121674","isap":0,"upload":"281575","upspeed":"0","downspeed":"0","online":"206","devname":"Google-Nest-Mini","maxuploadspeed":"10607","download":"1296126"},{"mac":"70:85:C2:00:FE:4A","maxdownloadspeed":"32715","isap":0,"upload":"401009","upspeed":"686","downspeed":"880","online":"241","devname":"Rancher","maxuploadspeed":"8950","download":"1173614"},{"mac":"20:DF:B9:6C:E8:FE","maxdownloadspeed":"113080","isap":0,"upload":"143697","upspeed":"0","downspeed":"0","online":"231","devname":"Google-Home-Mini","maxuploadspeed":"7954","download":"941866"},{"mac":"54:60:09:FF:5E:3C","maxdownloadspeed":"114738","isap":0,"upload":"144671","upspeed":"0","downspeed":"0","online":"236","devname":"Google-Home","maxuploadspeed":"8888","download":"934856"},{"mac":"1C:53:F9:1E:83:1A","maxdownloadspeed":"112527","isap":0,"upload":"63413","upspeed":"0","downspeed":"0","online":"236","devname":"1C:53:F9:1E:83:1A","maxuploadspeed":"4582","download":"599146"},{"mac":"D8:FC:93:95:14:83","maxdownloadspeed":"15308","isap":0,"upload":"179725","upspeed":"295","downspeed":"1203","online":"226","devname":"sumo2","maxuploadspeed":"4933","download":"531737"},{"mac":"00:04:4B:F4:0A:28","maxdownloadspeed":"91688","isap":0,"upload":"85819","upspeed":"120","downspeed":"15","online":"241","devname":"00:04:4B:F4:0A:28","maxuploadspeed":"3794","download":"517334"},{"mac":"52:2D:A8:EA:55:D8","maxdownloadspeed":"22580","isap":0,"upload":"56346","upspeed":"0","downspeed":"0","online":"146","devname":"Karla-s-Galaxy-A71","maxuploadspeed":"5392","download":"175675"},{"mac":"","maxdownloadspeed":"0","upload":151050,"download":199879,"ip":"","downspeed":8686,"online":"231","devname":"Others","maxuploadspeed":"136","upspeed":2964}],"code":0,"mem":{"usage":0.54,"total":"512MB","hz":"1333MHz","type":"DDR3"},"temperature":0,"count":{"all_without_mash":74,"online":29,"all":74,"online_without_mash":29},"hardware":{"mac":"28:D1:27:70:8E:FD","platform":"R3600","version":"3.0.22","channel":"release","sn":"29010/E0RV26706"},"upTime":"287.76","cpu":{"core":4,"hz":"1.4GHz","load":0},"wan":{"downspeed":"1607765","maxdownloadspeed":"1607765","devname":"nil","upload":"9368142","upspeed":"785954","maxuploadspeed":"785954","download":"40789993"}}'
2022-06-12 09:05:47 DEBUG (MainThread) [homeassistant.components.webhook] Handling webhook POST payload for 8aba1016b549691e6fdfe56db9049c1c117ce5435eeb9869291496c89b9f9974
2022-06-12 09:05:53 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqsystem/check_rom_update): b'{"status":{"status":0,"percent":0},"msg":"Couldn\'t check for updates","code":1504}'
2022-06-12 09:05:53 DEBUG (MainThread) [custom_components.miwifi.luci] Invalid error code received (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqsystem/check_rom_update): {'status': {'status': 0, 'percent': 0}, 'msg': "Couldn't check for updates", 'code': 1504}
2022-06-12 09:05:53 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqnetwork/mode): b'{"mode":0,"code":0}'
2022-06-12 09:05:53 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqnetwork/wan_info): b'{"info":{"mac":"28:D1:27:70:8E:FD","mtu":"1500","details":{"wanType":"dhcp","peerdns":"0","dns":["192.168.1.121"],"ifname":"eth1"},"gateWay":"209.202.200.129","dnsAddrs1":"","status":1,"uptime":259,"dnsAddrs":"192.168.1.121","ipv6_info":{"wanType":"off"},"ipv6_show":1,"link":1,"ipv4":[{"mask":"255.255.255.224","ip":"209.202.200.147"}]},"code":0}'
2022-06-12 09:05:53 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/misystem/led): b'{"status":1,"code":0}'
2022-06-12 09:05:53 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqnetwork/wifi_detail_all): b'Internal Server Error'
2022-06-12 09:05:53 DEBUG (MainThread) [custom_components.miwifi.luci] Connection error (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqnetwork/wifi_detail_all): Expecting value: line 1 column 1 (char 0)
2022-06-12 09:05:53 WARNING (MainThread) [custom_components.miwifi.updater] Error connecting to router (attempt #8 of 10): LuciConnectionError('Connection error')
2022-06-12 09:06:01 DEBUG (MainThread) [custom_components.miwifi.luci] Start request (http://192.168.1.1/cgi-bin/luci/api/xqsystem/login): {"username": "admin", "logtype": "2", "password": "REDACTED", "nonce": "0_70:85:c2:00:fe:4a_1655039161_891"}
2022-06-12 09:06:02 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/api/xqsystem/login): b'{"url":"/cgi-bin/luci/;stok=REDACTED/web/home","token":"REDACTED","code":0}'
2022-06-12 09:06:02 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqsystem/init_info): b'{"romversion":"3.0.22","countrycode":"EN","code":0,"id":"29010/E0RV26706","routername":"iChuya II","inited":1,"connect":0,"routerId":"8b8be553-3260-3034-5bcf-b14d057dc560","model":"xiaomi.router.r3600","hardware":"R3600","bound":0,"language":"en","modules":{"replacement_assistant":"1"}}'
2022-06-12 09:06:03 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/misystem/status): b'{"dev":[{"mac":"AA:9B:B8:32:3C:B6","maxdownloadspeed":"1596979","isap":0,"upload":"10195808","upspeed":"297325","downspeed":"9824","online":"217","devname":"Galaxy-Note9","maxuploadspeed":"781887","download":"34634870"},{"mac":"CC:F4:11:A5:B9:79","maxdownloadspeed":"121674","isap":0,"upload":"283755","upspeed":"0","downspeed":"0","online":"222","devname":"Google-Nest-Mini","maxuploadspeed":"10607","download":"1296645"},{"mac":"70:85:C2:00:FE:4A","maxdownloadspeed":"32715","isap":0,"upload":"421231","upspeed":"40","downspeed":"51","online":"257","devname":"Rancher","maxuploadspeed":"8950","download":"1225796"},{"mac":"20:DF:B9:6C:E8:FE","maxdownloadspeed":"113080","isap":0,"upload":"145354","upspeed":"0","downspeed":"0","online":"247","devname":"Google-Home-Mini","maxuploadspeed":"7954","download":"942151"},{"mac":"54:60:09:FF:5E:3C","maxdownloadspeed":"114738","isap":0,"upload":"146208","upspeed":"0","downspeed":"0","online":"252","devname":"Google-Home","maxuploadspeed":"8888","download":"935193"},{"mac":"1C:53:F9:1E:83:1A","maxdownloadspeed":"112527","isap":0,"upload":"65809","upspeed":"115","downspeed":"63","online":"252","devname":"1C:53:F9:1E:83:1A","maxuploadspeed":"4582","download":"599463"},{"mac":"D8:FC:93:95:14:83","maxdownloadspeed":"15308","isap":0,"upload":"185989","upspeed":"176","downspeed":"1615","online":"242","devname":"sumo2","maxuploadspeed":"4933","download":"558192"},{"mac":"00:04:4B:F4:0A:28","maxdownloadspeed":"91688","isap":0,"upload":"86943","upspeed":"0","downspeed":"0","online":"257","devname":"00:04:4B:F4:0A:28","maxuploadspeed":"3794","download":"517334"},{"mac":"52:2D:A8:EA:55:D8","maxdownloadspeed":"22580","isap":0,"upload":"56346","upspeed":"0","downspeed":"0","online":"161","devname":"Karla-s-Galaxy-A71","maxuploadspeed":"5392","download":"175675"},{"mac":"","maxdownloadspeed":"0","upload":151554,"download":200115,"ip":"","downspeed":0,"online":"247","devname":"Others","maxuploadspeed":"136","upspeed":15}],"code":0,"mem":{"usage":0.54,"total":"512MB","hz":"1333MHz","type":"DDR3"},"temperature":0,"count":{"all_without_mash":74,"online":29,"all":74,"online_without_mash":29},"hardware":{"mac":"28:D1:27:70:8E:FD","platform":"R3600","version":"3.0.22","channel":"release","sn":"29010/E0RV26706"},"upTime":"303.75","cpu":{"core":4,"hz":"1.4GHz","load":0},"wan":{"downspeed":"11554","maxdownloadspeed":"1607765","devname":"nil","upload":"11770070","upspeed":"297673","maxuploadspeed":"785954","download":"41193796"}}'
2022-06-12 09:06:09 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqsystem/check_rom_update): b'{"status":{"status":0,"percent":0},"msg":"Couldn\'t check for updates","code":1504}'
2022-06-12 09:06:09 DEBUG (MainThread) [custom_components.miwifi.luci] Invalid error code received (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqsystem/check_rom_update): {'status': {'status': 0, 'percent': 0}, 'msg': "Couldn't check for updates", 'code': 1504}
2022-06-12 09:06:09 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqnetwork/mode): b'{"mode":0,"code":0}'
2022-06-12 09:06:09 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqnetwork/wan_info): b'{"info":{"mac":"28:D1:27:70:8E:FD","mtu":"1500","details":{"wanType":"dhcp","peerdns":"0","dns":["192.168.1.121"],"ifname":"eth1"},"gateWay":"209.202.200.129","dnsAddrs1":"","status":1,"uptime":275,"dnsAddrs":"192.168.1.121","ipv6_info":{"wanType":"off"},"ipv6_show":1,"link":1,"ipv4":[{"mask":"255.255.255.224","ip":"209.202.200.147"}]},"code":0}'
2022-06-12 09:06:09 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/misystem/led): b'{"status":1,"code":0}'
2022-06-12 09:06:09 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqnetwork/wifi_detail_all): b'Internal Server Error'
2022-06-12 09:06:09 DEBUG (MainThread) [custom_components.miwifi.luci] Connection error (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqnetwork/wifi_detail_all): Expecting value: line 1 column 1 (char 0)
2022-06-12 09:06:09 WARNING (MainThread) [custom_components.miwifi.updater] Error connecting to router (attempt #9 of 10): LuciConnectionError('Connection error')
2022-06-12 09:06:18 DEBUG (MainThread) [custom_components.miwifi.luci] Start request (http://192.168.1.1/cgi-bin/luci/api/xqsystem/login): {"username": "admin", "logtype": "2", "password": "REDACTED", "nonce": "0_70:85:c2:00:fe:4a_1655039178_108"}
2022-06-12 09:06:19 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/api/xqsystem/login): b'{"url":"/cgi-bin/luci/;stok=REDACTED/web/home","token":"REDACTED","code":0}'
2022-06-12 09:06:19 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqsystem/init_info): b'{"romversion":"3.0.22","countrycode":"EN","code":0,"id":"29010/E0RV26706","routername":"iChuya II","inited":1,"connect":0,"routerId":"8b8be553-3260-3034-5bcf-b14d057dc560","model":"xiaomi.router.r3600","hardware":"R3600","bound":0,"language":"en","modules":{"replacement_assistant":"1"}}'
2022-06-12 09:06:20 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/misystem/status): b'{"dev":[{"mac":"AA:9B:B8:32:3C:B6","maxdownloadspeed":"1596979","isap":0,"upload":"15636575","upspeed":"28920","downspeed":"10184","online":"234","devname":"Galaxy-Note9","maxuploadspeed":"781887","download":"35918726"},{"mac":"CC:F4:11:A5:B9:79","maxdownloadspeed":"121674","isap":0,"upload":"284553","upspeed":"25","downspeed":"25","online":"239","devname":"Google-Nest-Mini","maxuploadspeed":"10607","download":"1296775"},{"mac":"70:85:C2:00:FE:4A","maxdownloadspeed":"32715","isap":0,"upload":"428042","upspeed":"281","downspeed":"590","online":"274","devname":"Rancher","maxuploadspeed":"8950","download":"1246497"},{"mac":"20:DF:B9:6C:E8:FE","maxdownloadspeed":"113080","isap":0,"upload":"149227","upspeed":"250","downspeed":"59","online":"264","devname":"Google-Home-Mini","maxuploadspeed":"7954","download":"943384"},{"mac":"54:60:09:FF:5E:3C","maxdownloadspeed":"114738","isap":0,"upload":"151108","upspeed":"209","downspeed":"32","online":"269","devname":"Google-Home","maxuploadspeed":"8888","download":"936659"},{"mac":"1C:53:F9:1E:83:1A","maxdownloadspeed":"112527","isap":0,"upload":"66931","upspeed":"0","downspeed":"0","online":"269","devname":"1C:53:F9:1E:83:1A","maxuploadspeed":"4582","download":"599463"},{"mac":"D8:FC:93:95:14:83","maxdownloadspeed":"15308","isap":0,"upload":"195262","upspeed":"770","downspeed":"2013","online":"259","devname":"sumo2","maxuploadspeed":"4933","download":"595984"},{"mac":"00:04:4B:F4:0A:28","maxdownloadspeed":"91688","isap":0,"upload":"88958","upspeed":"152","downspeed":"15","online":"274","devname":"00:04:4B:F4:0A:28","maxuploadspeed":"3794","download":"517411"},{"mac":"52:2D:A8:EA:55:D8","maxdownloadspeed":"22580","isap":0,"upload":"56346","upspeed":"0","downspeed":"0","online":"179","devname":"Karla-s-Galaxy-A71","maxuploadspeed":"5392","download":"175675"},{"mac":"","maxdownloadspeed":"0","upload":154611,"download":211098,"ip":"","downspeed":37,"online":"264","devname":"Others","maxuploadspeed":"136","upspeed":20}],"code":0,"mem":{"usage":0.54,"total":"512MB","hz":"1333MHz","type":"DDR3"},"temperature":0,"count":{"all_without_mash":74,"online":29,"all":74,"online_without_mash":29},"hardware":{"mac":"28:D1:27:70:8E:FD","platform":"R3600","version":"3.0.22","channel":"release","sn":"29010/E0RV26706"},"upTime":"320.76","cpu":{"core":4,"hz":"1.4GHz","load":0},"wan":{"downspeed":"12959","maxdownloadspeed":"1607765","devname":"nil","upload":"17242686","upspeed":"30631","maxuploadspeed":"785954","download":"42550034"}}'
2022-06-12 09:06:26 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqsystem/check_rom_update): b'{"status":{"status":0,"percent":0},"msg":"Couldn\'t check for updates","code":1504}'
2022-06-12 09:06:26 DEBUG (MainThread) [custom_components.miwifi.luci] Invalid error code received (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqsystem/check_rom_update): {'status': {'status': 0, 'percent': 0}, 'msg': "Couldn't check for updates", 'code': 1504}
2022-06-12 09:06:26 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqnetwork/mode): b'{"mode":0,"code":0}'
2022-06-12 09:06:26 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqnetwork/wan_info): b'{"info":{"mac":"28:D1:27:70:8E:FD","mtu":"1500","details":{"wanType":"dhcp","peerdns":"0","dns":["192.168.1.121"],"ifname":"eth1"},"gateWay":"209.202.200.129","dnsAddrs1":"","status":1,"uptime":292,"dnsAddrs":"192.168.1.121","ipv6_info":{"wanType":"off"},"ipv6_show":1,"link":1,"ipv4":[{"mask":"255.255.255.224","ip":"209.202.200.147"}]},"code":0}'
2022-06-12 09:06:26 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/misystem/led): b'{"status":1,"code":0}'
2022-06-12 09:06:26 DEBUG (MainThread) [custom_components.miwifi.luci] Successful request (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqnetwork/wifi_detail_all): b'Internal Server Error'
2022-06-12 09:06:26 DEBUG (MainThread) [custom_components.miwifi.luci] Connection error (http://192.168.1.1/cgi-bin/luci/;stok=REDACTED/api/xqnetwork/wifi_detail_all): Expecting value: line 1 column 1 (char 0)
2022-06-12 09:06:26 WARNING (MainThread) [custom_components.miwifi.updater] Error connecting to router (attempt #10 of 10): LuciConnectionError('Connection error')

This is the error in luci messages on the router:

2022-06-12T09:26:38-04:00 XiaoQiang luci: "Internal Server Error"
2022-06-12T09:26:38-04:00 XiaoQiang luci: "Failed to execute call dispatcher target for entry '/api/xqnetwork/wifi_detail_all'.\
The called action terminated with an exception:\
?:0: attempt to index field '?' (a nil value)\
stack traceback:\
        [C]: in function 'assert'\
        ?: in function 'dispatch'\
        ?: in function <?:454>"
2022-06-12T09:26:38-04:00 XiaoQiang luci: "finished:/cgi-bin/luci/;stok=REDACTED/api/xqnetwork/wifi_detail_all"
dmamontov commented 2 years ago

I'll add an exception in the next release.

dmamontov commented 2 years ago

@ConorIA https://github.com/dmamontov/hass-miwifi/releases/tag/v2.8.0