Bonjour,
j’essaie de migrer mon Jeedom d’un Raspberry Pi 3 vers un serveur un peu plus costaud sous debian 10.
Pour faire simple mon nouveau serveur à la même adresse IP et j’ai fais une restauration de mon ancienne config.
Tout fonctionne à l’exception du plugin Xiaomi qui ne fonctionne que partiellement.
Ma gateway communique bien avec mon nouveau serveur mais les équipements qui lui sont associés n’envoient pas de données dans la page Santé. Le multicast est bien activé (mon plugin Homebridge fonctionne) et je n’ai aucune erreur qui remonte dans les logs.
Est-ce que ce problème vous « parle » et/ou pourriez-vous me donner des pistes pour que je puisse investiguer svp?
Bonjour,
Il faut systématiquement fournir une capture d’écran de la page santé de jeedom ainsi que les logs du plugin (tous); copier/coller le contenu dans un Texte préformaté
comme ceci:
saisissez ou collez du code ici
Bonjour,
au niveau du log des dépendances j’ai juste une erreur à la fin:
Successfully installed PyYAML-6.0 android-backup-0.2.0 appdirs-1.4.4 attrs-21.4.0 cffi-1.15.0 click-8.0.3 construct-2.10.67 croniter-1.2.0 cryptography-36.0.1 defusedxml-0.7.1 ifaddr-0.1.7 importlib-metadata-1.7.0 netifaces-0.11.0 pycparser-2.21 python-dateutil-2.8.2 python-miio-0.5.9.2 pytz-2021.3 six-1.16.0 tqdm-4.62.3 zeroconf-0.38.1 zipp-3.7.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
ERROR: Invalid requirement: '_thread'
********************************************************
* Installation terminée *
********************************************************
pour le reste au lancement du démon je n’ai aucune erreur apparente:
2022-01-19 13:54:29][INFO] : Lancement démon xiaomihome : /usr/bin/python3 /var/www/html/plugins/xiaomihome/resources/xiaomihomed/xiaomihomed.py --loglevel debug --socketport 55019 --callback http://127.0.0.1:80/plugins/xiaomihome/core/php/jeeXiaomiHome.php --apikey r5jERUP7cABv4gdEpeiECYuG1Fv6rj0U --cycle 0.05 --pid /tmp/jeedom/xiaomihome/deamon.pid
[2022-01-19 13:54:29.815][INFO] : Start xiaomihomed
[2022-01-19 13:54:29.815][INFO] : Log level : debug
[2022-01-19 13:54:29.815][INFO] : Socket port : 55019
[2022-01-19 13:54:29.815][INFO] : Socket host : 127.0.0.1
[2022-01-19 13:54:29.815][INFO] : PID file : /tmp/jeedom/xiaomihome/deamon.pid
[2022-01-19 13:54:29.815][INFO] : Apikey : xxx
[2022-01-19 13:54:29.815][INFO] : Callback : http://127.0.0.1:80/plugins/xiaomihome/core/php/jeeXiaomiHome.php
[2022-01-19 13:54:29.815][INFO] : Cycle : 0.05
[2022-01-19 13:54:29.815][DEBUG] : Writing PID 24205 to /tmp/jeedom/xiaomihome/deamon.pid
[2022-01-19 13:54:29.815][DEBUG] : Init request module v2.27.1
[2022-01-19 13:54:29.817][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2022-01-19 13:54:29][DEBUG] : Format Invalide
[2022-01-19 13:54:29.821][DEBUG] : http://127.0.0.1:80 "GET /plugins/xiaomihome/core/php/jeeXiaomiHome.php?apikey=xxx HTTP/1.1" 200 0
[2022-01-19 13:54:29.822][DEBUG] : Socket interface started
[2022-01-19 13:54:29.822][DEBUG] : LoopNetServer Thread started
[2022-01-19 13:54:29.822][INFO] : Start listening...
[2022-01-19 13:54:29.822][DEBUG] : Listening on: [127.0.0.1:55019]
[2022-01-19 13:54:29.822][DEBUG] : Read Socket Thread Launched
[2022-01-19 13:54:29.822][DEBUG] : Aquara Thread Launched
[2022-01-19 13:55:02][DEBUG] : Rafraîchissement de Yeelight : Bandeau
[2022-01-19 13:55:02][DEBUG] : Envoi : {"apikey":"xxx","type":"yeelight","cmd":"refresh","model":"stripe","dest":"192.168.1.12","token":"","devtype":"49","serial":"0x0000000007c3ece0","id":"192.168.1.12"}
[2022-01-19 13:55:02.615][DEBUG] : Client connected to [127.0.0.1:55542]
[2022-01-19 13:55:02.616][DEBUG] : Message read from socket: b'{"apikey":"r5jERUP7cABv4gdEpeiECYuG1Fv6rj0U","type":"yeelight","cmd":"refresh","model":"stripe","dest":"192.168.1.12","token":"","devtype":"49","serial":"0x0000000007c3ece0","id":"192.168.1.12"}'
[2022-01-19 13:55:02.616][DEBUG] : Client disconnected from [127.0.0.1:55542]
[2022-01-19 13:55:02][DEBUG] : Rafraîchissement de Yeelight : Light
[2022-01-19 13:55:02][DEBUG] : Envoi : {"apikey":"xxx","type":"yeelight","cmd":"refresh","model":"ct_bulb","dest":"192.168.1.13","token":"","devtype":"","serial":"","id":"192.168.1.13"}
[2022-01-19 13:55:02][DEBUG] : Rafraîchissement de Aqara : Gateway
[2022-01-19 13:55:02.627][DEBUG] : Client connected to [127.0.0.1:55544]
[2022-01-19 13:55:02.627][DEBUG] : Message read from socket: b'{"apikey":"xxx","type":"yeelight","cmd":"refresh","model":"ct_bulb","dest":"192.168.1.13","token":"","devtype":"","serial":"","id":"192.168.1.13"}'
[2022-01-19 13:55:02.627][DEBUG] : Client disconnected from [127.0.0.1:55544]
[2022-01-19 13:55:02.862][DEBUG] : SOCKET-READ------Message received in socket JEEDOM_SOCKET_MESSAGE
[2022-01-19 13:55:02.862][DEBUG] : SOCKET-READ------Received command from jeedom : refresh
[2022-01-19 13:55:02.862][DEBUG] : SOCKET-READ------Refreshing : stripe
[2022-01-19 13:55:02.862][DEBUG] : Bulb<192.168.1.12:55443, type=BulbType.Unknown> > {'id': 0, 'method': 'get_prop', 'params': ['power', 'bright', 'ct', 'rgb', 'hue', 'sat', 'color_mode', 'flowing', 'delayoff', 'music_on', 'name', 'bg_power', 'bg_flowing', 'bg_ct', 'bg_bright', 'bg_hue', 'bg_sat', 'bg_rgb', 'nl_br', 'active_mode']}
[2022-01-19 13:55:02.871][DEBUG] : Bulb<192.168.1.12:55443, type=BulbType.Unknown> < {'id': 0, 'result': ['off', '40', '4000', '1727174', '218', '86', '1', '0', '0', '0', '', '', '', '', '', '', '', '', '', '']}
[2022-01-19 13:55:02.881][DEBUG] : Send to jeedom : {'devices': {'yeelight_192.168.1.12': {'ip': '192.168.1.12', 'capabilities': {'id': '192.168.1.12', 'power': 'off', 'bright': '40', 'ct': '4000', 'rgb': '1727174', 'hue': '218', 'sat': '86', 'color_mode': '1', 'flowing': '0', 'delayoff': '0', 'music_on': '0', 'name': None, 'bg_power': None, 'bg_flowing': None, 'bg_ct': None, 'bg_bright': None, 'bg_hue': None, 'bg_sat': None, 'bg_rgb': None, 'nl_br': None, 'active_mode': None, 'current_brightness': '40'}}}}
[2022-01-19 13:55:02.882][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2022-01-19 13:55:02.890][DEBUG] : http://127.0.0.1:80 "POST /plugins/xiaomihome/core/php/jeeXiaomiHome.php?apikey=xxx HTTP/1.1" 200 0
[2022-01-19 13:55:03.172][DEBUG] : SOCKET-READ------Message received in socket JEEDOM_SOCKET_MESSAGE
[2022-01-19 13:55:03.172][DEBUG] : SOCKET-READ------Received command from jeedom : refresh
[2022-01-19 13:55:03.172][DEBUG] : SOCKET-READ------Refreshing : ct_bulb
[2022-01-19 13:55:03.172][DEBUG] : Bulb<192.168.1.13:55443, type=BulbType.Unknown> > {'id': 0, 'method': 'get_prop', 'params': ['power', 'bright', 'ct', 'rgb', 'hue', 'sat', 'color_mode', 'flowing', 'delayoff', 'music_on', 'name', 'bg_power', 'bg_flowing', 'bg_ct', 'bg_bright', 'bg_hue', 'bg_sat', 'bg_rgb', 'nl_br', 'active_mode']}
[2022-01-19 13:55:03.181][DEBUG] : Bulb<192.168.1.13:55443, type=BulbType.Unknown> < {'id': 0, 'result': ['off', '50', '2700', '', '', '', '2', '0', '0', '0', '', '', '', '', '', '', '', '', '', '']}
[2022-01-19 13:55:03.192][DEBUG] : Send to jeedom : {'devices': {'yeelight_192.168.1.13': {'ip': '192.168.1.13', 'capabilities': {'id': '192.168.1.13', 'power': 'off', 'bright': '50', 'ct': '2700', 'rgb': None, 'hue': None, 'sat': None, 'color_mode': '2', 'flowing': '0', 'delayoff': '0', 'music_on': '0', 'name': None, 'bg_power': None, 'bg_flowing': None, 'bg_ct': None, 'bg_bright': None, 'bg_hue': None, 'bg_sat': None, 'bg_rgb': None, 'nl_br': None, 'active_mode': None, 'current_brightness': '50'}}}}
[2022-01-19 13:55:03.194][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2022-01-19 13:55:03.206][DEBUG] : http://127.0.0.1:80 "POST /plugins/xiaomihome/core/php/jeeXiaomiHome.php?apikey=xxx HTTP/1.1" 200 0
pour être précis, lorsque je démarre mon système qui fonctionne, je retrouve dans les logs les traces suivantes qui n’apparaissent pas dans le log précédent:
[2022-01-19 15:34:53.047][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2022-01-19 15:34:53.077][DEBUG] : {'cmd': 'get_id_list', '7811dcb24c2b': '7811dcb24c2b'}
[2022-01-19 15:34:53.092][DEBUG] : http://127.0.0.1:80 "POST /plugins/xiaomihome/core/php/jeeXiaomiHome.php?apikey=xxx HTTP/1.1" 200 0
[2022-01-19 15:34:53.325][DEBUG] : {'cmd': 'get_id_list_ack', 'sid': '7811dcb24c2b', 'token': 'XVPyY3XizpVs9FvD', 'data': '["158d0001f406eb","158d0001f38fcb","158d0002025906","158d0001e7e5a9","158d0002025dfe","158d0001f39c7a","158d00019cd430","158d0001b1b198","158d0001dccda4","158d0001ab5cd8","158d0002c91be4","158d0002cb1abb","158d00045c4115","158d0005bd0324"]'}
[2022-01-19 15:34:53.377][DEBUG] : {'cmd': 'read', 'sid': '158d0001f406eb'}
[2022-01-19 15:34:53.428][DEBUG] : {'cmd': 'read', 'sid': '158d0001f38fcb'}
[2022-01-19 15:34:53.479][DEBUG] : {'cmd': 'read', 'sid': '158d0002025906'}
[2022-01-19 15:34:53.530][DEBUG] : {'cmd': 'read', 'sid': '158d0001e7e5a9'}
[2022-01-19 15:34:53.644][DEBUG] : {'cmd': 'read_ack', 'model': 'magnet', 'sid': '158d0001f406eb', 'short_id': 30552, 'data': '{"voltage":2975,"status":"close"}'}
[2022-01-19 15:34:53.655][DEBUG] : Send to jeedom : {'devices': {'aquara_158d0001f406eb': {'model': 'magnet', 'sid': '158d0001f406eb', 'cmd': 'read_ack', 'short_id': 30552, 'source': '192.168.1.44', 'token': '', 'data': {'voltage': 2975, 'status': 'close'}}}}
je dois avoir un process qui ne s’exécute pas.