[gelöst|Xiaomi Smart Home] Verbindungsprobleme zum Gateway

Begonnen von HeikoS, 26 Januar 2018, 08:10:48

Vorheriges Thema - Nächstes Thema

HeikoS

Moin zusammen,
ich plage mich seit einigen Tagen damit, mein Xiaomi Gateway ins FHEM zu bekommen.
Installation gemäß https://github.com/T0RST3N/fhem-XiaomiSmartHome/wiki soweit erfolgreich.
FHEM läuft auf einem RasberryPI3 unter Rasbian, alles auf aktuellem Stand. RasPI per LAN im Heimnetz und per WLAN im Fritzbox-Gastnetz (dort sind auch alle Xiaomi-Komponenten).
Mit meinen YeeLights und Pflanzensensoren hatte ich keine Probleme, funktionieren alle bestens.
Das Gateway bekomme ich zwar ins FHEM, aber ausser dem Status "Connected" passiert sonst nichts weiter, es werden keine Sensoren gefunden und das Licht lässt sich auch nicht über FHEM steuern. Developer Mode und Passwort sind gesetzt.

Internals
CFGFN
DEF 192.168.179.27
FD 21
FHEMIP 192.168.1.25
GATEWAY 192.168.179.27
GATEWAY_IP 192.168.179.27
NAME MiGateway
NOTIFYDEV global
NR 147
NTFY_ORDER 50-MiGateway
STATE Connected
TYPE XiaomiSmartHome
VERSION 1.20

Logfile (Verbose 5)
2018.01.26 07:48:45 5: Cmd: >define MiGateway XiaomiSmartHome 192.168.179.27<
2018.01.26 07:48:45 5: MiGateway: Define> 192.168.179.27
2018.01.26 07:48:45 5: Starting notify loop for global, 1 event(s), first is DEFINED MiGateway
2018.01.26 07:48:45 5: createNotifyHash
2018.01.26 07:48:45 5: MiGateway: Notify> NotifyStart
2018.01.26 07:48:45 5: Starting notify loop for MiGateway, 1 event(s), first is pct: 100
2018.01.26 07:48:45 5: End notify loop for MiGateway
2018.01.26 07:48:45 5: Starting notify loop for MiGateway, 1 event(s), first is ringtone: 21
2018.01.26 07:48:45 5: End notify loop for MiGateway
2018.01.26 07:48:45 5: Starting notify loop for MiGateway, 1 event(s), first is volume: 10
2018.01.26 07:48:45 5: End notify loop for MiGateway
2018.01.26 07:48:45 5: End notify loop for global
2018.01.26 07:48:45 4: WEB_80.##.##.##_1274 GET /fhem?detail=MiGateway&fw_id=144; BUFLEN:0
2018.01.26 07:48:45 4: WEB: /fhem?detail=MiGateway&fw_id=144 / RL:3482 / text/html; charset=UTF-8 / Content-Encoding: gzip
/
2018.01.26 07:48:46 4: WEB_80.##.##.##_50449 GET /fhem/pgm2/jquery.min.js; BUFLEN:0
2018.01.26 07:48:46 4: WEB_80.##.##.##_1193 GET /fhem/pgm2/jquery-ui.min.css; BUFLEN:0
2018.01.26 07:48:46 4: Connection accepted from WEB_80.##.##.##_1129
2018.01.26 07:48:46 4: WEB_80.##.##.##_50455 GET /fhem/pgm2/jquery-ui.min.js; BUFLEN:0
2018.01.26 07:48:46 4: WEB_80.##.##.##_1274 GET /fhem/pgm2/style.css?v=1516884848; BUFLEN:0
2018.01.26 07:48:46 4: WEB_80.##.##.##_1129 GET /fhem/pgm2/fhemweb.js; BUFLEN:0
2018.01.26 07:48:46 4: WEB_80.##.##.##_50455 GET /fhem/pgm2/defaultCommon.css; BUFLEN:0
2018.01.26 07:48:46 4: WEB_80.##.##.##_1274 GET /fhem/pgm2/dashboard_style.css; BUFLEN:0
2018.01.26 07:48:47 4: WEB_80.##.##.##_50449 GET /fhem/pgm2/fhemweb_colorpicker.js; BUFLEN:0
2018.01.26 07:48:47 4: WEB_80.##.##.##_50455 GET /fhem?cmd=%7BReadingsVal(%22MiGateway%22%2C%22volume%22%2C%22%22)%7D&XHR=1&fwcsrf=csrf_751090441738985; BUFLEN:0
2018.01.26 07:48:47 5: Cmd: >{ReadingsVal("MiGateway","volume","")}<
2018.01.26 07:48:47 4: WEB: /fhem?cmd=%7BReadingsVal(%22MiGateway%22%2C%22volume%22%2C%22%22)%7D&XHR=1&fwcsrf=csrf_751090441738985 / RL:23 / text/plain; charset=UTF-8 / Content-Encoding: gzip
/
2018.01.26 07:48:47 4: WEB_80.##.##.##_1274 GET /fhem?cmd=%7BAttrVal(%22MiGateway%22%2C%22room%22%2C%22%22)%7D&XHR=1&fwcsrf=csrf_751090441738985; BUFLEN:0
2018.01.26 07:48:47 5: Cmd: >{AttrVal("MiGateway","room","")}<
2018.01.26 07:48:47 4: WEB: /fhem?cmd=%7BAttrVal(%22MiGateway%22%2C%22room%22%2C%22%22)%7D&XHR=1&fwcsrf=csrf_751090441738985 / RL:32 / text/plain; charset=UTF-8 / Content-Encoding: gzip
/
2018.01.26 07:48:47 4: WEB_80.##.##.##_1193 GET /fhem?XHR=1&inform=type=status;filter=MiGateway;since=1516949324;fmt=JSON&fw_id=144×tamp=1516949327089; BUFLEN:0
2018.01.26 07:48:47 4: WEB_80.##.##.##_1274 GET /fhem/jscolor/jscolor.js; BUFLEN:0
2018.01.26 07:48:50 5: MiGateway: connect> ConnectStart
2018.01.26 07:48:50 4: MiGateway: connecting
2018.01.26 07:49:00 1: MiGateway: getGatewaySID> Error no response from whois!! STOP!!
2018.01.26 07:49:00 5: Starting notify loop for MiGateway, 1 event(s), first is Disconnected
2018.01.26 07:49:00 5: createNotifyHash
2018.01.26 07:49:00 5: End notify loop for MiGateway
2018.01.26 07:49:00 4: MiGateway: connect> Connected
2018.01.26 07:49:01 5: Starting notify loop for MiGateway, 1 event(s), first is Connected
2018.01.26 07:49:01 5: End notify loop for MiGateway
2018.01.26 07:49:01 5: Starting notify loop for MiGateway, 1 event(s), first is password: giveaPassword!
2018.01.26 07:49:01 5: End notify loop for MiGateway
2018.01.26 07:49:01 4: Connection closed for WEB_80.##.##.##_1193: EOF
2018.01.26 07:49:01 4: WEB_80.##.##.##_50455 GET /fhem?detail=MiGateway; BUFLEN:0
2018.01.26 07:49:01 4: WEB: /fhem?detail=MiGateway / RL:3530 / text/html; charset=UTF-8 / Content-Encoding: gzip
/
2018.01.26 07:49:01 4: WEB_80.##.##.##_50449 GET /fhem/pgm2/jquery.min.js; BUFLEN:0
2018.01.26 07:49:01 4: Connection accepted from WEB_80.##.##.##_50459
2018.01.26 07:49:01 4: WEB_80.##.##.##_1129 GET /fhem/pgm2/jquery-ui.min.js; BUFLEN:0
2018.01.26 07:49:01 4: WEB_80.##.##.##_1274 GET /fhem/pgm2/style.css?v=1516884848; BUFLEN:0
2018.01.26 07:49:02 4: WEB_80.##.##.##_50455 GET /fhem/pgm2/jquery-ui.min.css; BUFLEN:0
2018.01.26 07:49:02 4: WEB_80.##.##.##_50459 GET /fhem/pgm2/fhemweb.js; BUFLEN:0
2018.01.26 07:49:02 4: WEB_80.##.##.##_1129 GET /fhem/pgm2/defaultCommon.css; BUFLEN:0
2018.01.26 07:49:02 4: WEB_80.##.##.##_50455 GET /fhem/pgm2/dashboard_style.css; BUFLEN:0
2018.01.26 07:49:02 4: WEB_80.##.##.##_1129 GET /fhem?cmd=%7BAttrVal(%22MiGateway%22%2C%22room%22%2C%22%22)%7D&XHR=1&fwcsrf=csrf_751090441738985; BUFLEN:0
2018.01.26 07:49:02 5: Cmd: >{AttrVal("MiGateway","room","")}<
2018.01.26 07:49:02 4: WEB: /fhem?cmd=%7BAttrVal(%22MiGateway%22%2C%22room%22%2C%22%22)%7D&XHR=1&fwcsrf=csrf_751090441738985 / RL:32 / text/plain; charset=UTF-8 / Content-Encoding: gzip
/
2018.01.26 07:49:02 4: WEB_80.##.##.##_50455 GET /fhem/pgm2/fhemweb_colorpicker.js; BUFLEN:0
2018.01.26 07:49:02 4: WEB_80.##.##.##_1274 GET /fhem?cmd=%7BReadingsVal(%22MiGateway%22%2C%22volume%22%2C%22%22)%7D&XHR=1&fwcsrf=csrf_751090441738985; BUFLEN:0
2018.01.26 07:49:02 5: Cmd: >{ReadingsVal("MiGateway","volume","")}<
2018.01.26 07:49:02 4: WEB: /fhem?cmd=%7BReadingsVal(%22MiGateway%22%2C%22volume%22%2C%22%22)%7D&XHR=1&fwcsrf=csrf_751090441738985 / RL:23 / text/plain; charset=UTF-8 / Content-Encoding: gzip
/
2018.01.26 07:49:02 4: WEB_80.##.##.##_50449 GET /fhem?XHR=1&inform=type=status;filter=MiGateway;since=1516949340;fmt=JSON&fw_id=146×tamp=1516949342680; BUFLEN:0
2018.01.26 07:49:02 4: WEB_80.##.##.##_1129 GET /fhem/jscolor/jscolor.js; BUFLEN:0
2018.01.26 07:49:08 5: MiGateway: updateAllReadings> Starting UpdateALLReadings
2018.01.26 07:49:08 4: MiGateway: Write> Get all Sensors
2018.01.26 07:49:08 4: MiGateway: Write> {"cmd" : "get_id_list"} 192.168.179.27
2018.01.26 07:49:08 5: MiGateway: Write> End 192.168.179.27
2018.01.26 07:49:08 5: MiGateway: Read> Read start
2018.01.26 07:49:08 3: MiGateway: Read> No SID, Stop Read
2018.01.26 07:49:08 5: MiGateway: Read> Read start
2018.01.26 07:49:08 3: MiGateway: Read> No SID, Stop Read
2018.01.26 07:49:08 5: MiGateway: Read> Read start
2018.01.26 07:49:08 3: MiGateway: Read> No SID, Stop Read
2018.01.26 07:49:08 5: MiGateway: Read> Read start
2018.01.26 07:49:08 3: MiGateway: Read> No SID, Stop Read
2018.01.26 07:49:08 5: MiGateway: Read> Read start
2018.01.26 07:49:08 3: MiGateway: Read> No SID, Stop Read
2018.01.26 07:49:08 5: MiGateway: Read> Read start
2018.01.26 07:49:08 3: MiGateway: Read> No SID, Stop Read

Die Meldung "No SID, Stop Read" kommt dann in Endlosschleife.

Hat jemand einen Tipp, wo ich mit der Fehlersuche anfangen kann?



##### LÖSUNG #####
[EDIT 06.02.2018]
Funktioniert wohl nicht im Gastnetz der Fritzbox, im normalen WLAN ohne Probleme

HeikoS

Könnte es an den getrennten Netzen liegen?
FHEMIP 192.168.1.25
GATEWAY 192.168.179.27

192.168.1.x ist das normale Heimnetz am PI mit LAN angeschlossen
192.168.179.x ist das GastWLAN der Fritzbox, PI im WLAN eingerichtet

Der PI kann das Gateway unter 192.168.179.27 problemlos anpingen, also scheint das Routing über WLAN statt LAN zu funktionieren.
Mich stört hier in der DEF des Gateways die FHEMIP im LAN statt im WLAN. Kann man dies irgendwie anpassen, der PI hat ja auch eine IP im WLAN?