c’est mieux effectivement , merci
parmis la liste, le yeelight par exemple ne fonctionne pas et si j’actionne une commande j’obtiens bien ça dans le log
mais le message n’est en réalité pas publié
Et maintenant, la même chose mais avec l’état :
foreach(jMQTT::getBrokers() as $broker) {
$scenario->setLog('Broker ' . $broker->getName() . ' : state=' . $broker->getMqttClientState());
}
C’est ce que je pensais. Le cache de cet eqpt broker (yeelight) est « pollué » par un état OK alors qu’il ne tourne pas.
Je regarde ça
OK, ca devrait être corrigé.
C’est dispo sur la beta
Juste à relancer le daemon si ce n’est aps fait par l’update du plugin
alors après mise à jour , j’ai toujours l’erreur sur le demon
[2021-05-10 15:32:03][INFO] : Lancement du démon python jMQTT pour le plugin jMQTT
[2021-05-10 15:32:03][INFO] : Lancement du démon websocket jMQTT pour le plugin jMQTT
PHP Warning: require(/var/www/html/plugins/jMQTT/3rdparty/vendor/composer/../react/promise/src/functions_include.php): failed to open stream: No such file or directory in /var/www/html/plugins/jMQTT/3rdparty/vendor/composer/autoload_real.php on line 71
PHP Fatal error: require(): Failed opening required '/var/www/html/plugins/jMQTT/3rdparty/vendor/composer/../react/promise/src/functions_include.php' (include_path='.:/usr/share/php') in /var/www/html/plugins/jMQTT/3rdparty/vendor/composer/autoload_real.php on line 71
[2021-05-10 15:32:14][ERROR] : Impossible de lancer le démon jMQTT, vérifiez le log
que je dois pouvoir corriger en relançant les deps
une fois les dependances réinstallées , le demon est ok
et je confirme que tu as bien corrigé le bug du state OK ,
Pour le problème des dépendances, Jeedom Core fait un truc bizarre.
Durant l’update, il vide une grande partie du contenu des dossiers de dépendances mais garde le dossier composer et le composer.json (que j’utilise pour détécter le bon état des dépendances…)
Je regarde ça
Ca se confirme, Jeedom Core fait un clean des fichiers modifiés il y a plus de 7j et supprime une grosse partie des fichiers de dépendances.
J’ai déplacé les dependances dans le dossier resources.
bonjour,
pour info je viens de faire la mise à jour et le problème du démon semble corrigé ,pour voir la correction,
il m’a fallu lancer deux fois l’installations du plugin avec une installe des dep entre mais je pense que c’est normal si tu as déplacé les fichiers .
par contre j’ai été obligé de relancer le demon manuellement après la seconde mise à jour .
merci …
bonjour @Domochip
je viens d’installer le plungin sur une nouvelle install jeedom 4.1.22 impossible de demarer le demon et l’install des dependences n’est pas ok et tourne en boucle voici le log
********************************************************
* dependancies Installation *
********************************************************
> Progress file: /tmp/jeedom/jMQTT/dependancy
> Install Mosquitto: 1
*
* Synchronize the package index
*
Hit:1 http://security.debian.org buster/updates InRelease
Hit:2 http://deb.debian.org/debian buster InRelease
Hit:3 http://deb.debian.org/debian buster-updates InRelease
Hit:4 http://deb.debian.org/debian buster-backports InRelease
Hit:5 https://mirrors.netix.net/armbian/apt buster InRelease
Reading package lists...
*
* Install Mosquitto
*
Reading package lists...
Building dependency tree...
Reading state information...
mosquitto is already the newest version (1.5.7-1+deb10u1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
*
* Install Ratchet PHP library
*
All settings correct for using Composer
Downloading...
Composer (version 2.0.13) successfully installed to: /var/www/html/plugins/jMQTT/resources/composer.phar
Use it: php composer.phar
Using version ^5.2 for symfony/http-foundation
./composer.json has been created
Running composer update symfony/http-foundation
Loading composer repositories with package information
Updating dependencies
Lock file operations: 4 installs, 0 updates, 0 removals
- Locking symfony/deprecation-contracts (v2.4.0)
- Locking symfony/http-foundation (v5.2.8)
- Locking symfony/polyfill-mbstring (v1.22.1)
- Locking symfony/polyfill-php80 (v1.22.1)
Package operations: 4 installs, 0 updates, 0 removals
- Downloading symfony/polyfill-php80 (v1.22.1)
- Downloading symfony/polyfill-mbstring (v1.22.1)
- Downloading symfony/deprecation-contracts (v2.4.0)
- Downloading symfony/http-foundation (v5.2.8)
0/4 [>---------------------------] 0%
1/4 [=======>--------------------] 25%
3/4 [=====================>------] 75%
4/4 [============================] 100% - Installing symfony/polyfill-php80 (v1.22.1): Extracting archive
- Installing symfony/polyfill-mbstring (v1.22.1): Extracting archive
- Installing symfony/deprecation-contracts (v2.4.0): Extracting archive
- Installing symfony/http-foundation (v5.2.8): Extracting archive
0/4 [>---------------------------] 0%
1/4 [=======>--------------------] 25%
4/4 [============================] 100%
4/4 [============================] 100%
1 package suggestions were added by new dependencies, use `composer suggest` to see details.
Generating autoload files
4 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Using version ^0.4.3 for cboden/ratchet
./composer.json has been updated
Running composer update cboden/ratchet
Loading composer repositories with package information
Updating dependencies
Lock file operations: 14 installs, 0 updates, 0 removals
- Locking cboden/ratchet (v0.4.3)
- Locking evenement/evenement (v3.0.1)
- Locking guzzlehttp/psr7 (1.8.2)
- Locking psr/http-message (1.0.1)
- Locking ralouphie/getallheaders (3.0.3)
- Locking ratchet/rfc6455 (v0.3)
- Locking react/cache (v1.1.1)
- Locking react/dns (v1.5.0)
- Locking react/event-loop (v1.1.1)
- Locking react/promise (v2.8.0)
- Locking react/promise-timer (v1.6.0)
- Locking react/socket (v1.6.0)
- Locking react/stream (v1.1.1)
- Locking symfony/routing (v5.2.7)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 14 installs, 0 updates, 0 removals
- Downloading symfony/routing (v5.2.7)
- Downloading react/event-loop (v1.1.1)
- Downloading evenement/evenement (v3.0.1)
- Downloading react/stream (v1.1.1)
- Downloading react/promise (v2.8.0)
- Downloading react/promise-timer (v1.6.0)
- Downloading react/cache (v1.1.1)
- Downloading react/dns (v1.5.0)
- Downloading react/socket (v1.6.0)
- Downloading ralouphie/getallheaders (3.0.3)
- Downloading psr/http-message (1.0.1)
- Downloading guzzlehttp/psr7 (1.8.2)
- Downloading ratchet/rfc6455 (v0.3)
- Downloading cboden/ratchet (v0.4.3)
0/14 [>---------------------------] 0%
9/14 [==================>---------] 64%
12/14 [========================>---] 85%
14/14 [============================] 100% - Installing symfony/routing (v5.2.7): Extracting archive
- Installing react/event-loop (v1.1.1): Extracting archive
- Installing evenement/evenement (v3.0.1): Extracting archive
- Installing react/stream (v1.1.1): Extracting archive
- Installing react/promise (v2.8.0): Extracting archive
- Installing react/promise-timer (v1.6.0): Extracting archive
- Installing react/cache (v1.1.1): Extracting archive
- Installing react/dns (v1.5.0): Extracting archive
- Installing react/socket (v1.6.0): Extracting archive
- Installing ralouphie/getallheaders (3.0.3): Extracting archive
- Installing psr/http-message (1.0.1): Extracting archive
- Installing guzzlehttp/psr7 (1.8.2): Extracting archive
- Installing ratchet/rfc6455 (v0.3): Extracting archive
- Installing cboden/ratchet (v0.4.3): Extracting archive
0/4 [>---------------------------] 0%
4/4 [============================] 100%
4/4 [============================] 100%6 package suggestions were added by new dependencies, use `composer suggest` to see details.
Generating autoload files
8 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
*
* Install python3 debian packages
*
Reading package lists...
Building dependency tree...
Reading state information...
python3-pip is already the newest version (18.1-5).
python3-requests is already the newest version (2.21.0-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
*
* Install python3 paho-mqtt library
*
Collecting paho-mqtt
Using cached https://files.pythonhosted.org/packages/32/d3/6dcb8fd14746fcde6a556f932b5de8bea8fedcb85b3a092e0e986372c0e7/paho-mqtt-1.5.1.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'setuptools'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-1rh5fbna/paho-mqtt/
*
* Install python3 websocket-client library
*
Requirement already up-to-date: websocket-client in /usr/local/lib/python3.7/dist-packages (0.59.0)
Requirement already satisfied, skipping upgrade: six in /usr/lib/python3/dist-packages (from websocket-client) (1.12.0)
*
* Run post_dependancy_install function
*
Starting post_dependancy_install()
Mosquitto installation requested => looking for Broker eqpt
Broker eqpt already exists
********************************************************
* End dependancy installation *
********************************************************
je suis sur un orangepi pc + en armbian buster à jour
merci pour ton aide
edit : j’ai une piste dans le log du plugin je creuse
[2021-05-16 20:11:12][DEBUG] : dependancy_info : python3 paho-mqtt or websocket-client library is missing
[2021-05-16 20:11:15][DEBUG] : dependancy_info : python3 paho-mqtt or websocket-client library is missing
[2021-05-16 20:11:18][DEBUG] : dependancy_info : python3 paho-mqtt or websocket-client library is missing
[2021-05-16 20:11:21][DEBUG] : dependancy_info : python3 paho-mqtt or websocket-client library is missing
[2021-05-16 20:11:22][DEBUG] : dependancy_info : Composer Ratchet PHP package is missing
[2021-05-16 20:11:23][DEBUG] : dependancy_info : Composer Ratchet PHP package is missing
[2021-05-16 20:11:27][DEBUG] : dependancy_info : python3 paho-mqtt or websocket-client library is missing
[2021-05-16 20:11:32][DEBUG] : dependancy_info : python3 paho-mqtt or websocket-client library is missing
[2021-05-16 20:11:33][DEBUG] : dependancy_info : python3 paho-mqtt or websocket-client library is missing
[2021-05-16 20:11:47][DEBUG] : dependancy_info : python3 paho-mqtt or websocket-client library is missing
[2021-05-16 20:11:47][DEBUG] : dependancy_info : python3 paho-mqtt or websocket-client library is missing
[2021-05-16 20:12:01][DEBUG] : dependancy_info : python3 paho-mqtt or websocket-client library is missing
[2021-05-16 20:12:02][DEBUG] : dependancy_info : python3 paho-mqtt or websocket-client library is missing
[2021-05-16 20:12:14][DEBUG] : dependancy_info : python3 paho-mqtt or websocket-client library is missing
[2021-05-16 20:12:15][DEBUG] : dependancy_info : python3 paho-mqtt or websocket-client library is missing
[2021-05-16 20:12:27][DEBUG] : dependancy_info : python3 paho-mqtt or websocket-client library is missing
[2021-05-16 20:12:28][DEBUG] : dependancy_info : python3 paho-mqtt or websocket-client library is missing
[2021-05-16 20:12:41][DEBUG] : dependancy_info : python3 paho-mqtt or websocket-client library is missing
je me repond a moi même
j’ai fait un
pip3 install setuptools
et relancer les dependances => ok
@Domochip ne faudrait t’il pas rajouter cette commande aux installations des dependance ?
Intéréssant, quelle est ta version de débian?
c’est Arbian buster basé sur debian buster
Bonjour,
Une question : On est d’accord que ce plugin s’appuie sur un démon zigbee2mqtt qui doit tourner quelque part (en l’occurence moi il tourne sur mon Jeedom). Et que ce plugin n’installe pas en dépendance cette partie zigbee2mqtt ?
Salut
Le topic est sur jMQTT pas zigbee2mqtt ou zigbeelinker. Pour ce dernier voir sa doc.
Antoine
@Domochip : Merci pour la réponse qui correspond à ma question.
@Tonio16 : Merci mais je connais bien zigbee2mqtt. Ce n’était pas la question.
@raqpub Ben relis là alors car tu ne parles que de zigbee2mqtt et pas de jMQTT.
Antoine
Désolé fausse manip, j’ai effacé mon message par erreur.
Donc pour re répondre simplement :
jMQTT permet de communiquer en mqtt avec un broker.
Derrière ce broker on peux déployer des interfaces vers d’autres protocoles/système :
une liste ici https://github.com/hobbyquaker/awesome-mqtt
donc jMQTT ne déploie pas zigbee2mqtt, ni ZwaveJs2mqtt, etc, …
Ce sera l’objectif de plugin satellites qui exploiterons le code de base de jMQTT.