Désinstallation puis Réinstallation de l’antenne : même problème
TypeError: init() missing 1 required positional argument: ‹ callback_api_version ›
AttributeError: ‹ Client › object has no attribute ‹ _sock ›
| Name | Value |
|--------------|-----------------------|
| address | B8:13:32:XX:XX:XX |
| sw_version | JeedomAtlas |
| hw_version | usb:v1D6Bp0246d0537 |
| passive_scan | False |
| manufacturer | AMPAK Technology,Inc. |
| product | None |
| vendor_id | None |
| product_id | None |
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 55, in main
run(configuration, config_path)
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 648, in run
gw.connect_mqtt()
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 162, in connect_mqtt
self.client = mqtt_client.Client()
TypeError: __init__() missing 1 required positional argument: 'callback_api_version'
Exception ignored in: <function Client.__del__ at 0xffffac87fe50>
Traceback (most recent call last):
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 874, in __del__
self._reset_sockets()
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1133, in _reset_sockets
INFO:BLEGateway:Starting BLE scan
self._sock_close()
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1119, in _sock_close
if not self._sock:
AttributeError: 'Client' object has no attribute '_sock'
# Theengs Gateway Diagnostics
## Package Versions
| Name | Value |
|--------------------|--------|
| Theengs Gateway | 1.3.0 |
| Theengs Decoder | 1.6.8 |
| Bleak | 0.21.1 |
| Bluetooth Clocks | 0.2.0 |
| Bluetooth Numbers | 1.1.1 |
| Paho MQTT | 2.0.0 |
| Bluetooth Adapters | 0.17.0 |
## Python
| Name | Value |
|----------------|---------------------------------------------------------|
| Version | 3.9.2 |
| Implementation | CPython |
| Compiler | GCC 10.2.1 20210110 |
| Executable | /root/.local/share/pipx/venvs/theengsgateway/bin/python |
## Operating System
| Name | Value |
|--------------|---------------------------------------------------|
| System | Linux |
| Release | 5.15.93-rockchip64 |
| Version | #23.02.2 SMP PREEMPT Fri Feb 17 23:48:36 UTC 2023 |
| Machine type | aarch64 |
## Configuration
File: /root/theengsgw.conf
{
"adapter": "hci0",
"bindkeys": {},
"ble": 1,
"ble_scan_time": 5,
"ble_time_between_scans": 5,
"discovery": 1,
"discovery_device_name": "Antenne Bluetooth",
"discovery_filter": [
"IBEACON",
"GAEN",
"MS-CDP",
"APPLE_CONT",
"APPLE_CONTAT"
],
"discovery_topic": "homeassistant",
"enable_tls": 0,
"enable_websocket": 0,
"hass_discovery": 1,
"host": "192.168.1.69",
"identities": {},
"log_level": "DEBUG",
"lwt_topic": "tgw/1199/LWT",
"pass": "***",
"port": 1883,
"presence": 0,
"presence_topic": "home/TGW_1199/presence",
"publish_advdata": 0,
"publish_all": 1,
"publish_topic": "home/TGW_1199/BTtoMQTT",
"scanning_mode": "active",
"subscribe_topic": "home/+/BTtoMQTT/undecoded",
"time_format": 0,
"time_sync": [],
"tracker_timeout": 120,
"user": "***"
}
## Bluetooth adapters
Default adapter: hci0
### hci0
| Name | Value |
|--------------|---------------------|
| address | 5C:F3:70:XX:XX:XX |
| sw_version | JeedomAtlas #1 |
| hw_version | usb:v1D6Bp0246d0537 |
| passive_scan | False |
| manufacturer | Broadcom Corp |
| product | BCM20702A0 |
| vendor_id | 0b05 |
| product_id | 17cb |
### hci1
| Name | Value |
|--------------|-----------------------|
| address | B8:13:32:XX:XX:XX |
| sw_version | JeedomAtlas |
| hw_version | usb:v1D6Bp0246d0537 |
| passive_scan | False |
| manufacturer | AMPAK Technology,Inc. |
| product | None |
| vendor_id | None |
| product_id | None |
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 55, in main
run(configuration, config_path)
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 648, in run
gw.connect_mqtt()
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 162, in connect_mqtt
self.client = mqtt_client.Client()
TypeError: __init__() missing 1 required positional argument: 'callback_api_version'
Exception ignored in: <function Client.__del__ at 0xffff84f8ee50>
Traceback (most recent call last):
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 874, in __del__
self._reset_sockets()
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1133, in _reset_sockets
INFO:BLEGateway:Starting BLE scan
self._sock_close()
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1119, in _sock_close
if not self._sock:
AttributeError: 'Client' object has no attribute '_sock'
# Theengs Gateway Diagnostics
## Package Versions
| Name | Value |
|--------------------|--------|
| Theengs Gateway | 1.3.0 |
| Theengs Decoder | 1.6.8 |
| Bleak | 0.21.1 |
| Bluetooth Clocks | 0.2.0 |
| Bluetooth Numbers | 1.1.1 |
| Paho MQTT | 2.0.0 |
| Bluetooth Adapters | 0.17.0 |
## Python
| Name | Value |
|----------------|---------------------------------------------------------|
| Version | 3.9.2 |
| Implementation | CPython |
| Compiler | GCC 10.2.1 20210110 |
| Executable | /root/.local/share/pipx/venvs/theengsgateway/bin/python |
## Operating System
| Name | Value |
|--------------|---------------------------------------------------|
| System | Linux |
| Release | 5.15.93-rockchip64 |
| Version | #23.02.2 SMP PREEMPT Fri Feb 17 23:48:36 UTC 2023 |
| Machine type | aarch64 |
## Configuration
File: /root/theengsgw.conf
{
"adapter": "hci0",
"bindkeys": {},
"ble": 1,
"ble_scan_time": 5,
"ble_time_between_scans": 5,
"discovery": 1,
"discovery_device_name": "Antenne Bluetooth",
"discovery_filter": [
"IBEACON",
"GAEN",
"MS-CDP",
"APPLE_CONT",
"APPLE_CONTAT"
],
"discovery_topic": "homeassistant",
"enable_tls": 0,
"enable_websocket": 0,
"hass_discovery": 1,
"host": "192.168.1.69",
"identities": {},
"log_level": "DEBUG",
"lwt_topic": "tgw/1199/LWT",
"pass": "***",
"port": 1883,
"presence": 0,
"presence_topic": "home/TGW_1199/presence",
"publish_advdata": 0,
"publish_all": 1,
"publish_topic": "home/TGW_1199/BTtoMQTT",
"scanning_mode": "active",
"subscribe_topic": "home/+/BTtoMQTT/undecoded",
"time_format": 0,
"time_sync": [],
"tracker_timeout": 120,
"user": "***"
}
## Bluetooth adapters
Default adapter: hci0
### hci0
| Name | Value |
|--------------|---------------------|
| address | 5C:F3:70:XX:XX:XX |
| sw_version | JeedomAtlas #1 |
| hw_version | usb:v1D6Bp0246d0537 |
| passive_scan | False |
| manufacturer | Broadcom Corp |
| product | BCM20702A0 |
| vendor_id | 0b05 |
| product_id | 17cb |
### hci1
| Name | Value |
|--------------|-----------------------|
| address | B8:13:32:XX:XX:XX |
| sw_version | JeedomAtlas |
| hw_version | usb:v1D6Bp0246d0537 |
| passive_scan | False |
| manufacturer | AMPAK Technology,Inc. |
| product | None |
| vendor_id | None |
| product_id | None |
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 55, in main
run(configuration, config_path)
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 648, in run
gw.connect_mqtt()
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 162, in connect_mqtt
self.client = mqtt_client.Client()
TypeError: __init__() missing 1 required positional argument: 'callback_api_version'
Exception ignored in: <function Client.__del__ at 0xffffb9948e50>
Traceback (most recent call last):
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 874, in __del__
INFO:BLEGateway:Starting BLE scan
self._reset_sockets()
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1133, in _reset_sockets
self._sock_close()
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1119, in _sock_close
if not self._sock:
AttributeError: 'Client' object has no attribute '_sock'
# Theengs Gateway Diagnostics
## Package Versions
| Name | Value |
|--------------------|--------|
| Theengs Gateway | 1.3.0 |
| Theengs Decoder | 1.6.8 |
| Bleak | 0.21.1 |
| Bluetooth Clocks | 0.2.0 |
| Bluetooth Numbers | 1.1.1 |
| Paho MQTT | 2.0.0 |
| Bluetooth Adapters | 0.17.0 |
## Python
| Name | Value |
|----------------|---------------------------------------------------------|
| Version | 3.9.2 |
| Implementation | CPython |
| Compiler | GCC 10.2.1 20210110 |
| Executable | /root/.local/share/pipx/venvs/theengsgateway/bin/python |
## Operating System
| Name | Value |
|--------------|---------------------------------------------------|
| System | Linux |
| Release | 5.15.93-rockchip64 |
| Version | #23.02.2 SMP PREEMPT Fri Feb 17 23:48:36 UTC 2023 |
| Machine type | aarch64 |
## Configuration
File: /root/theengsgw.conf
{
"adapter": "hci0",
"bindkeys": {},
"ble": 1,
"ble_scan_time": 5,
"ble_time_between_scans": 5,
"discovery": 1,
"discovery_device_name": "Antenne Bluetooth",
"discovery_filter": [
"IBEACON",
"GAEN",
"MS-CDP",
"APPLE_CONT",
"APPLE_CONTAT"
],
"discovery_topic": "homeassistant",
"enable_tls": 0,
"enable_websocket": 0,
"hass_discovery": 1,
"host": "192.168.1.69",
"identities": {},
"log_level": "DEBUG",
"lwt_topic": "tgw/1199/LWT",
"pass": "***",
"port": 1883,
"presence": 0,
"presence_topic": "home/TGW_1199/presence",
"publish_advdata": 0,
"publish_all": 1,
"publish_topic": "home/TGW_1199/BTtoMQTT",
"scanning_mode": "active",
"subscribe_topic": "home/+/BTtoMQTT/undecoded",
"time_format": 0,
"time_sync": [],
"tracker_timeout": 120,
"user": "***"
}
## Bluetooth adapters
Default adapter: hci0
### hci0
| Name | Value |
|--------------|---------------------|
| address | 5C:F3:70:XX:XX:XX |
| sw_version | JeedomAtlas #1 |
| hw_version | usb:v1D6Bp0246d0537 |
| passive_scan | False |
| manufacturer | Broadcom Corp |
| product | BCM20702A0 |
| vendor_id | 0b05 |
| product_id | 17cb |
### hci1
| Name | Value |
|--------------|-----------------------|
| address | B8:13:32:XX:XX:XX |
| sw_version | JeedomAtlas |
| hw_version | usb:v1D6Bp0246d0537 |
| passive_scan | False |
| manufacturer | AMPAK Technology,Inc. |
| product | None |
| vendor_id | None |
| product_id | None |
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 55, in main
run(configuration, config_path)
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 648, in run
gw.connect_mqtt()
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 162, in connect_mqtt
self.client = mqtt_client.Client()
TypeError: __init__() missing 1 required positional argument: 'callback_api_version'
Exception ignored in: <function Client.__del__ at 0xffff834b1e50>
Traceback (most recent call last):
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 874, in __del__
INFO:BLEGateway:Starting BLE scan
self._reset_sockets()
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1133, in _reset_sockets
self._sock_close()
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/paho/mqtt/client.py", line 1119, in _sock_close
if not self._sock:
AttributeError: 'Client' object has no attribute '_sock'
# Theengs Gateway Diagnostics
## Package Versions
| Name | Value |
|--------------------|--------|
| Theengs Gateway | 1.3.0 |
| Theengs Decoder | 1.6.8 |
| Bleak | 0.21.1 |
| Bluetooth Clocks | 0.2.0 |
| Bluetooth Numbers | 1.1.1 |
| Paho MQTT | 2.0.0 |
| Bluetooth Adapters | 0.17.0 |
## Python
| Name | Value |
|----------------|---------------------------------------------------------|
| Version | 3.9.2 |
| Implementation | CPython |
| Compiler | GCC 10.2.1 20210110 |
| Executable | /root/.local/share/pipx/venvs/theengsgateway/bin/python |
## Operating System
| Name | Value |
|--------------|---------------------------------------------------|
| System | Linux |
| Release | 5.15.93-rockchip64 |
| Version | #23.02.2 SMP PREEMPT Fri Feb 17 23:48:36 UTC 2023 |
| Machine type | aarch64 |
## Configuration
File: /root/theengsgw.conf
{
"adapter": "hci0",
"bindkeys": {},
"ble": 1,
"ble_scan_time": 5,
"ble_time_between_scans": 5,
"discovery": 1,
"discovery_device_name": "Antenne Bluetooth",
"discovery_filter": [
"IBEACON",
"GAEN",
"MS-CDP",
"APPLE_CONT",
"APPLE_CONTAT"
],
"discovery_topic": "homeassistant",
"enable_tls": 0,
"enable_websocket": 0,
"hass_discovery": 1,
"host": "192.168.1.69",
"identities": {},
"log_level": "DEBUG",
"lwt_topic": "tgw/1199/LWT",
"pass": "***",
"port": 1883,
"presence": 0,
"presence_topic": "home/TGW_1199/presence",
"publish_advdata": 0,
"publish_all": 1,
"publish_topic": "home/TGW_1199/BTtoMQTT",
"scanning_mode": "active",
"subscribe_topic": "home/+/BTtoMQTT/undecoded",
"time_format": 0,
"time_sync": [],
"tracker_timeout": 120,
"user": "***"
}
## Bluetooth adapters
Default adapter: hci0
### hci0
| Name | Value |
|--------------|---------------------|
| address | 5C:F3:70:XX:XX:XX |
| sw_version | JeedomAtlas #1 |
| hw_version | usb:v1D6Bp0246d0537 |
| passive_scan | False |
| manufacturer | Broadcom Corp |
| product | BCM20702A0 |
| vendor_id | 0b05 |
| product_id | 17cb |
### hci1
| Name | Value |
|--------------|-----------------------|
| address | B8:13:32:XX:XX:XX |
| sw_version | JeedomAtlas |
| hw_version | usb:v1D6Bp0246d0537 |
| passive_scan | False |
| manufacturer | AMPAK Technology,Inc. |
| product | None |
| vendor_id | None |
| product_id | None |
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 55, in main
run(configuration, config_path)
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 648, in run
gw.connect_mqtt()
File "/root/.local/share/pipx/venvs/theengsgateway/lib/python3.9/site-packages/TheengsGateway/ble_gateway.py", line 162, in connect_mqtt
self.client = mqtt_client.Client()
TypeError: __init__() missing 1 required positional argument: 'callback_api_version'