hello à tous,
je reviens avec mon soucis de gateway Xiaomi sur mon Jeedom.
J'ai refait la configuration globale de jeedom, de la gateway etc ...
Côté réseau :
- SSID identique
- @Ip fixe sur le RPI3
-@ip fixe sur la gateway (pas de changement en laissant le DHCP faire son taf)
- Ping de la passerelle via le RPI ok
- Ping de la gateway à partir d'un pc sur le réseau ok
Pas de soucis de dépendance.
********************************************************
* Installation des dépendances *
********************************************************
Hit:1
http://raspbian.raspberrypi.org/raspbian stretch InRelease
Hit:2
http://archive.raspberrypi.org/debian stretch InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
libffi-dev is already the newest version (3.2.1-6).
libssl-dev is already the newest version (1.1.0j-1~deb9u1).
python-cryptography is already the newest version (1.7.1-3+b2).
python-dev is already the newest version (2.7.13-2).
python-pip is already the newest version (9.0.1-2+rpt2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Collecting construct
Installing collected packages: construct
Successfully installed construct-2.9.45
Collecting pyudev
Collecting six (from pyudev)
Using cached
https://files.pythonhosted.org/packages ... ne-any.whl
Installing collected packages: six, pyudev
Successfully installed pyudev-0.21.0 six-1.12.0
Collecting requests
Using cached
https://files.pythonhosted.org/packages ... ne-any.whl
Collecting urllib3<1.25,>=1.21.1 (from requests)
Using cached
https://files.pythonhosted.org/packages ... ne-any.whl
Collecting idna<2.9,>=2.5 (from requests)
Using cached
https://files.pythonhosted.org/packages ... ne-any.whl
Collecting chardet<3.1.0,>=3.0.2 (from requests)
Using cached
https://files.pythonhosted.org/packages ... ne-any.whl
Collecting certifi>=2017.4.17 (from requests)
Using cached
https://files.pythonhosted.org/packages ... ne-any.whl
Installing collected packages: urllib3, idna, chardet, certifi, requests
Successfully installed certifi-2018.11.29 chardet-3.0.4 idna-2.8 requests-2.21.0 urllib3-1.24.1
Collecting pyserial
Using cached
https://files.pythonhosted.org/packages ... ne-any.whl
Installing collected packages: pyserial
Successfully installed pyserial-3.4
Collecting future
Installing collected packages: future
Successfully installed future-0.17.1
Collecting pycrypto
Installing collected packages: pycrypto
Successfully installed pycrypto-2.6.1
Collecting enum34
Using cached
https://files.pythonhosted.org/packages ... ne-any.whl
Installing collected packages: enum34
Successfully installed enum34-1.1.6
Collecting enum-compat
Collecting enum34 (from enum-compat)
Using cached
https://files.pythonhosted.org/packages ... ne-any.whl
Installing collected packages: enum34, enum-compat
Successfully installed enum-compat-0.0.2 enum34-1.1.6
********************************************************
* Installation terminée *
********************************************************
Ci-dessous les logs du plugins.
[2019-01-01 14:09:31][INFO] : Lancement démon xiaomihome : /usr/bin/python /var/www/html/plugins/xiaomihome/resources/xiaomihomed/xiaomihomed.py --loglevel debug --socketport 55019 --callback
http://192.168.1.50:80/plugins/xiaomiho ... miHome.php --apikey SI5htFkBEiOQTZvZdOVMHIUEdfuZBlWU --cycle 0.05 --pid /tmp/jeedom/xiaomihome/deamon.pid
[2019-01-01 14:09:34][INFO] : Start xiaomihomed
[2019-01-01 14:09:34][INFO] : Log level : debug
[2019-01-01 14:09:34][INFO] : Socket port : 55019
[2019-01-01 14:09:34][INFO] : Socket host : 127.0.0.1
[2019-01-01 14:09:34][INFO] : PID file : /tmp/jeedom/xiaomihome/deamon.pid
[2019-01-01 14:09:34][INFO] : Apikey : SI5htFkBEiOQTZvZdOVMHIUEdfuZBlWU
[2019-01-01 14:09:34][INFO] : Callback :
http://192.168.1.50:80/plugins/xiaomiho ... miHome.php
[2019-01-01 14:09:34][INFO] : Cycle : 0.05
[2019-01-01 14:09:34][DEBUG] : Writing PID 23125 to /tmp/jeedom/xiaomihome/deamon.pid
[2019-01-01 14:09:34][DEBUG] : Init request module v2.21.0
[2019-01-01 14:09:34][DEBUG] : Starting new HTTP connection (1): 192.168.1.50:80
[2019-01-01 14:09:34][DEBUG] : Format Invalide
[2019-01-01 14:09:34][DEBUG] :
http://192.168.1.50:80 "GET /plugins/xiaomihome/core/php/jeeXiaomiHome.php?apikey=SI5htFkBEiOQTZvZdOVMHIUEdfuZBlWU HTTP/1.1" 200 0
[2019-01-01 14:09:34][DEBUG] : Socket interface started
[2019-01-01 14:09:34][DEBUG] : LoopNetServer Thread started
[2019-01-01 14:09:34][INFO] : Start listening...
[2019-01-01 14:09:34][DEBUG] : Listening on: [127.0.0.1:55019]
[2019-01-01 14:09:34][DEBUG] : Read Socket Thread Launched
[2019-01-01 14:09:34][DEBUG] : Aquara Thread Launched
[2019-01-01 20:17:58][ERROR] : No JSON object could be decoded
[2019-01-01 20:17:59][ERROR] : No JSON object could be decoded
Connection en https depuis l'extérieur ok (avec NDD et let's encrypt)
Connection en HTTP en local ok
En vérifiant les ports :
- 9898/udp open/filtered (ports ouverts ou non sur ma box pas de changement)
- 4321/udp closed
Résultat tcpdump avec l'ip de la gateway à partir du RPI.
cpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on wlan0, link-type EN10MB (Ethernet), capture size 262144 bytes
20:24:45.645676 IP lumi-gateway-v3miio130078337.home.mdns > 224.0.0.251.mdns: 0*- [0q] 6/0/0 PTR _miio._udp.local., (Cache flush) A 192.168.1.48, (Cache flush) TXT "epoch=1" "mac=04cf8c7445af", PTR lumi-gateway-v3_miio130078337._miio._udp.local., (Cache flush) TXT "epoch=1" "mac=04cf8c7445af", PTR lumi-gateway-v3_miio130078337._miio._udp.local. (439)
20:24:46.866533 IP lumi-gateway-v3miio130078337.home.mdns > 224.0.0.251.mdns: 0*- [0q] 6/0/0 PTR _miio._udp.local., (Cache flush) TXT "epoch=1" "mac=04cf8c7445af", PTR lumi-gateway-v3_miio130078337._miio._udp.local., (Cache flush) A 192.168.1.48, (Cache flush) TXT "epoch=1" "mac=04cf8c7445af", PTR lumi-gateway-v3_miio130078337._miio._udp.local. (439)
20:24:48.709478 IP lumi-gateway-v3miio130078337.home.mdns > 224.0.0.251.mdns: 0*- [0q] 6/0/0 PTR _miio._udp.local., (Cache flush) TXT "epoch=1" "mac=04cf8c7445af", PTR lumi-gateway-v3_miio130078337._miio._udp.local., (Cache flush) A 192.168.1.48, (Cache flush) TXT "epoch=1" "mac=04cf8c7445af", PTR lumi-gateway-v3_miio130078337._miio._udp.local. (439)
20:24:52.702090 IP lumi-gateway-v3miio130078337.home.mdns > 224.0.0.251.mdns: 0*- [0q] 4/0/0 PTR _miio._udp.local., (Cache flush) A 192.168.1.48, PTR lumi-gateway-v3_miio130078337._miio._udp.local., (Cache flush) TXT "epoch=1" "mac=04cf8c7445af" (280)
20:25:00.689562 IP lumi-gateway-v3miio130078337.home.mdns > 224.0.0.251.mdns: 0*- [0q] 4/0/0 PTR _miio._udp.local., (Cache flush) A 192.168.1.48, PTR lumi-gateway-v3_miio130078337._miio._udp.local., (Cache flush) TXT "epoch=1" "mac=04cf8c7445af" (280)
20:25:16.662354 IP lumi-gateway-v3miio130078337.home.mdns > 224.0.0.251.mdns: 0*- [0q] 1/0/0 PTR _miio._udp.local. (70)
20:25:48.611872 IP lumi-gateway-v3miio130078337.home.mdns > 224.0.0.251.mdns: 0*- [0q] 1/0/0 PTR _miio._udp.local. (70)
20:27:45.662753 IP lumi-gateway-v3miio130078337.home.mdns > 224.0.0.251.mdns: 0*- [0q] 6/0/0 PTR _miio._udp.local., (Cache flush) A 192.168.1.48, (Cache flush) TXT "epoch=1" "mac=04cf8c7445af", PTR lumi-gateway-v3_miio130078337._miio._udp.local., (Cache flush) TXT "epoch=1" "mac=04cf8c7445af", PTR lumi-gateway-v3_miio130078337._miio._udp.local. (439)
20:27:46.888364 IP lumi-gateway-v3miio130078337.home.mdns > 224.0.0.251.mdns: 0*- [0q] 6/0/0 PTR _miio._udp.local., (Cache flush) TXT "epoch=1" "mac=04cf8c7445af", PTR lumi-gateway-v3_miio130078337._miio._udp.local., (Cache flush) A 192.168.1.48, (Cache flush) TXT "epoch=1" "mac=04cf8c7445af", PTR lumi-gateway-v3_miio130078337._miio._udp.local. (439)
20:27:48.731982 IP lumi-gateway-v3miio130078337.home.mdns > 224.0.0.251.mdns: 0*- [0q] 6/0/0 PTR _miio._udp.local., (Cache flush) TXT "epoch=1" "mac=04cf8c7445af", PTR lumi-gateway-v3_miio130078337._miio._udp.local., (Cache flush) A 192.168.1.48, (Cache flush) TXT "epoch=1" "mac=04cf8c7445af", PTR lumi-gateway-v3_miio130078337._miio._udp.local. (439)
20:27:52.724033 IP lumi-gateway-v3miio130078337.home.mdns > 224.0.0.251.mdns: 0*- [0q] 4/0/0 PTR _miio._udp.local., (Cache flush) A 192.168.1.48, PTR lumi-gateway-v3_miio130078337._miio._udp.local., (Cache flush) TXT "epoch=1" "mac=04cf8c7445af" (280)
20:28:00.711268 IP lumi-gateway-v3miio130078337.home.mdns > 224.0.0.251.mdns: 0*- [0q] 4/0/0 PTR _miio._udp.local., (Cache flush) A 192.168.1.48, PTR lumi-gateway-v3_miio130078337._miio._udp.local., (Cache flush) TXT "epoch=1" "mac=04cf8c7445af" (280)
20:28:16.681361 IP lumi-gateway-v3miio130078337.home.mdns > 224.0.0.251.mdns: 0*- [0q] 1/0/0 PTR _miio._udp.local. (70)
20:28:48.637425 IP lumi-gateway-v3miio130078337.home.mdns > 224.0.0.251.mdns: 0*- [0q] 1/0/0 PTR _miio._udp.local. (70)
20:30:45.683450 IP lumi-gateway-v3miio130078337.home.mdns > 224.0.0.251.mdns: 0*- [0q] 6/0/0 PTR _miio._udp.local., (Cache flush) A 192.168.1.48, (Cache flush) TXT "epoch=1" "mac=04cf8c7445af", PTR lumi-gateway-v3_miio130078337._miio._udp.local., (Cache flush) TXT "epoch=1" "mac=04cf8c7445af", PTR lumi-gateway-v3_miio130078337._miio._udp.local. (439)
20:30:46.910213 IP lumi-gateway-v3miio130078337.home.mdns > 224.0.0.251.mdns: 0*- [0q] 6/0/0 PTR _miio._udp.local., (Cache flush) TXT "epoch=1" "mac=04cf8c7445af", PTR lumi-gateway-v3_miio130078337._miio._udp.local., (Cache flush) A 192.168.1.48, (Cache flush) TXT "epoch=1" "mac=04cf8c7445af", PTR lumi-gateway-v3_miio130078337._miio._udp.local. (439)
20:30:48.753505 IP lumi-gateway-v3miio130078337.home.mdns > 224.0.0.251.mdns: 0*- [0q] 6/0/0 PTR _miio._udp.local., (Cache flush) TXT "epoch=1" "mac=04cf8c7445af", PTR lumi-gateway-v3_miio130078337._miio._udp.local., (Cache flush) A 192.168.1.48, (Cache flush) TXT "epoch=1" "mac=04cf8c7445af", PTR lumi-gateway-v3_miio130078337._miio._udp.local. (439)
20:30:52.745633 IP lumi-gateway-v3miio130078337.home.mdns > 224.0.0.251.mdns: 0*- [0q] 4/0/0 PTR _miio._udp.local., (Cache flush) A 192.168.1.48, PTR lumi-gateway-v3_miio130078337._miio._udp.local., (Cache flush) TXT "epoch=1" "mac=04cf8c7445af" (280)
20:31:00.733576 IP lumi-gateway-v3miio130078337.home.mdns > 224.0.0.251.mdns: 0*- [0q] 4/0/0 PTR _miio._udp.local., (Cache flush) A 192.168.1.48, PTR lumi-gateway-v3_miio130078337._miio._udp.local., (Cache flush) TXT "epoch=1" "mac=04cf8c7445af" (280)
20:31:16.706112 IP lumi-gateway-v3miio130078337.home.mdns > 224.0.0.251.mdns: 0*- [0q] 1/0/0 PTR _miio._udp.local. (70)
20:31:48.655358 IP lumi-gateway-v3miio130078337.home.mdns > 224.0.0.251.mdns: 0*- [0q] 1/0/0 PTR _miio._udp.local. (70)
20:33:45.705071 IP lumi-gateway-v3miio130078337.home.mdns > 224.0.0.251.mdns: 0*- [0q] 6/0/0 PTR _miio._udp.local., (Cache flush) A 192.168.1.48, (Cache flush) TXT "epoch=1" "mac=04cf8c7445af", PTR lumi-gateway-v3_miio130078337._miio._udp.local., (Cache flush) TXT "epoch=1" "mac=04cf8c7445af", PTR lumi-gateway-v3_miio130078337._miio._udp.local. (439)
20:33:46.932098 IP lumi-gateway-v3miio130078337.home.mdns > 224.0.0.251.mdns: 0*- [0q] 6/0/0 PTR _miio._udp.local., (Cache flush) TXT "epoch=1" "mac=04cf8c7445af", PTR lumi-gateway-v3_miio130078337._miio._udp.local., (Cache flush) A 192.168.1.48, (Cache flush) TXT "epoch=1" "mac=04cf8c7445af", PTR lumi-gateway-v3_miio130078337._miio._udp.local. (439)
20:33:48.779631 IP lumi-gateway-v3miio130078337.home.mdns > 224.0.0.251.mdns: 0*- [0q] 6/0/0 PTR _miio._udp.local., (Cache flush) TXT "epoch=1" "mac=04cf8c7445af", PTR lumi-gateway-v3_miio130078337._miio._udp.local., (Cache flush) A 192.168.1.48, (Cache flush) TXT "epoch=1" "mac=04cf8c7445af", PTR lumi-gateway-v3_miio130078337._miio._udp.local. (439)
20:33:53.071632 IP lumi-gateway-v3miio130078337.home.mdns > 224.0.0.251.mdns: 0*- [0q] 4/0/0 PTR _miio._udp.local., (Cache flush) A 192.168.1.48, PTR lumi-gateway-v3_miio130078337._miio._udp.local., (Cache flush) TXT "epoch=1" "mac=04cf8c7445af" (280)
20:34:00.754946 IP lumi-gateway-v3miio130078337.home.mdns > 224.0.0.251.mdns: 0*- [0q] 4/0/0 PTR _miio._udp.local., (Cache flush) A 192.168.1.48, PTR lumi-gateway-v3_miio130078337._miio._udp.local., (Cache flush) TXT "epoch=1" "mac=04cf8c7445af" (280)
20:34:16.729770 IP lumi-gateway-v3miio130078337.home.mdns > 224.0.0.251.mdns: 0*- [0q] 1/0/0 PTR _miio._udp.local. (70)
Je pense que cela ne communique pas..... Et je ne sais pas ce qui bloque.
La gateway est sur la dernière maj le plugin aussi et jeedom aussi.
J'ai mis l'ensemble des logs dont vous auriez besoin pour m'aider à analyser tout ça.
évidement, j'ai fait une bonne partie des manipulations sur ce fils.
Merci d'avance