Helllo à tous
Après mes soucis zwavejs resolus (ouf), j’ai voulu m’attaquer a TGW MQTT (adieu Blea).
Et je n’y arrive pas du tout.
MQTT Manager est OK
TGW utilise la configuration MQTT Manager
J’ai configuré une antenne local (il y a bien un MAC Bluetooth)
Et le service reste hors ligne …
Log post install antenne
[2023-12-15 13:55:08] *************************************
[2023-12-15 13:55:08] * Launch install of dependencies *
[2023-12-15 13:55:08] *************************************
[2023-12-15 13:55:08] Reading package lists...
[2023-12-15 13:55:11] Building dependency tree...
[2023-12-15 13:55:11] Reading state information...
[2023-12-15 13:55:15] curl is already the newest version (7.74.0-1.3+deb11u10).
[2023-12-15 13:55:15] 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
100 2 100 2 0 0 27 0 --:--:-- --:--:-- --:--:-- 27
[2023-12-15 13:55:16] Hit:1 http://deb.debian.org/debian bullseye InRelease
[2023-12-15 13:55:16] Hit:2 http://deb.debian.org/debian bullseye-updates InRelease
[2023-12-15 13:55:16] Hit:3 http://security.debian.org/debian-security bullseye-security InRelease
[2023-12-15 13:55:16] Hit:4 http://archive.raspberrypi.org/debian bullseye InRelease
[2023-12-15 13:55:16] Hit:5 https://deb.nodesource.com/node_18.x nodistro InRelease
[2023-12-15 13:55:17] Ign:6 https://download.webmin.com/download/newkey/repository stable InRelease
[2023-12-15 13:55:18] Hit:7 https://download.webmin.com/download/newkey/repository stable Release
[2023-12-15 13:55:41] Reading package lists...
[2023-12-15 13:55:51] *****************************
[2023-12-15 13:55:51] Install modules using apt-get
[2023-12-15 13:55:51] *****************************
% 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 24 0 --:--:-- --:--:-- --:--:-- 25
[2023-12-15 13:55:53] Reading package lists...
[2023-12-15 13:55:56] Building dependency tree...
[2023-12-15 13:55:56] Reading state information...
[2023-12-15 13:56:00] logrotate is already the newest version (3.18.0-2+deb11u2).
[2023-12-15 13:56:00] python3 is already the newest version (3.9.2-3).
[2023-12-15 13:56:00] python3-venv is already the newest version (3.9.2-3).
[2023-12-15 13:56:00] bluez is already the newest version (5.55-3.1+rpt2).
[2023-12-15 13:56:00] python3-pip is already the newest version (20.3.4-4+rpt1+deb11u1).
[2023-12-15 13:56:00] 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[2023-12-15 13:56:00] Version debian:11
[2023-12-15 13:56:00] Install pipx via pip
[2023-12-15 13:56:18] Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
[2023-12-15 13:56:18] Requirement already satisfied: pipx in /usr/local/lib/python3.9/dist-packages (1.3.3)
[2023-12-15 13:56:18] Requirement already satisfied: argcomplete>=1.9.4 in /usr/local/lib/python3.9/dist-packages (from pipx) (3.2.1)
[2023-12-15 13:56:18] Requirement already satisfied: userpath!=1.9.0,>=1.6 in /usr/local/lib/python3.9/dist-packages (from pipx) (1.9.1)
[2023-12-15 13:56:18] Requirement already satisfied: tomli in /usr/local/lib/python3.9/dist-packages (from pipx) (2.0.1)
[2023-12-15 13:56:18] Requirement already satisfied: platformdirs>=2.1 in /usr/local/lib/python3.9/dist-packages (from pipx) (4.1.0)
[2023-12-15 13:56:18] Requirement already satisfied: packaging>=20 in /usr/local/lib/python3.9/dist-packages (from pipx) (23.2)
[2023-12-15 13:56:18] Requirement already satisfied: click in /usr/local/lib/python3.9/dist-packages (from userpath!=1.9.0,>=1.6->pipx) (8.1.7)
[2023-12-15 13:56:21] /root/.local/bin has been been added to PATH, but you need to open a new
[2023-12-15 13:56:21] terminal or re-login for this PATH change to take effect.
[2023-12-15 13:56:21]
[2023-12-15 13:56:21] You will need to open a new terminal or re-login for the PATH changes to take
[2023-12-15 13:56:21] effect.
[2023-12-15 13:56:21]
[2023-12-15 13:56:21] Otherwise pipx is ready to go! ✨ 🌟 ✨
[2023-12-15 13:56:21] *************************************
[2023-12-15 13:56:21] Install the required python libraries
[2023-12-15 13:56:21] *************************************
% 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 30 0 --:--:-- --:--:-- --:--:-- 30
creating virtual environment...
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-12-15 13:57:49] installed package theengsgateway 1.2.0, installed using Python 3.9.2
[2023-12-15 13:57:49] These apps are now globally available
[2023-12-15 13:57:49] - TheengsGateway
[2023-12-15 13:57:49] ***************************
[2023-12-15 13:57:49] * Install ended *
[2023-12-15 13:57:49] ***************************
% 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
0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0
100 2 0 2 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0
100 2 0 2 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0
Log Service
ERROR:BLEGateway:Connection error
Traceback (most recent call last):
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 179, in connect_mqtt
self.client.connect(
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 912, in connect
self.connect_async(host, port, keepalive,
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 979, in connect_async
if port <= 0:
TypeError: '<=' not supported between instances of 'str' and 'int'
Traceback (most recent call last):
File "/root/.local/bin/TheengsGateway", line 4, in <module>
main()
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/__init__.py", line 57, in main
run(configuration, config_path)
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 599, in run
gw.client.loop_forever()
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1779, in loop_forever
self.reconnect()
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1016, in reconnect
raise ValueError('Invalid host.')
ValueError: Invalid host.
J’avoue ne pas comprendre le invalid host
Merci pour votre aide