bonjour,
j’ai un soucis avec le bluetooth et tgw, je suis oblige de redemarre l’antenne dans tgw pour que ca refonctionne, j’ai des erreur dans les log tgw voir ci-dessous. avez vous une idée d’ou ca peu venir
merci
j’ai aussi une erreur dans la console voir pj
cle ud100 sena
jeedom sur proxmox 7.4
--- Logging error ---
Traceback (most recent call last):
File "/usr/lib/python3.9/logging/__init__.py", line 1079, in emit
msg = self.format(record)
File "/usr/lib/python3.9/logging/__init__.py", line 923, in format
return fmt.format(record)
File "/usr/lib/python3.9/logging/__init__.py", line 659, in format
record.message = record.getMessage()
File "/usr/lib/python3.9/logging/__init__.py", line 363, in getMessage
msg = msg % self.args
TypeError: %d format: a number is required, not ReasonCode
Call stack:
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 55, in main
run(configuration, config_path)
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 683, in run
gw.client.loop_forever()
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 2291, in loop_forever
rc = self._loop(timeout)
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1680, in _loop
rc = self.loop_read()
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 2096, in loop_read
return self._loop_rc_handle(rc)
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 3042, in _loop_rc_handle
self._do_on_disconnect(packet_from_broker=False, v1_rc=rc)
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 4378, in _do_on_disconnect
on_disconnect(
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 163, in on_disconnect
logger.error(
Message: 'Disconnected from MQTT broker with reason code = %d'
Arguments: (ReasonCode(Disconnect, 'Unspecified error'),)
ERROR:BLEGateway:[org.bluez.Error.NotReady] Resource Not Ready
ERROR:BLEGateway:[org.bluez.Error.NotReady] Resource Not Ready
ERROR:BLEGateway:[org.freedesktop.DBus.Error.UnknownObject] Method "StopDiscovery" with signature "" on interface "org.bluez.Adapter1" doesn't exist
ERROR:BLEGateway:[org.freedesktop.DBus.Error.UnknownObject] Method "StopDiscovery" with signature "" on interface "org.bluez.Adapter1" doesn't exist
--- Logging error ---
Traceback (most recent call last):
File "/usr/lib/python3.9/logging/__init__.py", line 1079, in emit
msg = self.format(record)
File "/usr/lib/python3.9/logging/__init__.py", line 923, in format
return fmt.format(record)
File "/usr/lib/python3.9/logging/__init__.py", line 659, in format
record.message = record.getMessage()
File "/usr/lib/python3.9/logging/__init__.py", line 363, in getMessage
msg = msg % self.args
TypeError: %d format: a number is required, not ReasonCode
Call stack:
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 55, in main
run(configuration, config_path)
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 683, in run
gw.client.loop_forever()
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 2291, in loop_forever
rc = self._loop(timeout)
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1680, in _loop
rc = self.loop_read()
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 2096, in loop_read
return self._loop_rc_handle(rc)
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 3042, in _loop_rc_handle
self._do_on_disconnect(packet_from_broker=False, v1_rc=rc)
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 4378, in _do_on_disconnect
on_disconnect(
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 163, in on_disconnect
logger.error(
Message: 'Disconnected from MQTT broker with reason code = %d'
Arguments: (ReasonCode(Disconnect, 'Unspecified error'),)
ERROR:BLEGateway:Failed to send message to topic home/TGW_250/BTtoMQTT/FD7EEB286C30
ERROR:BLEGateway:Failed to send message to topic home/TGW_250/BTtoMQTT/54B7E54C0538
ERROR:BLEGateway:Failed to send message to topic home/TGW_250/BTtoMQTT/54B7E54C0538
ERROR:BLEGateway:Failed to send message to topic home/TGW_250/BTtoMQTT/FD7EEB286C30
ERROR:BLEGateway:Failed to send message to topic home/TGW_250/BTtoMQTT/FFFF104D4647
ERROR:BLEGateway:Failed to send message to topic home/TGW_250/BTtoMQTT/4C312DE1F5A5
ERROR:BLEGateway:Failed to send message to topic home/TGW_250/BTtoMQTT/B099D774C317
ERROR:BLEGateway:Failed to send message to topic home/TGW_250/BTtoMQTT/4C312DE1F5A5
ERROR:BLEGateway:Failed to send message to topic home/TGW_250/BTtoMQTT/48B02D164C1C
ERROR:BLEGateway:[org.freedesktop.DBus.Error.UnknownObject] Method "SetDiscoveryFilter" with signature "a{sv}" on interface "org.bluez.Adapter1" doesn't exist
ERROR:BLEGateway:[org.bluez.Error.NotReady] Resource Not Ready
ERROR:BLEGateway:[org.freedesktop.DBus.Error.NoReply] Message recipient disconnected from message bus without replying
ERROR:BLEGateway:[org.bluez.Error.Failed] No discovery started
ERROR:BLEGateway:[org.freedesktop.DBus.Error.UnknownObject] Method "StopDiscovery" with signature "" on interface "org.bluez.Adapter1" doesn't exist
--- Logging error ---
Traceback (most recent call last):
File "/usr/lib/python3.9/logging/__init__.py", line 1079, in emit
msg = self.format(record)
File "/usr/lib/python3.9/logging/__init__.py", line 923, in format
return fmt.format(record)
File "/usr/lib/python3.9/logging/__init__.py", line 659, in format
record.message = record.getMessage()
File "/usr/lib/python3.9/logging/__init__.py", line 363, in getMessage
msg = msg % self.args
TypeError: %d format: a number is required, not ReasonCode
Call stack:
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 55, in main
run(configuration, config_path)
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 683, in run
gw.client.loop_forever()
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 2291, in loop_forever
rc = self._loop(timeout)
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1680, in _loop
rc = self.loop_read()
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 2096, in loop_read
return self._loop_rc_handle(rc)
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 3042, in _loop_rc_handle
self._do_on_disconnect(packet_from_broker=False, v1_rc=rc)
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 4378, in _do_on_disconnect
on_disconnect(
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 163, in on_disconnect
logger.error(
Message: 'Disconnected from MQTT broker with reason code = %d'
Arguments: (ReasonCode(Disconnect, 'Unspecified error'),)
ERROR:BLEGateway:Failed to send message to topic home/TGW_250/BTtoMQTT/54B7E54C0538
ERROR:BLEGateway:Failed to send message to topic home/TGW_250/BTtoMQTT/4FD0DF383143
ERROR:BLEGateway:[org.bluez.Error.InProgress] Operation already in progress
ERROR:BLEGateway:[org.freedesktop.DBus.Error.UnknownObject] Method "StopDiscovery" with signature "" on interface "org.bluez.Adapter1" doesn't exist
ERROR:BLEGateway:[org.bluez.Error.InProgress] Operation already in progress