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.