Installation Theengs Gateway sans dongle bluetooth

Bonjour,

Je souhaite utiliser Theengs Gateway uniquement sur sa partie MQTTtoMQTT.
J’ai fait une install via snap sur une VM dépourvue de dongle bluetooth.
Je n’arrive pas à faire démarrer le service.

Service                          Startup  Current   Notes
bluez.bluez                      enabled  active    -
certbot.renew                    enabled  inactive  timer-activated
theengs-gateway.theengs-gateway  enabled  inactive  -
zwave-js-ui.zwave-js-ui          enabled  active    -

2023-10-23T12:05:49+02:00 systemd[1]: Started Service for snap application theengs-gateway.theengs-gateway.
2023-10-23T12:05:49+02:00 theengs-gateway.theengs-gateway[5040]: Traceback (most recent call last):
2023-10-23T12:05:49+02:00 theengs-gateway.theengs-gateway[5040]:   File "/snap/theengs-gateway/45/bin/TheengsGateway", line 4, in <module>
2023-10-23T12:05:49+02:00 theengs-gateway.theengs-gateway[5040]:     main()
2023-10-23T12:05:49+02:00 theengs-gateway.theengs-gateway[5040]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/TheengsGateway/__init__.py", line 317, in main
2023-10-23T12:05:49+02:00 theengs-gateway.theengs-gateway[5040]:     run(conf_path)
2023-10-23T12:05:49+02:00 theengs-gateway.theengs-gateway[5040]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/TheengsGateway/ble_gateway.py", line 488, in run
2023-10-23T12:05:49+02:00 theengs-gateway.theengs-gateway[5040]:     gw.client.loop_forever()
2023-10-23T12:05:49+02:00 theengs-gateway.theengs-gateway[5040]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/paho/mqtt/client.py", line 1756, in loop_forever
2023-10-23T12:05:49+02:00 theengs-gateway.theengs-gateway[5040]:     rc = self._loop(timeout)
2023-10-23T12:05:49+02:00 theengs-gateway.theengs-gateway[5040]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/paho/mqtt/client.py", line 1164, in _loop
2023-10-23T12:05:49+02:00 theengs-gateway.theengs-gateway[5040]:     rc = self.loop_read()
2023-10-23T12:05:49+02:00 theengs-gateway.theengs-gateway[5040]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/paho/mqtt/client.py", line 1556, in loop_read
2023-10-23T12:05:49+02:00 theengs-gateway.theengs-gateway[5040]:     rc = self._packet_read()
2023-10-23T12:05:49+02:00 theengs-gateway.theengs-gateway[5040]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/paho/mqtt/client.py", line 2439, in _packet_read
2023-10-23T12:05:49+02:00 theengs-gateway.theengs-gateway[5040]:     rc = self._packet_handle()
2023-10-23T12:05:49+02:00 theengs-gateway.theengs-gateway[5040]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/paho/mqtt/client.py", line 3033, in _packet_handle
2023-10-23T12:05:49+02:00 theengs-gateway.theengs-gateway[5040]:     return self._handle_publish()
2023-10-23T12:05:49+02:00 theengs-gateway.theengs-gateway[5040]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/paho/mqtt/client.py", line 3327, in _handle_publish
2023-10-23T12:05:49+02:00 theengs-gateway.theengs-gateway[5040]:     self._handle_on_message(message)
2023-10-23T12:05:49+02:00 theengs-gateway.theengs-gateway[5040]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/paho/mqtt/client.py", line 3570, in _handle_on_message
2023-10-23T12:05:49+02:00 theengs-gateway.theengs-gateway[5040]:     on_message(self, self._userdata, message)
2023-10-23T12:05:49+02:00 theengs-gateway.theengs-gateway[5040]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/TheengsGateway/ble_gateway.py", line 134, in on_message
2023-10-23T12:05:49+02:00 theengs-gateway.theengs-gateway[5040]:     address = msg_json["id"]
2023-10-23T12:05:49+02:00 theengs-gateway.theengs-gateway[5040]: TypeError: string indices must be integers
2023-10-23T12:05:49+02:00 systemd[1]: snap.theengs-gateway.theengs-gateway.service: Main process exited, code=exited, status=1/FAILURE
2023-10-23T12:05:49+02:00 systemd[1]: snap.theengs-gateway.theengs-gateway.service: Failed with result 'exit-code'.
2023-10-23T12:05:50+02:00 systemd[1]: snap.theengs-gateway.theengs-gateway.service: Scheduled restart job, restart counter is at 1.
2023-10-23T12:05:50+02:00 systemd[1]: Stopped Service for snap application theengs-gateway.theengs-gateway.
2023-10-23T12:05:50+02:00 systemd[1]: Started Service for snap application theengs-gateway.theengs-gateway.
2023-10-23T12:05:50+02:00 theengs-gateway.theengs-gateway[5178]: Traceback (most recent call last):
2023-10-23T12:05:50+02:00 theengs-gateway.theengs-gateway[5178]:   File "/snap/theengs-gateway/45/bin/TheengsGateway", line 4, in <module>
2023-10-23T12:05:50+02:00 theengs-gateway.theengs-gateway[5178]:     main()
2023-10-23T12:05:50+02:00 theengs-gateway.theengs-gateway[5178]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/TheengsGateway/__init__.py", line 317, in main
2023-10-23T12:05:50+02:00 theengs-gateway.theengs-gateway[5178]:     run(conf_path)
2023-10-23T12:05:50+02:00 theengs-gateway.theengs-gateway[5178]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/TheengsGateway/ble_gateway.py", line 488, in run
2023-10-23T12:05:50+02:00 theengs-gateway.theengs-gateway[5178]:     gw.client.loop_forever()
2023-10-23T12:05:50+02:00 theengs-gateway.theengs-gateway[5178]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/paho/mqtt/client.py", line 1756, in loop_forever
2023-10-23T12:05:50+02:00 theengs-gateway.theengs-gateway[5178]:     rc = self._loop(timeout)
2023-10-23T12:05:50+02:00 theengs-gateway.theengs-gateway[5178]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/paho/mqtt/client.py", line 1164, in _loop
2023-10-23T12:05:50+02:00 theengs-gateway.theengs-gateway[5178]:     rc = self.loop_read()
2023-10-23T12:05:50+02:00 theengs-gateway.theengs-gateway[5178]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/paho/mqtt/client.py", line 1556, in loop_read
2023-10-23T12:05:50+02:00 theengs-gateway.theengs-gateway[5178]:     rc = self._packet_read()
2023-10-23T12:05:50+02:00 theengs-gateway.theengs-gateway[5178]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/paho/mqtt/client.py", line 2439, in _packet_read
2023-10-23T12:05:50+02:00 theengs-gateway.theengs-gateway[5178]:     rc = self._packet_handle()
2023-10-23T12:05:50+02:00 theengs-gateway.theengs-gateway[5178]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/paho/mqtt/client.py", line 3033, in _packet_handle
2023-10-23T12:05:50+02:00 theengs-gateway.theengs-gateway[5178]:     return self._handle_publish()
2023-10-23T12:05:50+02:00 theengs-gateway.theengs-gateway[5178]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/paho/mqtt/client.py", line 3327, in _handle_publish
2023-10-23T12:05:50+02:00 theengs-gateway.theengs-gateway[5178]:     self._handle_on_message(message)
2023-10-23T12:05:50+02:00 theengs-gateway.theengs-gateway[5178]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/paho/mqtt/client.py", line 3570, in _handle_on_message
2023-10-23T12:05:50+02:00 theengs-gateway.theengs-gateway[5178]:     on_message(self, self._userdata, message)
2023-10-23T12:05:50+02:00 theengs-gateway.theengs-gateway[5178]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/TheengsGateway/ble_gateway.py", line 134, in on_message
2023-10-23T12:05:50+02:00 theengs-gateway.theengs-gateway[5178]:     address = msg_json["id"]
2023-10-23T12:05:50+02:00 theengs-gateway.theengs-gateway[5178]: TypeError: string indices must be integers
2023-10-23T12:05:50+02:00 systemd[1]: snap.theengs-gateway.theengs-gateway.service: Main process exited, code=exited, status=1/FAILURE
2023-10-23T12:05:50+02:00 systemd[1]: snap.theengs-gateway.theengs-gateway.service: Failed with result 'exit-code'.
2023-10-23T12:05:51+02:00 systemd[1]: snap.theengs-gateway.theengs-gateway.service: Scheduled restart job, restart counter is at 2.
2023-10-23T12:05:51+02:00 systemd[1]: Stopped Service for snap application theengs-gateway.theengs-gateway.
2023-10-23T12:05:51+02:00 systemd[1]: Started Service for snap application theengs-gateway.theengs-gateway.
2023-10-23T12:05:51+02:00 theengs-gateway.theengs-gateway[5319]: Traceback (most recent call last):
2023-10-23T12:05:51+02:00 theengs-gateway.theengs-gateway[5319]:   File "/snap/theengs-gateway/45/bin/TheengsGateway", line 4, in <module>
2023-10-23T12:05:51+02:00 theengs-gateway.theengs-gateway[5319]:     main()
2023-10-23T12:05:51+02:00 theengs-gateway.theengs-gateway[5319]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/TheengsGateway/__init__.py", line 317, in main
2023-10-23T12:05:51+02:00 theengs-gateway.theengs-gateway[5319]:     run(conf_path)
2023-10-23T12:05:51+02:00 theengs-gateway.theengs-gateway[5319]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/TheengsGateway/ble_gateway.py", line 488, in run
2023-10-23T12:05:51+02:00 theengs-gateway.theengs-gateway[5319]:     gw.client.loop_forever()
2023-10-23T12:05:51+02:00 theengs-gateway.theengs-gateway[5319]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/paho/mqtt/client.py", line 1756, in loop_forever
2023-10-23T12:05:51+02:00 theengs-gateway.theengs-gateway[5319]:     rc = self._loop(timeout)
2023-10-23T12:05:51+02:00 theengs-gateway.theengs-gateway[5319]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/paho/mqtt/client.py", line 1164, in _loop
2023-10-23T12:05:51+02:00 theengs-gateway.theengs-gateway[5319]:     rc = self.loop_read()
2023-10-23T12:05:51+02:00 theengs-gateway.theengs-gateway[5319]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/paho/mqtt/client.py", line 1556, in loop_read
2023-10-23T12:05:51+02:00 theengs-gateway.theengs-gateway[5319]:     rc = self._packet_read()
2023-10-23T12:05:51+02:00 theengs-gateway.theengs-gateway[5319]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/paho/mqtt/client.py", line 2439, in _packet_read
2023-10-23T12:05:51+02:00 theengs-gateway.theengs-gateway[5319]:     rc = self._packet_handle()
2023-10-23T12:05:51+02:00 theengs-gateway.theengs-gateway[5319]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/paho/mqtt/client.py", line 3033, in _packet_handle
2023-10-23T12:05:51+02:00 theengs-gateway.theengs-gateway[5319]:     return self._handle_publish()
2023-10-23T12:05:51+02:00 theengs-gateway.theengs-gateway[5319]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/paho/mqtt/client.py", line 3327, in _handle_publish
2023-10-23T12:05:51+02:00 theengs-gateway.theengs-gateway[5319]:     self._handle_on_message(message)
2023-10-23T12:05:51+02:00 theengs-gateway.theengs-gateway[5319]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/paho/mqtt/client.py", line 3570, in _handle_on_message
2023-10-23T12:05:51+02:00 theengs-gateway.theengs-gateway[5319]:     on_message(self, self._userdata, message)
2023-10-23T12:05:51+02:00 theengs-gateway.theengs-gateway[5319]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/TheengsGateway/ble_gateway.py", line 134, in on_message
2023-10-23T12:05:51+02:00 theengs-gateway.theengs-gateway[5319]:     address = msg_json["id"]
2023-10-23T12:05:51+02:00 theengs-gateway.theengs-gateway[5319]: TypeError: string indices must be integers
2023-10-23T12:05:51+02:00 systemd[1]: snap.theengs-gateway.theengs-gateway.service: Main process exited, code=exited, status=1/FAILURE
2023-10-23T12:05:51+02:00 systemd[1]: snap.theengs-gateway.theengs-gateway.service: Failed with result 'exit-code'.
2023-10-23T12:05:51+02:00 systemd[1]: snap.theengs-gateway.theengs-gateway.service: Scheduled restart job, restart counter is at 3.
2023-10-23T12:05:51+02:00 systemd[1]: Stopped Service for snap application theengs-gateway.theengs-gateway.
2023-10-23T12:05:51+02:00 systemd[1]: Started Service for snap application theengs-gateway.theengs-gateway.
2023-10-23T12:05:52+02:00 theengs-gateway.theengs-gateway[5461]: Traceback (most recent call last):
2023-10-23T12:05:52+02:00 theengs-gateway.theengs-gateway[5461]:   File "/snap/theengs-gateway/45/bin/TheengsGateway", line 4, in <module>
2023-10-23T12:05:52+02:00 theengs-gateway.theengs-gateway[5461]:     main()
2023-10-23T12:05:52+02:00 theengs-gateway.theengs-gateway[5461]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/TheengsGateway/__init__.py", line 317, in main
2023-10-23T12:05:52+02:00 theengs-gateway.theengs-gateway[5461]:     run(conf_path)
2023-10-23T12:05:52+02:00 theengs-gateway.theengs-gateway[5461]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/TheengsGateway/ble_gateway.py", line 488, in run
2023-10-23T12:05:52+02:00 theengs-gateway.theengs-gateway[5461]:     gw.client.loop_forever()
2023-10-23T12:05:52+02:00 theengs-gateway.theengs-gateway[5461]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/paho/mqtt/client.py", line 1756, in loop_forever
2023-10-23T12:05:52+02:00 theengs-gateway.theengs-gateway[5461]:     rc = self._loop(timeout)
2023-10-23T12:05:52+02:00 theengs-gateway.theengs-gateway[5461]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/paho/mqtt/client.py", line 1164, in _loop
2023-10-23T12:05:52+02:00 theengs-gateway.theengs-gateway[5461]:     rc = self.loop_read()
2023-10-23T12:05:52+02:00 theengs-gateway.theengs-gateway[5461]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/paho/mqtt/client.py", line 1556, in loop_read
2023-10-23T12:05:52+02:00 theengs-gateway.theengs-gateway[5461]:     rc = self._packet_read()
2023-10-23T12:05:52+02:00 theengs-gateway.theengs-gateway[5461]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/paho/mqtt/client.py", line 2439, in _packet_read
2023-10-23T12:05:52+02:00 theengs-gateway.theengs-gateway[5461]:     rc = self._packet_handle()
2023-10-23T12:05:52+02:00 theengs-gateway.theengs-gateway[5461]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/paho/mqtt/client.py", line 3033, in _packet_handle
2023-10-23T12:05:52+02:00 theengs-gateway.theengs-gateway[5461]:     return self._handle_publish()
2023-10-23T12:05:52+02:00 theengs-gateway.theengs-gateway[5461]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/paho/mqtt/client.py", line 3327, in _handle_publish
2023-10-23T12:05:52+02:00 theengs-gateway.theengs-gateway[5461]:     self._handle_on_message(message)
2023-10-23T12:05:52+02:00 theengs-gateway.theengs-gateway[5461]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/paho/mqtt/client.py", line 3570, in _handle_on_message
2023-10-23T12:05:52+02:00 theengs-gateway.theengs-gateway[5461]:     on_message(self, self._userdata, message)
2023-10-23T12:05:52+02:00 theengs-gateway.theengs-gateway[5461]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/TheengsGateway/ble_gateway.py", line 134, in on_message
2023-10-23T12:05:52+02:00 theengs-gateway.theengs-gateway[5461]:     address = msg_json["id"]
2023-10-23T12:05:52+02:00 theengs-gateway.theengs-gateway[5461]: TypeError: string indices must be integers
2023-10-23T12:05:52+02:00 systemd[1]: snap.theengs-gateway.theengs-gateway.service: Main process exited, code=exited, status=1/FAILURE
2023-10-23T12:05:52+02:00 systemd[1]: snap.theengs-gateway.theengs-gateway.service: Failed with result 'exit-code'.
2023-10-23T12:05:52+02:00 systemd[1]: snap.theengs-gateway.theengs-gateway.service: Scheduled restart job, restart counter is at 4.
2023-10-23T12:05:52+02:00 systemd[1]: Stopped Service for snap application theengs-gateway.theengs-gateway.
2023-10-23T12:05:52+02:00 systemd[1]: Started Service for snap application theengs-gateway.theengs-gateway.
2023-10-23T12:05:53+02:00 theengs-gateway.theengs-gateway[5603]: Traceback (most recent call last):
2023-10-23T12:05:53+02:00 theengs-gateway.theengs-gateway[5603]:   File "/snap/theengs-gateway/45/bin/TheengsGateway", line 4, in <module>
2023-10-23T12:05:53+02:00 theengs-gateway.theengs-gateway[5603]:     main()
2023-10-23T12:05:53+02:00 theengs-gateway.theengs-gateway[5603]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/TheengsGateway/__init__.py", line 317, in main
2023-10-23T12:05:53+02:00 theengs-gateway.theengs-gateway[5603]:     run(conf_path)
2023-10-23T12:05:53+02:00 theengs-gateway.theengs-gateway[5603]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/TheengsGateway/ble_gateway.py", line 488, in run
2023-10-23T12:05:53+02:00 theengs-gateway.theengs-gateway[5603]:     gw.client.loop_forever()
2023-10-23T12:05:53+02:00 theengs-gateway.theengs-gateway[5603]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/paho/mqtt/client.py", line 1756, in loop_forever
2023-10-23T12:05:53+02:00 theengs-gateway.theengs-gateway[5603]:     rc = self._loop(timeout)
2023-10-23T12:05:53+02:00 theengs-gateway.theengs-gateway[5603]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/paho/mqtt/client.py", line 1164, in _loop
2023-10-23T12:05:53+02:00 theengs-gateway.theengs-gateway[5603]:     rc = self.loop_read()
2023-10-23T12:05:53+02:00 theengs-gateway.theengs-gateway[5603]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/paho/mqtt/client.py", line 1556, in loop_read
2023-10-23T12:05:53+02:00 theengs-gateway.theengs-gateway[5603]:     rc = self._packet_read()
2023-10-23T12:05:53+02:00 theengs-gateway.theengs-gateway[5603]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/paho/mqtt/client.py", line 2439, in _packet_read
2023-10-23T12:05:53+02:00 theengs-gateway.theengs-gateway[5603]:     rc = self._packet_handle()
2023-10-23T12:05:53+02:00 theengs-gateway.theengs-gateway[5603]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/paho/mqtt/client.py", line 3033, in _packet_handle
2023-10-23T12:05:53+02:00 theengs-gateway.theengs-gateway[5603]:     return self._handle_publish()
2023-10-23T12:05:53+02:00 theengs-gateway.theengs-gateway[5603]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/paho/mqtt/client.py", line 3327, in _handle_publish
2023-10-23T12:05:53+02:00 theengs-gateway.theengs-gateway[5603]:     self._handle_on_message(message)
2023-10-23T12:05:53+02:00 theengs-gateway.theengs-gateway[5603]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/paho/mqtt/client.py", line 3570, in _handle_on_message
2023-10-23T12:05:53+02:00 theengs-gateway.theengs-gateway[5603]:     on_message(self, self._userdata, message)
2023-10-23T12:05:53+02:00 theengs-gateway.theengs-gateway[5603]:   File "/snap/theengs-gateway/45/lib/python3.10/site-packages/TheengsGateway/ble_gateway.py", line 134, in on_message
2023-10-23T12:05:53+02:00 theengs-gateway.theengs-gateway[5603]:     address = msg_json["id"]
2023-10-23T12:05:53+02:00 theengs-gateway.theengs-gateway[5603]: TypeError: string indices must be integers
2023-10-23T12:05:53+02:00 systemd[1]: snap.theengs-gateway.theengs-gateway.service: Main process exited, code=exited, status=1/FAILURE
2023-10-23T12:05:53+02:00 systemd[1]: snap.theengs-gateway.theengs-gateway.service: Failed with result 'exit-code'.
2023-10-23T12:05:53+02:00 systemd[1]: snap.theengs-gateway.theengs-gateway.service: Scheduled restart job, restart counter is at 5.
2023-10-23T12:05:53+02:00 systemd[1]: Stopped Service for snap application theengs-gateway.theengs-gateway.
2023-10-23T12:05:53+02:00 systemd[1]: snap.theengs-gateway.theengs-gateway.service: Start request repeated too quickly.
2023-10-23T12:05:53+02:00 systemd[1]: snap.theengs-gateway.theengs-gateway.service: Failed with result 'exit-code'.
2023-10-23T12:05:53+02:00 systemd[1]: Failed to start Service for snap application theengs-gateway.theengs-gateway.

Merci pour votre attention.

Hello @Jeandhom,

Il semble que l’erreur que tu rencontres :

File "/snap/theengs-gateway/45/lib/python3.10/site-packages/TheengsGateway/ble_gateway.py", line 134, in on_message
  address = msg_json["id"]

Est dû à un payload non décodé (string), alors qu’un array est attendue.

As-tu installé la dernière version de Theengs Gateway ?
Car il n’y a pas de ligne address = msg_json["id"] dans le code récent, ce commit d’aout la retire :

Bad

Merci pour ton intérêt.

Je suis sur la dernière version snap à priori du 11 juin dernier.

Capture d’écran du 2023-10-23 14-32-48

C’est bizarre d’enlever le bluetooth sur ce sujet qui parle de Theengs Gateway qui permet de décoder les trames des équipements Bluetooth.
Ce tag qui doit être probablement suivi par @1technophile dont je suis maintenant obligé de tagué.

Moi je trouvais bizarre d’utiliser le tag bluetooth alors que tu précisais « sans bluetooth » dans le titre du post => avec ou sans bluetooth? on ne sait pas trop :upside_down_face:

si tu veux poser une question directement l’auteur de theengs, p-e plus rapide de poster une issue sur le github?

Je pensais que ma première phrase était très claire surtout pour toi qui a fait un plugin sur ce sujet.

Je peux donc compléter que je souhaite faire décoder des trames bluetooth qui seront réceptionnées par Theengs Gateway via un broker et non pas directement par un dongle bluetooth.

Non, ca ne l’était pas
du coup je me suis permis une (autre) petite modif du sujet :wink:

et du coup je peux te répondre que l’absence de dongle bluetooth n’est pas la source de ce plantage je pense car c’est un des tests que j’ai effectué: theengs gateway démarre sans soucis même si pas de dongle connecté/présent
mais je ne sais pas plus pour le reste => p-e vérifier la config faite?

1 « J'aime »

Merci pour la remise en place du tag, pour l’ajout dans le titre qui est maintenant plus clair et ta confirmation que Theengs Gateway peut démarrer sans dongle bluetooth.
:ok_hand:

ta vm c’est debian 11 ou debian 12?

debian 11, j’ai vu le sujet spécifique pour une installation sur debian 12 mais ici ce n’est pas le cas.

En regardant de plus près, le service démarre bien (lwt online) mais il plante (lwt offline) dès l’apparition du premier topic "undecoded" qui est de la forme.

{
  "id": "d0:ab:37:cd:3b:d9",
  "mac_type": 2,
  "advertisementdata": "0201060303031805ff5900004609160a18d0ab37cd3bd904096e7574",
  "scanRsp": "",
  "rssi": -92,
  "flags": 6,
  "localname": "nut",
  "manufacturerdatauuid": "0059",
  "manufacturerdata": "0046",
  "servicedatauuid": "180a",
  "servicedata": "d0ab37cd3bd9"
}

EDIT: Je profite de ce sujet pour demander à 1technophile, si la syntaxe des clés du JSON sont conformes à ce qui est requis par Theengs Gateway. Je n’ai pas trouvé de liste exhaustive sur ce sujet.

Finalement, ce qui faisait planter le service, c’est que j’avais mis un autre topic au même niveau que "undecoded" pour avoir des infos complémentaires non gérées par Theengs Gateway et cela ne devait pas lui plaire.

Hello,

Désolé, grosse aprèm.

J’ai mis du temps à comprendre aussi le « MQTTtoMQTT » :

Tu pourrais rajouter le tag mqtt aussi :wink:

Ravi que tu ai trouvé le topic parasite qui n’envoie pas de json, c’est réglé du coup ?

Bad

C’est le problème lorsque on a la tête dedans depuis un moment, on pense être tout de suite compris alors qu’il faudrait être plus précis.

Fait par @nebz, merci à lui.

Il n’y a plus de plantage maintenant.

Hello,
Si quelqu’un à l’humeur et le temps de me vulgariser en quelques phrases ce qu’est Theengs Gateway et son éventuelle utilité pour nous je suis preneur. Je trouve des trucs en anglais mais comme je maitrise mal du coup ce n’est pas clair pour moi en utilisation concrète :frowning:
Par avance merci

Bonjour,

Il décode les informations transmises par des périphériques BLE en les transmettant « en clair » à un broker mqtt.

D’où le terme « Gateway » car il fait passerelle entre BLE et mqtt.

Ok, c’est la notion de « sans dongle » où j’ai du mal. Le bluetooch c’est émis sur une fréquence donc avant de décoder il faut bien « écouter »

Tu peux très bien transmettre des frames BT à partir d’une autre machine que celle sur laquelle est installé Theengs.

J’ai essayé ici https://mips2648.github.io/jeedom-plugins-docs/MQTTDiscovery/fr_FR/#tocAnchor-1-14-1

2 « J'aime »

Merci Mips :wave: je comprends mieux maintenant y compris donc ce que fait Madcow.
Et c’est bien expliqué, je vais prendre le temps lire plus attentivement en intégralité.

1 « J'aime »