Problème lancement des Antennes distantes SSH

Bonjour,

A la suite de mon post sur BLEA on m’a conseiller de passer au plugin-tgw et plugin-mqttdiscovery

BLEA semble KO en local depuis changement d’emcc 16G avec recovery - Plugins / Protocole domotique - Communauté Jeedom

Je me suis donc lancé, j’ai installé l’antenne local sur la jeedom ATLAS avec une clé SENA sur hci1
Installation de l’antenne local OK
Démarrage OK

Je lance une découverte et ca semble bien recuperer mes equipement BLEA, cool.

Je me lance donc dans l’installation d’une antenne deporté, enfin 3 antenne deporté
Sur un RPI0 avec le compte ssh « pi »
sur un RPI3 avec le compte ssh « pi »
sur un RPI4 avec le compte ssh « jeedom » (comme dans la doc)

L’installation des antennes est OK sur les 3
mais le lancement est KO

Log sur le RPI4
Installation :

[2023-11-28 23:47:16] *************************************
[2023-11-28 23:47:16] *   Launch install of dependencies  *
[2023-11-28 23:47:16] *************************************
[2023-11-28 23:47:16] Reading package lists...
[2023-11-28 23:47:17] Building dependency tree...
[2023-11-28 23:47:17] Reading state information...
[2023-11-28 23:47:18] curl is already the newest version (7.64.0-4+deb10u7).
[2023-11-28 23:47:18] The following package was automatically installed and is no longer required:
[2023-11-28 23:47:18] rpi-eeprom-images
[2023-11-28 23:47:18] Use 'sudo apt autoremove' to remove it.
[2023-11-28 23:47:18] 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100     2  100     2    0     0      6      0 --:--:-- --:--:-- --:--:--     6
[2023-11-28 23:47:18] Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
[2023-11-28 23:47:18] Hit:2 http://archive.raspberrypi.org/debian buster InRelease
[2023-11-28 23:47:22] Reading package lists...
[2023-11-28 23:47:22] *****************************
[2023-11-28 23:47:22] Install modules using apt-get
[2023-11-28 23:47:22] *****************************
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100     2  100     2    0     0      5      0 --:--:-- --:--:-- --:--:--     5
[2023-11-28 23:47:23] Reading package lists...
[2023-11-28 23:47:23] Building dependency tree...
[2023-11-28 23:47:23] Reading state information...
[2023-11-28 23:47:24] python3 is already the newest version (3.7.3-1).
[2023-11-28 23:47:24] bluez is already the newest version (5.50-1.2~deb10u3+rpt1).
[2023-11-28 23:47:24] bluez set to manually installed.
[2023-11-28 23:47:24] python3-pip is already the newest version (18.1-5+rpt1).
[2023-11-28 23:47:24] The following package was automatically installed and is no longer required:
[2023-11-28 23:47:24] rpi-eeprom-images
[2023-11-28 23:47:24] Use 'sudo apt autoremove' to remove it.
[2023-11-28 23:47:24] The following additional packages will be installed:
[2023-11-28 23:47:24] python3.7-venv
[2023-11-28 23:47:24] The following NEW packages will be installed:
[2023-11-28 23:47:24] python3-venv python3.7-venv
[2023-11-28 23:47:24] 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
[2023-11-28 23:47:24] Need to get 7,328 B of archives.
[2023-11-28 23:47:24] After this operation, 44.0 kB of additional disk space will be used.
[2023-11-28 23:47:24] Get:2 http://raspbian.raspberrypi.org/raspbian buster/main armhf python3-venv armhf 3.7.3-1 [1,180 B]
[2023-11-28 23:47:24] Get:1 http://mirrors.ircam.fr/pub/raspbian/raspbian buster/main armhf python3.7-venv armhf 3.7.3-2+deb10u6 [6,148 B]
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
[2023-11-28 23:47:25] Fetched 7,328 B in 0s (34.7 kB/s)
[2023-11-28 23:47:25] Selecting previously unselected package python3.7-venv.
[2023-11-28 23:47:25] (Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 44368 files and directories currently installed.)
[2023-11-28 23:47:25] Preparing to unpack .../python3.7-venv_3.7.3-2+deb10u6_armhf.deb ...
[2023-11-28 23:47:25] Unpacking python3.7-venv (3.7.3-2+deb10u6) ...
[2023-11-28 23:47:26] Selecting previously unselected package python3-venv.
[2023-11-28 23:47:26] Preparing to unpack .../python3-venv_3.7.3-1_armhf.deb ...
[2023-11-28 23:47:26] Unpacking python3-venv (3.7.3-1) ...
[2023-11-28 23:47:26] Setting up python3.7-venv (3.7.3-2+deb10u6) ...
[2023-11-28 23:47:26] Setting up python3-venv (3.7.3-1) ...
[2023-11-28 23:47:26] Processing triggers for man-db (2.8.5-2) ...
[2023-11-28 23:47:27] Version debian:10
[2023-11-28 23:47:27] Install pipx via pip
[2023-11-28 23:47:30] Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
[2023-11-28 23:47:30] Requirement already satisfied: pipx in /usr/local/lib/python3.7/dist-packages (1.2.1)
[2023-11-28 23:47:30] Requirement already satisfied: argcomplete>=1.9.4 in /usr/local/lib/python3.7/dist-packages (from pipx) (3.1.2)
[2023-11-28 23:47:30] Requirement already satisfied: packaging>=20.0 in /usr/local/lib/python3.7/dist-packages (from pipx) (23.2)
[2023-11-28 23:47:30] Requirement already satisfied: userpath>=1.6.0 in /usr/local/lib/python3.7/dist-packages (from pipx) (1.9.1)
[2023-11-28 23:47:30] Requirement already satisfied: importlib-metadata>=3.3.0; python_version < "3.8" in /usr/local/lib/python3.7/dist-packages (from pipx) (6.7.0)
[2023-11-28 23:47:31] Requirement already satisfied: click in /usr/local/lib/python3.7/dist-packages (from userpath>=1.6.0->pipx) (8.1.3)
[2023-11-28 23:47:31] Requirement already satisfied: typing-extensions>=3.6.4; python_version < "3.8" in /usr/local/lib/python3.7/dist-packages (from importlib-metadata>=3.3.0; python_version < "3.8"->pipx) (4.3.0)
[2023-11-28 23:47:31] Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.7/dist-packages (from importlib-metadata>=3.3.0; python_version < "3.8"->pipx) (3.8.1)
[2023-11-28 23:47:32] /root/.local/bin has been been added to PATH, but you need to open a new
[2023-11-28 23:47:32] terminal or re-login for this PATH change to take effect.
[2023-11-28 23:47:32]
[2023-11-28 23:47:32] You will need to open a new terminal or re-login for the PATH changes to take
[2023-11-28 23:47:32] effect.
[2023-11-28 23:47:32]
[2023-11-28 23:47:32] Otherwise pipx is ready to go! ✨ 🌟 ✨
[2023-11-28 23:47:32] *************************************
[2023-11-28 23:47:32] Install the required python libraries
[2023-11-28 23:47:32] *************************************
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100     2  100     2    0     0      6      0 --:--:-- --:--:-- --:--:--     6
creating virtual environment...
creating shared libraries...
upgrading shared libraries...
installing theengsgateway...
⚠️  Note: '/root/.local/bin' is not on your PATH environment variable. These
apps will not be globally accessible until your PATH is updated. Run `pipx
ensurepath` to automatically add it, or manually modify your PATH in your
shell's config file (i.e. ~/.bashrc).
done! ✨ 🌟 ✨
[2023-11-28 23:48:02] installed package theengsgateway 1.1.0, installed using Python 3.7.3
[2023-11-28 23:48:02] These apps are now globally available
[2023-11-28 23:48:02] - TheengsGateway
[2023-11-28 23:48:02] ***************************
[2023-11-28 23:48:02] *      Install ended      *
[2023-11-28 23:48:02] ***************************
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0

Log de lancement :

ERROR:BLEGateway:Connection error
Traceback (most recent call last):
File "/root/.local/pipx/venvs/theengsgateway/lib/python3.7/site-packages/TheengsGateway/ble_gateway.py", line 111, in connect_mqtt
self.client.connect(self.broker, self.port)
File "/root/.local/pipx/venvs/theengsgateway/lib/python3.7/site-packages/paho/mqtt/client.py", line 914, in connect
return self.reconnect()
File "/root/.local/pipx/venvs/theengsgateway/lib/python3.7/site-packages/paho/mqtt/client.py", line 1044, in reconnect
sock = self._create_socket_connection()
File "/root/.local/pipx/venvs/theengsgateway/lib/python3.7/site-packages/paho/mqtt/client.py", line 3685, in _create_socket_connection
return socket.create_connection(addr, timeout=self._connect_timeout, source_address=source)
File "/usr/lib/python3.7/socket.py", line 727, in create_connection
raise err
File "/usr/lib/python3.7/socket.py", line 716, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

j’ai bien arrêté BLEA sur les 3 antennes

Configuration

J’ai le meme comportement sur les 3 antennes.

Merci d’avance pour votre aides

Bonjour,

Je pense que vous n’avez pas fait la config du plugin, je peux voir?

Bonjour et merci de prendre du temps pour repondre :slight_smile:

Pour TGW voici la config du plugin

J’utilise la conf MQTT manager qui utilise la conf JMQTT

Mais ca fonctionne bien avec l’antenne local. c’est les deporté qui ne fonctionne pas.

Peut etre que c’est autre chose que vous voulez que je vous montre?

je peux voir la config de mqtt manager alors?
ca ne fonctionne pas car le plugin envoie « localhost » comme serveur mqtt et forcément en distant ca ne peut pas être bon:
image

MQTT manager

JMQTT

J’utilie ZwaveJS et des objets directements sur JMQTT qui fonctionne bien comme ca,

A la place de localhost il faut mettre l’IP local de Jeedom ?

oui les configs mqtt sont correctes en soit, c’est « ma faute », je n’ai pas prévu qu’on utilise le mot « localhost »;
ca sera fait dans une prochaine version

En attendant, dans la config mqttmanager:
image

remplacez localhost par 127.0.0.1 et tout fonctionnera

il faudra recliquer sur « Configurer le service »
image

C’est bon, les 3 antennes sont OK maintenant ! Merci beaucoup pour ton aides rapide et efficace !

Ce sujet a été automatiquement fermé après 24 heures suivant le dernier commentaire. Aucune réponse n’est permise dorénavant.