Bonjour, voici mes dernières logs:
2023-03-26 00:38:52,375 - Starting tydom2mqtt
2023-03-26 00:38:52,377 - Hassio environment detected: loading configuration from /data/options.json
2023-03-26 00:38:52,379 - Validating configuration ({
"log_level": "INFO",
"mqtt_host": "192.168.1.72",
"mqtt_password": "m***t",
"mqtt_port": 1883,
"mqtt_ssl": false,
"mqtt_user": "mqqqt",
"tydom_alarm_home_zone": 1,
"tydom_alarm_night_zone": 2,
"tydom_alarm_pin": "",
"tydom_ip": "192.168.1.27",
"tydom_mac": "MAC",
"tydom_password": "T************"
}
2023-03-26 00:38:52,380 - The configuration is valid
2023-03-26 00:38:52,381 - tydom.TydomClient - INFO - Configure local mode (192.168.1.27)
2023-03-26 00:38:52,395 - mqtt.MqttClient - INFO - Connecting to mqtt broker (host=192.168.1.72, port=1883, user=mqqqt, ssl=False)
2023-03-26 00:38:52,399 - tydom.TydomClient - INFO - Connecting to tydom
2023-03-26 00:38:53,703 - mqtt.MqttClient - INFO - Connected to mqtt broker
2023-03-26 00:38:54,893 - tydom.TydomClient - ERROR - Exception when trying to connect with websocket (server rejected WebSocket connection: HTTP 401)
2023-03-26 00:38:54,945 - asyncio - ERROR - Task exception was never retrieved
future: <Task finished name='Task-2' coro=<listen_tydom() done, defined at /app/main.py:41> exception=SystemExit(1)>
Traceback (most recent call last):
File "/app/tydom/TydomClient.py", line 117, in connect
self.connection = await websockets.connect(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/websockets/legacy/client.py", line 659, in __await_impl_timeout__
return await asyncio.wait_for(self.__await_impl__(), self.open_timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/asyncio/tasks.py", line 479, in wait_for
return fut.result()
^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/websockets/legacy/client.py", line 666, in __await_impl__
await protocol.handshake(
File "/usr/local/lib/python3.11/site-packages/websockets/legacy/client.py", line 332, in handshake
raise InvalidStatusCode(status_code, response_headers)
websockets.exceptions.InvalidStatusCode: server rejected WebSocket connection: HTTP 401
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/asyncio/base_events.py", line 607, in run_forever
self._run_once()
File "/usr/local/lib/python3.11/asyncio/base_events.py", line 1922, in _run_once
handle._run()
File "/usr/local/lib/python3.11/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/app/main.py", line 44, in listen_tydom
await tydom_client.connect()
File "/app/tydom/TydomClient.py", line 128, in connect
sys.exit(1)
SystemExit: 1
2023-03-26 00:38:55,037 - asyncio - ERROR - Task was destroyed but it is pending!
task: <Task pending name='Task-3' coro=<Client._resend_qos_messages() running at /usr/local/lib/python3.11/site-packages/gmqtt/client.py:181> wait_for=<Future pending cb=[Task.task_wakeup()]>>
2023-03-26 00:38:55,039 - asyncio - ERROR - Task was destroyed but it is pending!
task: <Task pending name='Task-5' coro=<MQTTProtocol._read_loop() running at /usr/local/lib/python3.11/site-packages/gmqtt/mqtt/protocol.py:211> wait_for=<Future pending cb=[Task.task_wakeup()]>>