@thomas-braun said in [Vorlage] Xiaomi Airpurifier 3H u.a. inkl. Token auslesen.:
@michael-mauer
Ja, hab ich auch:
2022-07-22 19:05:42.199 - info: javascript.0 (155217) Start javascript script.js.common.nodemihome 2022-07-22 19:05:42.394 - info: javascript.0 (155217) script.js.common.nodemihome: Starting AllMyMi V.0.2.29 2022-07-22 19:05:42.500 - info: javascript.0 (155217) script.js.common.nodemihome: registered 0 subscriptions, 0 schedules, 0 messages, 0 logs and 0 file subscriptions 2022-07-22 19:05:43.259 - info: javascript.0 (155217) script.js.common.nodemihome: Retrieving your in cn registered MiHome Devices 2022-07-22 19:05:48.288 - error: javascript.0 (155217) An error happened which is most likely from one of your scripts, but the originating script could not be detected. 2022-07-22 19:05:48.290 - error: javascript.0 (155217) Error: network timeout at: https://api.io.mi.com/app/home/device_list 2022-07-22 19:05:48.291 - error: javascript.0 (155217) FetchError: network timeout at: https://api.io.mi.com/app/home/device_list at Timeout.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/node_modules/node-fetch/lib/index.js:1484:13) at listOnTimeout (node:internal/timers:564:17) at processTimers (node:internal/timers:507:7)
Issue angelegt:
Hallo zusammen,
auf Github hat jemand eine Lösung für das Timeout gepostet!
George-Cara commented 8 days ago •
Hi . For this error with newer JSCRIPT Adapter (>6) the developer should modify the code. until then please go to /opt/iobroker/node_modules/iobroker.javascript/node_modules/node-mihome/lib and edit the file protocol-micloud.js . You will find
this.REQUEST_TIMEOUT = that you should set to 20000
This is the proper timeout for me. I think it will work for you also.
Hat bei mir funktioniert, ich kann den Luftreiniger wieder steuern.
Mike