BLE gateway on a Raspberry Pi, Debian or Windows PC -> Theengs Gateway!

Hi @jolypas,

do I understand you correctly in that you want to add an additional BLE reception to extend the BLE reception for Theengs Gateway Add-on on your HA system? With

Only theengs Gateway will run on it.

While this would be possible it might be a bit overkill, as an ESP32 running OpenMQTTGateway with its esp32dev-ble-mqtt-undecodedbinary would be less power hungry, smaller and working just as well as an extension for Theengs gateway.

Hope this helps

Hello Thanks for the answer

I have some raspi in stock with Bluetooh embeded to reuse and not yet familar with ESP32 world

Finally, starting from scratch on a new raspbian installation it works fine with python. Just need to find how create a service at boot

Pascal

1 Like

[1.10.0]

Whatā€™s Changed

This release is focused on presence detection. We can now detect the presence and absence of trackers devices like TILE, NUT, BlueCharm (and other models identified here, the gateway will publish an offline message after tracker_timeout (120s per default) to set your controller to ā€œAwayā€ status. Added to this, Apple Watch, iPhone, and iPad can be used for presence detection with the usage of their IRK. And of course numerous other enhancements detailed below, thanks @DigiH and @koenvervloesem !

New devices

Devices Model Measurements
ClearGrass/Qingping CGP23W temperature, humidity, atmospheric pressure, battery
Aranet4 COā‚‚ Monitor temperature, humidity, pressure, carbon dioxide, battery
Switchbot Curtain model 3 moving, position, light level, battery, calibration state

New features

Miscelleanous

Documentation

CI

Full Changelog: Comparing v1.2.0...v1.3.0 Ā· theengs/gateway Ā· GitHub

1 Like

I installed TheengsGateway on my Unraid Home Assistant VM. It appears when I look in MQTT Explorer but only with the LWT=Online under the topic. I have several OpenMQTTGateway devices named OMG_00, OMG_01, etc, but none of these seem to pass data to the TheengsGateway. I assume that this should??? Also, when starting the TheengsGateway it does not seem to see a BT adapter so it does not seem to start properlyā€¦

The OMG_## devices see many BLE devices and show those in their individual topics in MQTT Explorer. Any suggestions on how to make this work, or am I misunderstanding the use case??? In the end I want to enable Presence for BLE devices which indicate the room they are in (which OMG_## Device) within the house.

Thanksā€¦

I just saw your posting here as well. Letā€™s keep the thread in the Theengs forum as to avoid any cross talk.

FWIW, Iā€™ve had some problems/errors while trying to get this to work, thought Iā€™d share so others can benefit.
My setup: Raspberry Pi 4 with Raspbian, aiming to connect to a virtual HAOS install, to get a Bluetooth Proxy to work (similar to ESPHomeā€™s BT Proxy).

$ python3 -m TheengsGateway -H "homeassistant.local:1883"
INFO:BLEGateway:Starting BLE scan
ERROR:BLEGateway:Connection error
Traceback (most recent call last):
  File "/home/pi/.local/lib/python3.7/site-packages/TheengsGateway/ble_gateway.py", line 185, in connect_mqtt
    self.configuration["port"],
  File "/home/pi/.local/lib/python3.7/site-packages/paho/mqtt/client.py", line 914, in connect
    return self.reconnect()
  File "/home/pi/.local/lib/python3.7/site-packages/paho/mqtt/client.py", line 1044, in reconnect
    sock = self._create_socket_connection()
  File "/home/pi/.local/lib/python3.7/site-packages/paho/mqtt/client.py", line 3685, in _create_socket_connection
    return socket.create_connection(addr, timeout=self._connect_timeout, source_address=source)
  File "/usr/lib/python3.7/socket.py", line 707, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

ā†’ Donā€™t include the port number with the host name, change to -H ā€œipaddressā€ or -H ā€œhostnameā€ instead.

$ python3 -m TheengsGateway -H "homeassistant.local"
INFO:BLEGateway:Starting BLE scan
ERROR:BLEGateway:Connection error
Traceback (most recent call last):
  File "/home/pi/.local/lib/python3.7/site-packages/TheengsGateway/ble_gateway.py", line 185, in connect_mqtt
    self.configuration["port"],
  File "/home/pi/.local/lib/python3.7/site-packages/paho/mqtt/client.py", line 914, in connect
    return self.reconnect()
  File "/home/pi/.local/lib/python3.7/site-packages/paho/mqtt/client.py", line 1044, in reconnect
    sock = self._create_socket_connection()
  File "/home/pi/.local/lib/python3.7/site-packages/paho/mqtt/client.py", line 3685, in _create_socket_connection
    return socket.create_connection(addr, timeout=self._connect_timeout, source_address=source)
  File "/usr/lib/python3.7/socket.py", line 727, in create_connection
    raise err
  File "/usr/lib/python3.7/socket.py", line 716, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused`

ā†’ An MQTT broker is required on Home Assistant. Install the add-on ā€˜Mosquitto brokerā€™ on Home Assistant and start it.

$ python3 -m TheengsGateway -H "homeassistant.local"
INFO:BLEGateway:Starting BLE scan
ERROR:BLEGateway:Failed to connect to MQTT broker homeassistant.local:1883 return code: 5
ERROR:BLEGateway:Disconnected with return code = 5
ERROR:BLEGateway:Failed to connect to MQTT broker homeassistant.local:1883 return code: 5
ERROR:BLEGateway:Disconnected with return code = 5
ERROR:BLEGateway:Failed to connect to MQTT broker homeassistant.local:1883 return code: 5
ERROR:BLEGateway:Disconnected with return code = 5
ERROR:BLEGateway:Failed to connect to MQTT broker homeassistant.local:1883 return code: 5
ERROR:BLEGateway:Disconnected with return code = 5
^C

ā†’ A user/password on Home Assistant is required (with login capabilities). Add a user (e.g. ā€˜mqttā€™) on Home Assistant.

$ python3 -m TheengsGateway -H "homeassistant.local" -u mqtt -p "my_password"
INFO:BLEGateway:Starting BLE scan
INFO:BLEGateway:Connected to MQTT Broker!
INFO:BLEGateway:Subscribed to home/+/BTtoMQTT/undecoded
INFO:BLEGateway:Sent 2 messages to MQTT
INFO:BLEGateway:Sent 2 messages to MQTT
INFO:BLEGateway:Sent 2 messages to MQTT
INFO:BLEGateway:Sent 3 messages to MQTT

ā†’ Works.

Next time you run the command on the RPi, you may just use python3 -m TheengsGateway without options as its config was automatically saved in theengsgw.conf.

Or if you want to start the service automatically at Pi boot time (as user ā€˜piā€™):

$ sudo vi /etc/systemd/system/TheengsGateway.service
[Unit]
Description=Theengs Gateway
After=network-online.target
[Service]
Restart=always
User=pi
Type=simple
ExecStart=/usr/bin/python3 -m TheengsGateway
[Install]
WantedBy=multi-user.target

Then reload the daemon, enable the service and check its status:

$ sudo systemctl daemon-reload
$ sudo systemctl enable --now TheengsGateway.service
Created symlink /etc/systemd/system/multi-user.target.wants/TheengsGateway.service ā†’ /etc/systemd/system/TheengsGateway.service.
$ systemctl status TheengsGateway
ā— TheengsGateway.service - Theengs Gateway
   Loaded: loaded (/etc/systemd/system/TheengsGateway.service; enabled; vendor preset: enabled)
   Active: active (running) since Sat 2024-02-03 10:36:55 CET; 11s ago
 Main PID: 3566 (python3)
    Tasks: 2 (limit: 4915)
   Memory: 15.1M
   CGroup: /system.slice/TheengsGateway.service
           ā””ā”€3566 /usr/bin/python3 -m TheengsGateway

Feb 03 10:36:55 sys2 systemd[1]: Started Theengs Gateway.
Feb 03 10:36:55 sys2 python3[3566]: INFO:BLEGateway:Starting BLE scan
Feb 03 10:36:59 sys2 python3[3566]: INFO:BLEGateway:Connected to MQTT Broker!
Feb 03 10:36:59 sys2 python3[3566]: INFO:BLEGateway:Subscribed to home/+/BTtoMQTT/undecoded
Feb 03 10:37:06 sys2 python3[3566]: INFO:BLEGateway:Sent 2 messages to MQTT

To see/debug the messages received on the HA side, you can use following terminal command (after installing the SSH add-on):

$ mosquitto_sub -v -t ā€˜#ā€™ -h homeassistant.local -u mqtt -P my_password

The hostname is required.

1 Like

Iā€™m not there yet, though.

Iā€™ve got some LYWSD03MMC devices with custom firmware (pvvx and BThome setting). They appear just fine when using ESPHome without the need to add a MAC address or other configuration.
On one of the locations I have an RPi4 and hence wanted to give TheengsGateway a try, instead of adding another ESP.

Upon moving the LYWSD03MMC devices out of ESP range and into RPi range, messages do arrive on HA per the info I get when using mosquitto_sub:

home/TheengsGateway/BTtoMQTT/A4C138C112A8 {"name": "ATC_C13CA8", "id": "A4:C1:38:C1:3C:A8", "rssi": -82, "servicedatauuid": "fcd2", "servicedata": "4000b3016402f80303bd0f"}
home/TheengsGateway/BTtoMQTT/A4C138417F18 {"name": "ATC_419C18", "id": "A4:C1:38:41:9C:18", "rssi": -75, "servicedatauuid": "fcd2", "servicedata": "40003d0cd10b1001"}

However I do not get updates - sensors are unavailable. I tried deleting them hoping that theyā€™d be suggested as a new device but thatā€™s not the case.
Any idea what Iā€™m doing wrong of forgetting about?

Hi @Fuss

Theengs Gateway does not support decoding the BThome (v2) protocol, this is why you are only getting the undecoded servicedata.

The supported protocols are ATC & PVVX custom unencrypted or encrypted.

Thanks @DigiH, I changed over to PVVX on the Xiaomi and now I do get the readings fine. A bit odd to see PVVX is supported but BTHome is not, given I would expect the latter to be more of a standard. :face_with_peeking_eye:
Iā€™ll have a mix though of PVVX and BTHome since with ESPHome, only BTHome allows for autodiscovery (PVVX doesnā€™t seem to).

Hi all, looking for some insight. For some reason devices arenā€™t being published to the homeassistant topic so that they can be auto discovered, I have it enabled and i walked through the logs and cant see anything that stands out. Any ideas would be greatly appreciated

Addon Yaml

Hi @Webstas

Are any of the message you see under TheengsGateway actually recognised and therefore decoded with actual properties?

Since you have set
PUBLISH_ALL: true
in your setting, Theengs Gateway will also publish unrecognised and undecoded devices it finds, but only with their raw undecoded advertising data, and for these no discovery messages will be issued, as it wouldnā€™t make much sense without any decoded properties.

Which BLE devices do you have that you are interested in?

Thanks for the repspone @DigiH I appreciate it,
I was hoping to utilize my Tiles for presense devices and i have a BM2 batt monitor that i want to utilize eventually but its dead at the moment.
I can see the tile devices and a bunch of other devices in the BTtoMQTT topic but i am uncertain if they are ā€œdiscoverableā€, I am sure I am just missing something

F6E399AD7180 = {"manufacturerdata": "0388ec00020100", "name": "Govee_H70B1_7180", "id": "F6:E3:99:AD:71:80", "rssi": -47}
7C260EC60837 = {"id": "7C:26:0E:C6:08:37", "rssi": -59, "servicedatauuid": "fef3", "servicedata": "4a17235437554b113449abb24518f7ebc0beb916d302e6384f0e7d"}
480BEADB13C6 = {"manufacturerdata": "e0000308ca78bb3e", "id": "48:0B:EA:DB:13:C6", "rssi": -43, "servicedatauuid": "fe9f", "servicedata": "0000000000000000000000000000000000000000", "mfr": "Google"}
6101D10C01DD = {"manufacturerdata": "e000030dca8af8ff", "id": "61:01:D1:0C:01:DD", "rssi": -55, "servicedatauuid": "fe9f", "servicedata": "0237354e704e66774137504d0000018d7aa43c6a", "mfr": "Google"}
5959591BCEA3 = {"manufacturerdata": "e000034dca91b4c1", "id": "59:59:59:1B:CE:A3", "rssi": -70, "servicedatauuid": "fe9f", "servicedata": "0000000000000000000000000000000000000000", "mfr": "Google"}
56094665CECF = {"manufacturerdata": "e000032fca9291d0", "id": "56:09:46:65:CE:CF", "rssi": -52, "servicedatauuid": "fe9f", "servicedata": "0273596f41597276734977410000018d7aa43c6f", "mfr": "Google"}
57585FA053BE = {"manufacturerdata": "e0000307ca59c233", "id": "57:58:5F:A0:53:BE", "rssi": -57, "servicedatauuid": "fe9f", "servicedata": "0000000000000000000000000000000000000000", "mfr": "Google"}
4F07639E9D5D = {"manufacturerdata": "e0000324ca347a92", "id": "4F:07:63:9E:9D:5D", "rssi": -73, "servicedatauuid": "fe9f", "servicedata": "0000000000000000000000000000000000000000", "mfr": "Google"}
F0F864B748DC = {"id": "F0:F8:64:B7:48:DC", "rssi": -55, "servicedatauuid": "feed", "servicedata": "020067cc7462f76f4a7c", "brand": "Tile", "model": "Smart Tracker", "model_id": "TILE", "type": "TRACK", "cidc": false, "acts": true, "cont": true, "track": true, "device": "Tile Tracker", "distance": 0.49557202045019066}
C7C2FF8B3D03 = {"id": "C7:C2:FF:8B:3D:03", "rssi": -62, "servicedatauuid": "feed", "servicedata": "020034857f18c55698c3", "brand": "Tile", "model": "Smart Tracker", "model_id": "TILE", "type": "TRACK", "cidc": false, "acts": true, "cont": true, "track": true, "device": "Tile Tracker", "distance": 1.4298239596645876}
DFE5918B9A3A = {"id": "DF:E5:91:8B:9A:3A", "rssi": -61, "servicedatauuid": "feed", "servicedata": "0200bec6f3899705dff5", "brand": "Tile", "model": "Smart Tracker", "model_id": "TILE", "type": "TRACK", "cidc": false, "acts": true, "cont": true, "track": true, "device": "Tile Tracker", "distance": 1.2744385809290257}
D0229FA7D600 = {"id": "D0:22:9F:A7:D6:00", "rssi": -50, "servicedatauuid": "feed", "servicedata": "0200bca0773e7733f242", "brand": "Tile", "model": "Smart Tracker", "model_id": "TILE", "type": "TRACK", "cidc": false, "acts": true, "cont": true, "track": true, "device": "Tile Tracker", "distance": 0.19106446691360568}
5C443E39F3D2 = {"manufacturerdata": "c9070004", "id": "5C:44:3E:39:F3:D2", "rssi": -61, "servicedatauuid": "feed", "servicedata": "0200f137193eec4cb6c6", "brand": "Tile", "model": "Smart Tracker", "model_id": "TILE", "type": "TRACK", "cidc": false, "acts": true, "cont": true, "track": true, "device": "Tile Tracker", "distance": 1.2744385809290257}
6B309DC2EFF3 = {"manufacturerdata": "e000034dca91b4c1", "id": "6B:30:9D:C2:EF:F3", "rssi": -39, "servicedatauuid": "fe9f", "servicedata": "0000000000000000000000000000000000000000", "mfr": "Google"}
7A3711D01234 = {"manufacturerdata": "e000032cca99e4b3", "id": "7A:37:11:D0:12:34", "rssi": -64, "servicedatauuid": "fe9f", "servicedata": "0000000000000000000000000000000000000000", "mfr": "Google"}
547380AF470B = {"manufacturerdata": "e0000324ca347a92", "id": "54:73:80:AF:47:0B", "rssi": -58, "servicedatauuid": "fe9f", "servicedata": "0000000000000000000000000000000000000000", "mfr": "Google"}
64023107F553 = {"manufacturerdata": "e0000307ca59c233", "id": "64:02:31:07:F5:53", "rssi": -36, "servicedatauuid": "fe9f", "servicedata": "0000000000000000000000000000000000000000", "mfr": "Google"}
E43883E60BBD = {"name": "UWAP-KO-NE", "id": "E4:38:83:E6:0B:BD", "rssi": -63, "servicedatauuid": "252a", "servicedata": "e43883e60bbc"}
53A118894A02 = {"manufacturerdata": "e0000325ca60d0f8", "id": "53:A1:18:89:4A:02", "rssi": -69, "servicedatauuid": "fe9f", "servicedata": "0000000000000000000000000000000000000000", "mfr": "Google"}
ED790351E19A = {"name": "0802A0FF000001", "id": "ED:79:03:51:E1:9A", "rssi": -61}
64DBA0F4E0E0 = {"manufacturerdata": "534e9206000000", "name": "64:db:a0:f4:e0:e0", "id": "64:DB:A0:F4:E0:E0", "rssi": -55}
717010BC8D9E = {"manufacturerdata": "e0000306ca803da4", "id": "71:70:10:BC:8D:9E", "rssi": -66, "servicedatauuid": "fe9f", "servicedata": "0000000000000000000000000000000000000000", "mfr": "Google"}
94DEB8AF270D = {"manufacturerdata": "8d0300", "name": "ResMed 018576", "id": "94:DE:B8:AF:27:0D", "rssi": -59, "mfr": "Resmed Ltd"}
F5CE67B66A35 = {"name": "Hue bulb", "id": "F5:CE:67:B6:6A:35", "rssi": -68, "servicedatauuid": "fe0f", "servicedata": "0610dcc20a"}
725A8ECCE948 = {"manufacturerdata": "e0000326ca879aa9", "id": "72:5A:8E:CC:E9:48", "rssi": -61, "servicedatauuid": "fe9f", "servicedata": "0000000000000000000000000000000000000000", "mfr": "Google"}
64E9CF0EEF2D = {"manufacturerdata": "e0000343ca90671c", "id": "64:E9:CF:0E:EF:2D", "rssi": -60, "servicedatauuid": "fe9f", "servicedata": "026d6d666d644e50733864670000018d7aa43c6e", "mfr": "Google"}
7886B98F2DF4 = {"manufacturerdata": "e000030aca973fac", "id": "78:86:B9:8F:2D:F4", "rssi": -65, "servicedatauuid": "fe9f", "servicedata": "0000000000000000000000000000000000000000", "mfr": "Google"}
98672EDD10CC = {"manufacturerdata": "c9070002", "name": "Crusher Evo", "id": "98:67:2E:DD:10:CC", "rssi": -63, "servicedatauuid": "feed", "servicedata": "0200bbfb96c6c1b6b713", "brand": "Tile", "model": "Smart Tracker", "model_id": "TILE", "type": "TRACK", "cidc": false, "acts": true, "cont": true, "track": true, "device": "Tile Tracker", "distance": 1.6029664746240697}
5D5D5DABC1F9 = {"manufacturerdata": "e000031cca9baff3", "id": "5D:5D:5D:AB:C1:F9", "rssi": -58, "servicedatauuid": "fe9f", "servicedata": "0000000000000000000000000000000000000000", "mfr": "Google"}
F12517EAD3B2 = {"id": "F1:25:17:EA:D3:B2", "rssi": -64, "servicedatauuid": "feed", "servicedata": "02003f033c9121272d64", "brand": "Tile", "model": "Smart Tracker", "model_id": "TILE", "type": "TRACK", "cidc": false, "acts": true, "cont": true, "track": true, "device": "Tile Tracker", "distance": 1.7955643585953094}
F799BFF118D2 = {"id": "F7:99:BF:F1:18:D2", "rssi": -58, "servicedatauuid": "feed", "servicedata": "02003357d1184da0f004", "brand": "Tile", "model": "Smart Tracker", "model_id": "TILE", "type": "TRACK", "cidc": false, "acts": true, "cont": true, "track": true, "device": "Tile Tracker", "distance": 0.842868491626227}
5C443E36A2EA = {"manufacturerdata": "c9070004", "id": "5C:44:3E:36:A2:EA", "rssi": -58, "servicedatauuid": "feed", "servicedata": "0200e93c292202c40bb2", "brand": "Tile", "model": "Smart Tracker", "model_id": "TILE", "type": "TRACK", "cidc": false, "acts": true, "cont": true, "track": true, "device": "Tile Tracker", "distance": 0.842868491626227}
5702A84AD806 = {"id": "57:02:A8:4A:D8:06", "rssi": -67, "servicedatauuid": "fe9f", "servicedata": "0000000000000000000000000000000000000000"}
90E202A64F75 = {"manufacturerdata": "0d0000448d5e1610b0800100206001031d6890400178a64f75", "id": "90:E2:02:A6:4F:75", "rssi": -68, "mfr": "Texas Instruments Inc."}
44C607E752CA = {"manufacturerdata": "e000032cca99e4b3", "id": "44:C6:07:E7:52:CA", "rssi": -70, "servicedatauuid": "fe9f", "servicedata": "0000000000000000000000000000000000000000", "mfr": "Google"}
77B3D178B9ED = {"manufacturerdata": "e0000326ca879aa9", "id": "77:B3:D1:78:B9:ED", "rssi": -62, "servicedatauuid": "fe9f", "servicedata": "0000000000000000000000000000000000000000", "mfr": "Google"}
46DD50468972 = {"manufacturerdata": "e0000326ca879aa9", "id": "46:DD:50:46:89:72", "rssi": -62, "servicedatauuid": "fe9f", "servicedata": "0000000000000000000000000000000000000000", "mfr": "Google"}
5C47EA86B00C = {"manufacturerdata": "e0000343ca90671c", "id": "5C:47:EA:86:B0:0C", "rssi": -60, "servicedatauuid": "fe9f", "servicedata": "0264456c6c4f5737426750300000018d7aad642e", "mfr": "Google"}
578F2378873E = {"manufacturerdata": "e000032fca9291d0", "id": "57:8F:23:78:87:3E", "rssi": -55, "servicedatauuid": "fe9f", "servicedata": "02616974525053336b6142490000018d7aad642f", "mfr": "Google"}
4483802237A3 = {"manufacturerdata": "e000030dca8af8ff", "id": "44:83:80:22:37:A3", "rssi": -55, "servicedatauuid": "fe9f", "servicedata": "0263572d61306f504a524a630000018d7aad642a", "mfr": "Google"}
4736AE08897B = {"id": "47:36:AE:08:89:7B", "rssi": -70, "servicedatauuid": "fe9f", "servicedata": "0000000000000000000000000000000000000000"}
6F66F05DA415 = {"id": "6F:66:F0:5D:A4:15", "rssi": -61, "servicedatauuid": "fef3", "servicedata": "4a17235437554b113449abb24518f7ebc0beb916d302e6384f0e7d"}
429138A6780E = {"manufacturerdata": "e0000325ca60d0f8", "id": "42:91:38:A6:78:0E", "rssi": -67, "servicedatauuid": "fe9f", "servicedata": "0000000000000000000000000000000000000000", "mfr": "Google"}
48720FF4C068 = {"manufacturerdata": "e000030aca973fac", "id": "48:72:0F:F4:C0:68", "rssi": -66, "servicedatauuid": "fe9f", "servicedata": "0000000000000000000000000000000000000000", "mfr": "Google"}
518EE16DE2D6 = {"manufacturerdata": "e000030aca973fac", "id": "51:8E:E1:6D:E2:D6", "rssi": -57, "servicedatauuid": "fe9f", "servicedata": "0000000000000000000000000000000000000000", "mfr": "Google"}
439FE88F10E9 = {"id": "43:9F:E8:8F:10:E9", "rssi": -50, "servicedatauuid": "fef3", "servicedata": "4a172350424c511134314dc57385e9abdaed3449fd072e82a40e7d"}
6FD12EB30916 = {"manufacturerdata": "e0000308ca78bb3e", "id": "6F:D1:2E:B3:09:16", "rssi": -39, "servicedatauuid": "fe9f", "servicedata": "0000000000000000000000000000000000000000", "mfr": "Google"}
52CEA0B47E2E = {"manufacturerdata": "e000034dca91b4c1", "id": "52:CE:A0:B4:7E:2E", "rssi": -42, "servicedatauuid": "fe9f", "servicedata": "0000000000000000000000000000000000000000", "mfr": "Google"}
51F3C2E0ACC2 = {"manufacturerdata": "e0000306ca803da4", "id": "51:F3:C2:E0:AC:C2", "rssi": -63, "servicedatauuid": "fe9f", "servicedata": "0000000000000000000000000000000000000000", "mfr": "Google"}
68753BF797EE = {"manufacturerdata": "e0000307ca59c233", "id": "68:75:3B:F7:97:EE", "rssi": -35, "servicedatauuid": "fe9f", "servicedata": "0000000000000000000000000000000000000000", "mfr": "Google"}

Thanks for the better overview of the messages.

Your Tiles should be discovered as device_tracker entries, can you see any of them under homeassistant topic - device_tracker. You should then be able to assign any of these device_trackers to any person in HA for a Home/Away status with the TRACKER_TIMEOUT, or just add them with their device tracker status to a dashboard.

All other messages are of unrecognised undecoded BLE devices. If you think any of them should be added in a future version of Theengs Gateway let us know what kind of devices they are and we can see if there is any decodable information in their advertising data together.

1 Like

Its strange I dont see that topic or the tile devices in hass in mqtt its just binary_sensor, sensor, and switch. I wonder if its an issue with the add on? it doesnt seem to create any entries in the homeassistant topic. I tried switching the discovery topic and it doesnt seem to want to create it

DISCOVERY_TOPIC: homeassistant2

I could be misunderstanding how this works, I must apologize in advance if this is casused by my ignorance LOL

I just tested it here with another tracker device, deleted its device_tracker entry, turned on Discovery again in the Add-on configuration, clicked Save at the bottom of the configuration screen, which prompted for a restart - seconds later the device_tracker discovery entry was created again.

Just to make sure - you are in the latest version 1.10.0 of the Theengs Gateway Add-on, or possibly on a previous version with a pending update showing on its Info page?

It looks like its up to date. I have been trying all kids of different combos of diff settings toggling things off and on and changing entries I dunno.

image

Currently

MQTT Explorer
image

Could you set

PUBLISH_ALL: false
TRACKER_TIMEOUT: 120
DISCOVERY_TOPIC: homeassistant
SCAN_DUR: 5
TIME_BETWEEN: 5

just to be as close to the initial default and to onlu publish the recognised and decoded Tile trackers for the time being.

Your current
SCAN_DUR: 60
TIME_BETWEEN: 60
is likely creating a minute long paus in which a proper immediate discovery is not really possible.

Or you could just try to uninstall the Theengs Gateway Add-on and install it again afresh, as there might be an issue with a corrupt settings file. This will also set everything back to the default settings.

I reinstalled the add-on and set only the essentials, it didnt seem to affect the issue :frowning:

MQTT_HOST: 192.168.1.250
MQTT_USERNAME: ****
MQTT_PASSWORD: ****
MQTT_PORT: 1883
MQTT_PUB_TOPIC: home/TheengsGateway/BTtoMQTT
MQTT_SUB_TOPIC: home/+/BTtoMQTT/undecoded
MQTT_PRE_TOPIC: home/presence/TheengsGateway
PRESENCE: false
PUBLISH_ALL: false
PUBLISH_ADVDATA: false
SCAN_DUR: 5
TIME_BETWEEN: 5
TRACKER_TIMEOUT: 120
LOG_LEVEL: WARNING
DISCOVERY: true
DISCOVERY_TOPIC: homeassistant
DISCOVERY_DEVICE_NAME: TheengsGateway
DISCOVERY_FILTER: "[IBEACON]"
ADAPTER: ""
SCANNING_MODE: active
TIME_SYNC: "[]"
TIME_FORMAT: false
ENABLE_TLS: false
ENABLE_WEBSOCKET: false
IDENTITIES: ""
BINDKEYS: ""
BLE: true

I also tried installing the mosquitto add-on and setting it to localhost thinking maybe it was a network issue, but it didnt seem to effect it. Grabbing at straws at this point, i know the issue has to be staring me in the face i just cant find it.

MQTT Explorer

F0F864B748DC = {"id": "F0:F8:64:B7:48:DC", "rssi": -69, "brand": "Tile", "model": "Smart Tracker", "model_id": "TILE", "type": "TRACK", "device": "Tile Tracker"}
5C443E39F3D2 = {"id": "5C:44:3E:39:F3:D2", "rssi": -71, "brand": "Tile", "model": "Smart Tracker", "model_id": "TILE", "type": "TRACK", "device": "Tile Tracker"}
DFE5918B9A3A = {"id": "DF:E5:91:8B:9A:3A", "rssi": -72, "brand": "Tile", "model": "Smart Tracker", "model_id": "TILE", "type": "TRACK", "device": "Tile Tracker"}
C7C2FF8B3D03 = {"id": "C7:C2:FF:8B:3D:03", "rssi": -71, "brand": "Tile", "model": "Smart Tracker", "model_id": "TILE", "type": "TRACK", "device": "Tile Tracker"}

Iā€™m also puzzled as to what might be happening at your end.

Could yo9u change the LOG_LEVEL from the current WARNING to DEBUG and then share some log output, especially after turning Discovery off and on again?

Discovery = on

[15:06:41] INFO: Creating TheengsGateway configuration...
[15:06:46] INFO: IDENTITIES: 
[15:06:46] INFO: BINDKEYS: 
[15:06:46] INFO: Starting TheengsGateway...
INFO:BLEGateway:Starting BLE scan
INFO:BLEGateway:Connected to MQTT Broker!
INFO:BLEGateway:Subscribed to home/+/BTtoMQTT/undecoded
DEBUG:BLEGateway:4F:10:2D:75:56:2C:AdvertisementData(service_data={'0000fef3-0000-1000-8000-00805f9b34fb': b'J\x17#R2V5\x114\xed\xb6\xabJ\x11\xfb\xa7\x94"\xfa\x94\x98\x89|\xce:\x0e}'}, service_uuids=['0000fef3-0000-1000-8000-00805f9b34fb'], rssi=-47)
DEBUG:BLEGateway:31:C5:54:3F:09:92:AdvertisementData(manufacturer_data={6: b'\x01\t \x02K\x13\xb8\x89\n(>?4DC\x0e\xa5\xa3\xd0d\x93^\xf1\xda\x17e\xe1'}, rssi=-50)
DEBUG:BLEGateway:52:46:2C:91:FE:B8:AdvertisementData(manufacturer_data={224: b'\x03\x07\xcaY\xc23'}, service_data={'0000fe9f-0000-1000-8000-00805f9b34fb': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'}, service_uuids=['0000fe9f-0000-1000-8000-00805f9b34fb'], rssi=-44)
DEBUG:BLEGateway:4F:AA:F8:03:4A:38:AdvertisementData(manufacturer_data={224: b'\x03\r\xca\x8a\xf8\xff'}, service_data={'0000fe9f-0000-1000-8000-00805f9b34fb': b'\x02VSvkn0al9c0\x00\x00\x01\x8d{R/\xac'}, service_uuids=['0000fe9f-0000-1000-8000-00805f9b34fb'], rssi=-56)
DEBUG:BLEGateway:61:6C:4A:C9:7F:F9:AdvertisementData(manufacturer_data={224: b'\x03\x06\xca\x80=\xa4'}, service_data={'0000fe9f-0000-1000-8000-00805f9b34fb': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'}, service_uuids=['0000fe9f-0000-1000-8000-00805f9b34fb'], rssi=-66)
DEBUG:BLEGateway:F1:25:17:EA:D3:B2:AdvertisementData(service_data={'0000feed-0000-1000-8000-00805f9b34fb': b'\x02\x00C\x86\xad\xbfU=\xdd\xdb'}, service_uuids=['0000feed-0000-1000-8000-00805f9b34fb'], rssi=-63)
DEBUG:BLEGateway:Discovered Trackers: {'F1:25:17:EA:D3:B2': 1707170813}
INFO:BLEGateway:publishing device `{'id': 'F1:25:17:EA:D3:B2', 'rssi': -63, 'brand': 'Tile', 'model': 'Smart Tracker', 'model_id': 'TILE', 'type': 'TRACK', 'track': True, 'device': 'Tile Tracker'}`
DEBUG:BLEGateway:Sent `{"id": "F1:25:17:EA:D3:B2", "rssi": -63, "brand": "Tile", "model": "Smart Tracker", "model_id": "TILE", "type": "TRACK", "device": "Tile Tracker"}` to topic `home/TheengsGateway/BTtoMQTT/F12517EAD3B2`
DEBUG:BLEGateway:31:C5:54:3F:09:92:AdvertisementData(manufacturer_data={6: b'\x01\t \x02K\x13\xb8\x89\n(>?4DC\x0e\xa5\xa3\xd0d\x93^\xf1\xda\x17e\xe1'}, rssi=-50)
DEBUG:BLEGateway:64:DB:A0:F4:E0:E0:AdvertisementData(local_name='64:db:a0:f4:e0:e0', manufacturer_data={20051: b'\x92\x06\x00\x00\x00'}, service_uuids=['ffffd1fd-388d-938b-344a-939d1f6efee0'], tx_power=-6, rssi=-69)
DEBUG:BLEGateway:56:C9:E2:5A:E6:F9:AdvertisementData(service_data={'0000fef3-0000-1000-8000-00805f9b34fb': b'J\x17#Z0AN\x112+g\x8b\xf3x\x8d.\xcb\xd8\xfe\xb6y\xa1\x8e\x1e\x90`\xcf'}, service_uuids=['0000fef3-0000-1000-8000-00805f9b34fb'], rssi=-69)
DEBUG:BLEGateway:6A:4D:FE:ED:A7:B8:AdvertisementData(manufacturer_data={224: b'\x03/\xca\x92\x91\xd0'}, service_data={'0000fe9f-0000-1000-8000-00805f9b34fb': b'\x02QAzwqFlvstc\x00\x00\x01\x8d{R/\xc8'}, service_uuids=['0000fe9f-0000-1000-8000-00805f9b34fb'], rssi=-57)
DEBUG:BLEGateway:F6:E3:99:AD:71:80:AdvertisementData(local_name='Govee_H70B1_7180', manufacturer_data={34819: b'\xec\x00\x02\x01\x00'}, rssi=-48)
DEBUG:BLEGateway:72:63:C5:09:C0:C9:AdvertisementData(service_data={'0000fe2c-0000-1000-8000-00805f9b34fb': b'\x00B\x80\x18\x01\x84!\\K4d_\x7fF\xbf\xc2\xc8\x06'}, service_uuids=['0000fe2c-0000-1000-8000-00805f9b34fb'], tx_power=-8, rssi=-65)
DEBUG:BLEGateway:4C:59:D3:90:D4:F5:AdvertisementData(manufacturer_data={224: b'\x03\x08\xcax\xbb>'}, service_data={'0000fe9f-0000-1000-8000-00805f9b34fb': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'}, service_uuids=['0000fe9f-0000-1000-8000-00805f9b34fb'], rssi=-38)
DEBUG:BLEGateway:31:C5:54:3F:09:92:AdvertisementData(manufacturer_data={6: b'\x01\t \x02K\x13\xb8\x89\n(>?4DC\x0e\xa5\xa3\xd0d\x93^\xf1\xda\x17e\xe1'}, rssi=-50)
DEBUG:BLEGateway:E4:38:83:E6:0B:BD:AdvertisementData(local_name='UWAP-KO-NE', service_data={'0000252a-0000-1000-8000-00805f9b34fb': b'\xe48\x83\xe6\x0b\xbc'}, service_uuids=['00002120-0000-1000-8000-00805f9b34fb', '0000252a-0000-1000-8000-00805f9b34fb', '73b08668-52df-4626-a3e3-7638815b781a'], rssi=-66)
DEBUG:BLEGateway:51:C3:8A:F4:1F:D3:AdvertisementData(manufacturer_data={224: b'\x03M\xca\x91\xb4\xc1'}, service_data={'0000fe9f-0000-1000-8000-00805f9b34fb': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'}, service_uuids=['0000fe9f-0000-1000-8000-00805f9b34fb'], rssi=-42)
DEBUG:BLEGateway:F6:E3:99:AD:71:80:AdvertisementData(local_name='Govee_H70B1_7180', manufacturer_data={34819: b'\xec\x00\x02\x01\x00'}, rssi=-49)
DEBUG:BLEGateway:4F:10:2D:75:56:2C:AdvertisementData(service_data={'0000fef3-0000-1000-8000-00805f9b34fb': b'J\x17#R2V5\x114\xed\xb6\xabJ\x11\xfb\xa7\x94"\xfa\x94\x98\x89|\xce:\x0e}'}, service_uuids=['0000fef3-0000-1000-8000-00805f9b34fb'], rssi=-52)
DEBUG:BLEGateway:4D:B7:6A:8E:55:95:AdvertisementData(manufacturer_data={224: b'\x03%\xca`\xd0\xf8'}, service_data={'0000fe9f-0000-1000-8000-00805f9b34fb': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'}, service_uuids=['0000fe9f-0000-1000-8000-00805f9b34fb'], rssi=-65)
DEBUG:BLEGateway:61:6C:4A:C9:7F:F9:AdvertisementData(manufacturer_data={224: b'\x03\x06\xca\x80=\xa4'}, service_data={'0000fe9f-0000-1000-8000-00805f9b34fb': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'}, service_uuids=['0000fe9f-0000-1000-8000-00805f9b34fb'], rssi=-66)
DEBUG:BLEGateway:31:C5:54:3F:09:92:AdvertisementData(manufacturer_data={6: b'\x01\t \x02K\x13\xb8\x89\n(>?4DC\x0e\xa5\xa3\xd0d\x93^\xf1\xda\x17e\xe1'}, rssi=-51)
DEBUG:BLEGateway:72:63:C5:09:C0:C9:AdvertisementData(service_data={'0000fe2c-0000-1000-8000-00805f9b34fb': b'\x00B\x80\x18\x01\x84!\\K4d_\x7fF\xbf\xc2\xc8\x06'}, service_uuids=['0000fe2c-0000-1000-8000-00805f9b34fb'], tx_power=-8, rssi=-65)
DEBUG:BLEGateway:53:0A:06:BB:6F:0C:AdvertisementData(manufacturer_data={224: b'\x03C\xca\x90g\x1c'}, service_data={'0000fe9f-0000-1000-8000-00805f9b34fb': b'\x02-QrFISlRt14\x00\x00\x01\x8d{R/\xb1'}, service_uuids=['0000fe9f-0000-1000-8000-00805f9b34fb'], rssi=-61)
DEBUG:BLEGateway:41:9A:B7:08:15:B2:AdvertisementData(manufacturer_data={224: b'\x03&\xca\x87\x9a\xa9'}, service_data={'0000fe9f-0000-1000-8000-00805f9b34fb': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'}, service_uuids=['0000fe9f-0000-1000-8000-00805f9b34fb'], rssi=-64)
DEBUG:BLEGateway:6A:4D:FE:ED:A7:B8:AdvertisementData(manufacturer_data={224: b'\x03/\xca\x92\x91\xd0'}, service_data={'0000fe9f-0000-1000-8000-00805f9b34fb': b'\x02QAzwqFlvstc\x00\x00\x01\x8d{R/\xc8'}, service_uuids=['0000fe9f-0000-1000-8000-00805f9b34fb'], rssi=-53)
DEBUG:BLEGateway:31:C5:54:3F:09:92:AdvertisementData(manufacturer_data={6: b'\x01\t \x02K\x13\xb8\x89\n(>?4DC\x0e\xa5\xa3\xd0d\x93^\xf1\xda\x17e\xe1'}, rssi=-46)
DEBUG:BLEGateway:4C:59:D3:90:D4:F5:AdvertisementData(manufacturer_data={224: b'\x03\x08\xcax\xbb>'}, service_data={'0000fe9f-0000-1000-8000-00805f9b34fb': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'}, service_uuids=['0000fe9f-0000-1000-8000-00805f9b34fb'], rssi=-39)
DEBUG:BLEGateway:6F:1D:64:47:EC:B5:AdvertisementData(manufacturer_data={224: b'\x03$\xca4z\x92'}, service_data={'0000fe9f-0000-1000-8000-00805f9b34fb': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'}, service_uuids=['0000fe9f-0000-1000-8000-00805f9b34fb'], rssi=-53)
DEBUG:BLEGateway:64:DB:A0:F4:E0:E0:AdvertisementData(local_name='64:db:a0:f4:e0:e0', manufacturer_data={20051: b'\x92\x06\x00\x00\x00'}, service_uuids=['ffffd1fd-388d-938b-344a-939d1f6efee0'], tx_power=-6, rssi=-54)
DEBUG:BLEGateway:F6:E3:99:AD:71:80:AdvertisementData(local_name='Govee_H70B1_7180', manufacturer_data={34819: b'\xec\x00\x02\x01\x00'}, rssi=-45)
DEBUG:BLEGateway:72:63:C5:09:C0:C9:AdvertisementData(service_data={'0000fe2c-0000-1000-8000-00805f9b34fb': b'\x00B\x80\x18\x01\x84!\\K4d_\x7fF\xbf\xc2\xc8\x06'}, service_uuids=['0000fe2c-0000-1000-8000-00805f9b34fb'], tx_power=-8, rssi=-63)
DEBUG:BLEGateway:51:C3:8A:F4:1F:D3:AdvertisementData(manufacturer_data={224: b'\x03M\xca\x91\xb4\xc1'}, service_data={'0000fe9f-0000-1000-8000-00805f9b34fb': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'}, service_uuids=['0000fe9f-0000-1000-8000-00805f9b34fb'], rssi=-42)
DEBUG:BLEGateway:31:C5:54:3F:09:92:AdvertisementData(manufacturer_data={6: b'\x01\t \x02K\x13\xb8\x89\n(>?4DC\x0e\xa5\xa3\xd0d\x93^\xf1\xda\x17e\xe1'}, rssi=-47)
DEBUG:BLEGateway:4F:10:2D:75:56:2C:AdvertisementData(service_data={'0000fef3-0000-1000-8000-00805f9b34fb': b'J\x17#R2V5\x114\xed\xb6\xabJ\x11\xfb\xa7\x94"\xfa\x94\x98\x89|\xce:\x0e}'}, service_uuids=['0000fef3-0000-1000-8000-00805f9b34fb'], rssi=-63)
DEBUG:BLEGateway:52:46:2C:91:FE:B8:AdvertisementData(manufacturer_data={224: b'\x03\x07\xcaY\xc23'}, service_data={'0000fe9f-0000-1000-8000-00805f9b34fb': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'}, service_uuids=['0000fe9f-0000-1000-8000-00805f9b34fb'], rssi=-36)
DEBUG:BLEGateway:7C:DF:CE:79:B1:43:AdvertisementData(manufacturer_data={224: b'\x03,\xca\x99\xe4\xb3'}, service_data={'0000fe9f-0000-1000-8000-00805f9b34fb': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'}, service_uuids=['0000fe9f-0000-1000-8000-00805f9b34fb'], rssi=-66)
DEBUG:BLEGateway:F6:E3:99:AD:71:80:AdvertisementData(local_name='Govee_H70B1_7180', manufacturer_data={34819: b'\xec\x00\x02\x01\x00'}, rssi=-45)
DEBUG:BLEGateway:5C:44:3E:39:F3:D2:AdvertisementData(manufacturer_data={1993: b'\x00\x04'}, service_data={'0000feed-0000-1000-8000-00805f9b34fb': b'\x02\x00p\xdb\xa0\xbb\x10\xcaEa'}, service_uuids=['0000180a-0000-1000-8000-00805f9b34fb', '0000feed-0000-1000-8000-00805f9b34fb'], rssi=-59)
DEBUG:BLEGateway:Discovered Trackers: {'F1:25:17:EA:D3:B2': 1707170813, '5C:44:3E:39:F3:D2': 1707170813}
INFO:BLEGateway:publishing device `{'id': '5C:44:3E:39:F3:D2', 'rssi': -59, 'brand': 'Tile', 'model': 'Smart Tracker', 'model_id': 'TILE', 'type': 'TRACK', 'track': True, 'device': 'Tile Tracker'}`
DEBUG:BLEGateway:Sent `{"id": "5C:44:3E:39:F3:D2", "rssi": -59, "brand": "Tile", "model": "Smart Tracker", "model_id": "TILE", "type": "TRACK", "device": "Tile Tracker"}` to topic `home/TheengsGateway/BTtoMQTT/5C443E39F3D2`
DEBUG:BLEGateway:31:C5:54:3F:09:92:AdvertisementData(manufacturer_data={6: b'\x01\t \x02K\x13\xb8\x89\n(>?4DC\x0e\xa5\xa3\xd0d\x93^\xf1\xda\x17e\xe1'}, rssi=-47)
DEBUG:BLEGateway:41:9A:B7:08:15:B2:AdvertisementData(manufacturer_data={224: b'\x03&\xca\x87\x9a\xa9'}, service_data={'0000fe9f-0000-1000-8000-00805f9b34fb': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'}, service_uuids=['0000fe9f-0000-1000-8000-00805f9b34fb'], rssi=-62)
DEBUG:BLEGateway:6A:4D:FE:ED:A7:B8:AdvertisementData(manufacturer_data={224: b'\x03/\xca\x92\x91\xd0'}, service_data={'0000fe9f-0000-1000-8000-00805f9b34fb': b'\x02QAzwqFlvstc\x00\x00\x01\x8d{R/\xc8'}, service_uuids=['0000fe9f-0000-1000-8000-00805f9b34fb'], rssi=-61)
DEBUG:BLEGateway:DF:E5:91:8B:9A:3A:AdvertisementData(service_data={'0000feed-0000-1000-8000-00805f9b34fb': b'\x02\x00\xcd\x8dA\xef\xda\x92\xc2\x02'}, service_uuids=['0000feed-0000-1000-8000-00805f9b34fb'], rssi=-57)
DEBUG:BLEGateway:Discovered Trackers: {'F1:25:17:EA:D3:B2': 1707170813, '5C:44:3E:39:F3:D2': 1707170813, 'DF:E5:91:8B:9A:3A': 1707170813}
INFO:BLEGateway:publishing device `{'id': 'DF:E5:91:8B:9A:3A', 'rssi': -57, 'brand': 'Tile', 'model': 'Smart Tracker', 'model_id': 'TILE', 'type': 'TRACK', 'track': True, 'device': 'Tile Tracker'}`
DEBUG:BLEGateway:Sent `{"id": "DF:E5:91:8B:9A:3A", "rssi": -57, "brand": "Tile", "model": "Smart Tracker", "model_id": "TILE", "type": "TRACK", "device": "Tile Tracker"}` to topic `home/TheengsGateway/BTtoMQTT/DFE5918B9A3A`
DEBUG:BLEGateway:94:DE:B8:AF:27:0D:AdvertisementData(local_name='ResMed 018576', manufacturer_data={909: b'\x00'}, service_uuids=['00001800-0000-1000-8000-00805f9b34fb', '00001801-0000-1000-8000-00805f9b34fb', '0000180a-0000-1000-8000-00805f9b34fb', '0000fd56-0000-1000-8000-00805f9b34fb', '948652e2-d03b-11e8-a8d5-f2801f1b9fd1'], tx_power=3, rssi=-59)
DEBUG:BLEGateway:4C:59:D3:90:D4:F5:AdvertisementData(manufacturer_data={224: b'\x03\x08\xcax\xbb>'}, service_data={'0000fe9f-0000-1000-8000-00805f9b34fb': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'}, service_uuids=['0000fe9f-0000-1000-8000-00805f9b34fb'], rssi=-38)
DEBUG:BLEGateway:F5:CE:67:B6:6A:35:AdvertisementData(local_name='Hue bulb', service_data={'0000fe0f-0000-1000-8000-00805f9b34fb': b'\x06\x10\xdc\xc2\n'}, service_uuids=['0000fe0f-0000-1000-8000-00805f9b34fb'], tx_power=10, rssi=-66)
DEBUG:BLEGateway:6F:1D:64:47:EC:B5:AdvertisementData(manufacturer_data={224: b'\x03$\xca4z\x92'}, service_data={'0000fe9f-0000-1000-8000-00805f9b34fb': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'}, service_uuids=['0000fe9f-0000-1000-8000-00805f9b34fb'], rssi=-48)
DEBUG:BLEGateway:F6:E3:99:AD:71:80:AdvertisementData(local_name='Govee_H70B1_7180', manufacturer_data={34819: b'\xec\x00\x02\x01\x00'}, rssi=-47)
DEBUG:BLEGateway:56:C9:E2:5A:E6:F9:AdvertisementData(service_data={'0000fef3-0000-1000-8000-00805f9b34fb': b'J\x17#Z0AN\x112+g\x8b\xf3x\x8d.\xcb\xd8\xfe\xb6y\xa1\x8e\x1e\x90`\xcf'}, service_uuids=['0000fef3-0000-1000-8000-00805f9b34fb'], rssi=-71)
DEBUG:BLEGateway:6E:D8:11:0D:0E:FC:AdvertisementData(service_data={'0000fe50-0000-1000-8000-00805f9b34fb': b'\x0cY'}, service_uuids=['0000fe50-0000-1000-8000-00805f9b34fb'], rssi=-72)
DEBUG:BLEGateway:31:C5:54:3F:09:92:AdvertisementData(manufacturer_data={6: b'\x01\t \x02K\x13\xb8\x89\n(>?4DC\x0e\xa5\xa3\xd0d\x93^\xf1\xda\x17e\xe1'}, rssi=-44)
DEBUG:BLEGateway:51:C3:8A:F4:1F:D3:AdvertisementData(manufacturer_data={224: b'\x03M\xca\x91\xb4\xc1'}, service_data={'0000fe9f-0000-1000-8000-00805f9b34fb': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'}, service_uuids=['0000fe9f-0000-1000-8000-00805f9b34fb'], rssi=-41)

Discovery = off

[15:08:33] INFO: Creating TheengsGateway configuration...
[15:08:38] INFO: IDENTITIES: 
[15:08:38] INFO: BINDKEYS: 
[15:08:38] INFO: Starting TheengsGateway...
INFO:BLEGateway:Starting BLE scan
INFO:BLEGateway:Connected to MQTT Broker!
INFO:BLEGateway:Subscribed to home/+/BTtoMQTT/undecoded
DEBUG:BLEGateway:4D:B7:6A:8E:55:95:AdvertisementData(manufacturer_data={224: b'\x03%\xca`\xd0\xf8'}, service_data={'0000fe9f-0000-1000-8000-00805f9b34fb': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'}, service_uuids=['0000fe9f-0000-1000-8000-00805f9b34fb'], rssi=-68)
DEBUG:BLEGateway:56:C9:E2:5A:E6:F9:AdvertisementData(service_data={'0000fef3-0000-1000-8000-00805f9b34fb': b'J\x17#Z0AN\x112+g\x8b\xf3x\x8d.\xcb\xd8\xfe\xb6y\xa1\x8e\x1e\x90`\xcf'}, service_uuids=['0000fef3-0000-1000-8000-00805f9b34fb'], rssi=-67)
DEBUG:BLEGateway:6E:D8:11:0D:0E:FC:AdvertisementData(service_data={'0000fe50-0000-1000-8000-00805f9b34fb': b'\x0cY'}, service_uuids=['0000fe50-0000-1000-8000-00805f9b34fb'], rssi=-66)
DEBUG:BLEGateway:72:63:C5:09:C0:C9:AdvertisementData(service_data={'0000fe2c-0000-1000-8000-00805f9b34fb': b'\x00B\x80H\x10L!\xaa)4d^\x7fF\xf5\x1eu\xca'}, service_uuids=['0000fe2c-0000-1000-8000-00805f9b34fb'], tx_power=-8, rssi=-53)
DEBUG:BLEGateway:09:63:AB:90:45:C1:AdvertisementData(manufacturer_data={6: b'\x01\t \x02\x94\xac\x009\xc9`\xe3\x19\x10z\xa0\x81=\x1d\xe23-\xc5.\x1a\x81\x9f&'}, rssi=-44)
DEBUG:BLEGateway:51:C3:8A:F4:1F:D3:AdvertisementData(manufacturer_data={224: b'\x03M\xca\x91\xb4\xc1'}, service_data={'0000fe9f-0000-1000-8000-00805f9b34fb': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'}, service_uuids=['0000fe9f-0000-1000-8000-00805f9b34fb'], rssi=-44)
DEBUG:BLEGateway:4C:59:D3:90:D4:F5:AdvertisementData(manufacturer_data={224: b'\x03\x08\xcax\xbb>'}, service_data={'0000fe9f-0000-1000-8000-00805f9b34fb': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'}, service_uuids=['0000fe9f-0000-1000-8000-00805f9b34fb'], rssi=-39)
DEBUG:BLEGateway:64:DB:A0:F4:E0:E0:AdvertisementData(local_name='64:db:a0:f4:e0:e0', manufacturer_data={20051: b'\x92\x06\x00\x00\x00'}, service_uuids=['ffffd1fd-388d-938b-344a-939d1f6efee0'], tx_power=-6, rssi=-69)
DEBUG:BLEGateway:7C:DF:CE:79:B1:43:AdvertisementData(manufacturer_data={224: b'\x03,\xca\x99\xe4\xb3'}, service_data={'0000fe9f-0000-1000-8000-00805f9b34fb': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'}, service_uuids=['0000fe9f-0000-1000-8000-00805f9b34fb'], rssi=-68)
DEBUG:BLEGateway:72:4F:F1:EF:DC:83:AdvertisementData(manufacturer_data={224: b'\x91V\xca\x87\x9a\xa9'}, service_data={'0000fe9f-0000-1000-8000-00805f9b34fb': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'}, service_uuids=['0000fe9f-0000-1000-8000-00805f9b34fb'], rssi=-62)
DEBUG:BLEGateway:94:DE:B8:AF:27:0D:AdvertisementData(local_name='ResMed 018576', manufacturer_data={909: b'\x00'}, service_uuids=['00001800-0000-1000-8000-00805f9b34fb', '00001801-0000-1000-8000-00805f9b34fb', '0000180a-0000-1000-8000-00805f9b34fb', '0000fd56-0000-1000-8000-00805f9b34fb', '948652e2-d03b-11e8-a8d5-f2801f1b9fd1'], tx_power=3, rssi=-58)
DEBUG:BLEGateway:53:0A:06:BB:6F:0C:AdvertisementData(manufacturer_data={224: b'\x03C\xca\x90g\x1c'}, service_data={'0000fe9f-0000-1000-8000-00805f9b34fb': b'\x02-QrFISlRt14\x00\x00\x01\x8d{R/\xb1'}, service_uuids=['0000fe9f-0000-1000-8000-00805f9b34fb'], rssi=-63)
DEBUG:BLEGateway:44:89:4F:68:96:0E:AdvertisementData(manufacturer_data={224: b'\x03$\xca4z\x92'}, service_data={'0000fe9f-0000-1000-8000-00805f9b34fb': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'}, service_uuids=['0000fe9f-0000-1000-8000-00805f9b34fb'], rssi=-53)
DEBUG:BLEGateway:4F:AA:F8:03:4A:38:AdvertisementData(manufacturer_data={224: b'\x03\r\xca\x8a\xf8\xff'}, service_data={'0000fe9f-0000-1000-8000-00805f9b34fb': b'\x02VSvkn0al9c0\x00\x00\x01\x8d{R/\xac'}, service_uuids=['0000fe9f-0000-1000-8000-00805f9b34fb'], rssi=-68)
DEBUG:BLEGateway:09:63:AB:90:45:C1:AdvertisementData(manufacturer_data={6: b'\x01\t \x02\x94\xac\x009\xc9`\xe3\x19\x10z\xa0\x81=\x1d\xe23-\xc5.\x1a\x81\x9f&'}, rssi=-52)
DEBUG:BLEGateway:F6:E3:99:AD:71:80:AdvertisementData(local_name='Govee_H70B1_7180', manufacturer_data={34819: b'\xec\x00\x02\x01\x00'}, rssi=-46)
DEBUG:BLEGateway:4F:10:2D:75:56:2C:AdvertisementData(service_data={'0000fef3-0000-1000-8000-00805f9b34fb': b'J\x17#R2V5\x114\xed\xb6\xabJ\x11\xfb\xa7\x94"\xfa\x94\x98\x89|\xce:\x0e}'}, service_uuids=['0000fef3-0000-1000-8000-00805f9b34fb'], rssi=-46)
DEBUG:BLEGateway:41:D5:3F:DA:5B:5B:AdvertisementData(manufacturer_data={224: b'\x03\x07\xcaY\xc23'}, service_data={'0000fe9f-0000-1000-8000-00805f9b34fb': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'}, service_uuids=['0000fe9f-0000-1000-8000-00805f9b34fb'], rssi=-57)
DEBUG:BLEGateway:E4:38:83:E6:0B:BD:AdvertisementData(local_name='UWAP-KO-NE', service_data={'0000252a-0000-1000-8000-00805f9b34fb': b'\xe48\x83\xe6\x0b\xbc'}, service_uuids=['00002120-0000-1000-8000-00805f9b34fb', '0000252a-0000-1000-8000-00805f9b34fb', '73b08668-52df-4626-a3e3-7638815b781a'], rssi=-64)
DEBUG:BLEGateway:64:DB:A0:F4:E0:E0:AdvertisementData(local_name='64:db:a0:f4:e0:e0', manufacturer_data={20051: b'\x92\x06\x00\x00\x00'}, service_uuids=['ffffd1fd-388d-938b-344a-939d1f6efee0'], tx_power=-6, rssi=-54)
DEBUG:BLEGateway:09:63:AB:90:45:C1:AdvertisementData(manufacturer_data={6: b'\x01\t \x02\x94\xac\x009\xc9`\xe3\x19\x10z\xa0\x81=\x1d\xe23-\xc5.\x1a\x81\x9f&'}, rssi=-50)
DEBUG:BLEGateway:F6:E3:99:AD:71:80:AdvertisementData(local_name='Govee_H70B1_7180', manufacturer_data={34819: b'\xec\x00\x02\x01\x00'}, rssi=-46)
DEBUG:BLEGateway:6A:4D:FE:ED:A7:B8:AdvertisementData(manufacturer_data={224: b'\x03/\xca\x92\x91\xd0'}, service_data={'0000fe9f-0000-1000-8000-00805f9b34fb': b'\x02QAzwqFlvstc\x00\x00\x01\x8d{R/\xc8'}, service_uuids=['0000fe9f-0000-1000-8000-00805f9b34fb'], rssi=-56)
DEBUG:BLEGateway:61:6C:4A:C9:7F:F9:AdvertisementData(manufacturer_data={224: b'\x03\x06\xca\x80=\xa4'}, service_data={'0000fe9f-0000-1000-8000-00805f9b34fb': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'}, service_uuids=['0000fe9f-0000-1000-8000-00805f9b34fb'], rssi=-61)
DEBUG:BLEGateway:51:C3:8A:F4:1F:D3:AdvertisementData(manufacturer_data={224: b'\x03M\xca\x91\xb4\xc1'}, service_data={'0000fe9f-0000-1000-8000-00805f9b34fb': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'}, service_uuids=['0000fe9f-0000-1000-8000-00805f9b34fb'], rssi=-45)
DEBUG:BLEGateway:4C:59:D3:90:D4:F5:AdvertisementData(manufacturer_data={224: b'\x03\x08\xcax\xbb>'}, service_data={'0000fe9f-0000-1000-8000-00805f9b34fb': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'}, service_uuids=['0000fe9f-0000-1000-8000-00805f9b34fb'], rssi=-42)
DEBUG:BLEGateway:09:63:AB:90:45:C1:AdvertisementData(manufacturer_data={6: b'\x01\t \x02\x94\xac\x009\xc9`\xe3\x19\x10z\xa0\x81=\x1d\xe23-\xc5.\x1a\x81\x9f&'}, rssi=-51)
DEBUG:BLEGateway:7C:DF:CE:79:B1:43:AdvertisementData(manufacturer_data={224: b'\x03,\xca\x99\xe4\xb3'}, service_data={'0000fe9f-0000-1000-8000-00805f9b34fb': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'}, service_uuids=['0000fe9f-0000-1000-8000-00805f9b34fb'], rssi=-60)
DEBUG:BLEGateway:98:67:2E:DD:10:CC:AdvertisementData(local_name='Crusher Evo', manufacturer_data={1993: b'\x00\x02'}, service_data={'0000feed-0000-1000-8000-00805f9b34fb': b'\x02\x00,\xb5\x06\x08\x06z\x8b`'}, service_uuids=['0000180a-0000-1000-8000-00805f9b34fb', '0000180f-0000-1000-8000-00805f9b34fb', '0000feed-0000-1000-8000-00805f9b34fb'], rssi=-57)
DEBUG:BLEGateway:Discovered Trackers: {'98:67:2E:DD:10:CC': 1707170925}
INFO:BLEGateway:publishing device `{'name': 'Crusher Evo', 'id': '98:67:2E:DD:10:CC', 'rssi': -57, 'brand': 'Tile', 'model': 'Smart Tracker', 'model_id': 'TILE', 'type': 'TRACK', 'track': True, 'device': 'Tile Tracker'}`
DEBUG:BLEGateway:Sent `{"name": "Crusher Evo", "id": "98:67:2E:DD:10:CC", "rssi": -57, "brand": "Tile", "model": "Smart Tracker", "model_id": "TILE", "type": "TRACK", "device": "Tile Tracker"}` to topic `home/TheengsGateway/BTtoMQTT/98672EDD10CC`
DEBUG:BLEGateway:F6:E3:99:AD:71:80:AdvertisementData(local_name='Govee_H70B1_7180', manufacturer_data={34819: b'\xec\x00\x02\x01\x00'}, rssi=-46)
DEBUG:BLEGateway:4F:AA:F8:03:4A:38:AdvertisementData(manufacturer_data={224: b'\x03\r\xca\x8a\xf8\xff'}, service_data={'0000fe9f-0000-1000-8000-00805f9b34fb': b'\x02VSvkn0al9c0\x00\x00\x01\x8d{R/\xac'}, service_uuids=['0000fe9f-0000-1000-8000-00805f9b34fb'], rssi=-54)
DEBUG:BLEGateway:F5:CE:67:B6:6A:35:AdvertisementData(local_name='Hue bulb', service_data={'0000fe0f-0000-1000-8000-00805f9b34fb': b'\x06\x10\xdc\xc2\n'}, service_uuids=['0000fe0f-0000-1000-8000-00805f9b34fb'], tx_power=10, rssi=-68)
DEBUG:BLEGateway:E4:38:83:E6:0B:BD:AdvertisementData(local_name='UWAP-KO-NE', service_data={'0000252a-0000-1000-8000-00805f9b34fb': b'\xe48\x83\xe6\x0b\xbc'}, service_uuids=['00002120-0000-1000-8000-00805f9b34fb', '0000252a-0000-1000-8000-00805f9b34fb', '73b08668-52df-4626-a3e3-7638815b781a'], rssi=-65)
DEBUG:BLEGateway:4F:10:2D:75:56:2C:AdvertisementData(service_data={'0000fef3-0000-1000-8000-00805f9b34fb': b'J\x17#R2V5\x114\xed\xb6\xabJ\x11\xfb\xa7\x94"\xfa\x94\x98\x89|\xce:\x0e}'}, service_uuids=['0000fef3-0000-1000-8000-00805f9b34fb'], rssi=-52)
DEBUG:BLEGateway:41:D5:3F:DA:5B:5B:AdvertisementData(manufacturer_data={224: b'\x03\x07\xcaY\xc23'}, service_data={'0000fe9f-0000-1000-8000-00805f9b34fb': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'}, service_uuids=['0000fe9f-0000-1000-8000-00805f9b34fb'], rssi=-42)
DEBUG:BLEGateway:F6:E3:99:AD:71:80:AdvertisementData(local_name='Govee_H70B1_7180', manufacturer_data={34819: b'\xec\x00\x02\x01\x00'}, rssi=-46)
DEBUG:BLEGateway:E4:38:83:E6:0B:BD:AdvertisementData(local_name='UWAP-KO-NE', service_data={'0000252a-0000-1000-8000-00805f9b34fb': b'\xe48\x83\xe6\x0b\xbc'}, service_uuids=['00002120-0000-1000-8000-00805f9b34fb', '0000252a-0000-1000-8000-00805f9b34fb', '73b08668-52df-4626-a3e3-7638815b781a'], rssi=-67)
DEBUG:BLEGateway:64:DB:A0:F4:E0:E0:AdvertisementData(local_name='64:db:a0:f4:e0:e0', manufacturer_data={20051: b'\x92\x06\x00\x00\x00'}, service_uuids=['ffffd1fd-388d-938b-344a-939d1f6efee0'], tx_power=-6, rssi=-67)
DEBUG:BLEGateway:61:6C:4A:C9:7F:F9:AdvertisementData(manufacturer_data={224: b'\x03\x06\xca\x80=\xa4'}, service_data={'0000fe9f-0000-1000-8000-00805f9b34fb': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'}, service_uuids=['0000fe9f-0000-1000-8000-00805f9b34fb'], rssi=-66)
DEBUG:BLEGateway:6E:D8:11:0D:0E:FC:AdvertisementData(service_data={'0000fe50-0000-1000-8000-00805f9b34fb': b'\x0cY'}, service_uuids=['0000fe50-0000-1000-8000-00805f9b34fb'], rssi=-68)
DEBUG:BLEGateway:56:C9:E2:5A:E6:F9:AdvertisementData(service_data={'0000fef3-0000-1000-8000-00805f9b34fb': b'J\x17#Z0AN\x112+g\x8b\xf3x\x8d.\xcb\xd8\xfe\xb6y\xa1\x8e\x1e\x90`\xcf'}, service_uuids=['0000fef3-0000-1000-8000-00805f9b34fb'], rssi=-68)
DEBUG:BLEGateway:51:C3:8A:F4:1F:D3:AdvertisementData(manufacturer_data={224: b'\x03M\xca\x91\xb4\xc1'}, service_data={'0000fe9f-0000-1000-8000-00805f9b34fb': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'}, service_uuids=['0000fe9f-0000-1000-8000-00805f9b34fb'], rssi=-47)
DEBUG:BLEGateway:94:DE:B8:AF:27:0D:AdvertisementData(local_name='ResMed 018576', manufacturer_data={909: b'\x00'}, service_uuids=['00001800-0000-1000-8000-00805f9b34fb', '00001801-0000-1000-8000-00805f9b34fb', '0000180a-0000-1000-8000-00805f9b34fb', '0000fd56-0000-1000-8000-00805f9b34fb', '948652e2-d03b-11e8-a8d5-f2801f1b9fd1'], tx_power=3, rssi=-58)
DEBUG:BLEGateway:4C:59:D3:90:D4:F5:AdvertisementData(manufacturer_data={224: b'\x03\x08\xcax\xbb>'}, service_data={'0000fe9f-0000-1000-8000-00805f9b34fb': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'}, service_uuids=['0000fe9f-0000-1000-8000-00805f9b34fb'], rssi=-43)
DEBUG:BLEGateway:F6:E3:99:AD:71:80:AdvertisementData(local_name='Govee_H70B1_7180', manufacturer_data={34819: b'\xec\x00\x02\x01\x00'}, rssi=-48)
DEBUG:BLEGateway:E4:38:83:E6:0B:BD:AdvertisementData(local_name='UWAP-KO-NE', service_data={'0000252a-0000-1000-8000-00805f9b34fb': b'\xe48\x83\xe6\x0b\xbc'}, service_uuids=['00002120-0000-1000-8000-00805f9b34fb', '0000252a-0000-1000-8000-00805f9b34fb', '73b08668-52df-4626-a3e3-7638815b781a'], rssi=-66)
DEBUG:BLEGateway:53:0A:06:BB:6F:0C:AdvertisementData(manufacturer_data={224: b'\x03C\xca\x90g\x1c'}, service_data={'0000fe9f-0000-1000-8000-00805f9b34fb': b'\x02-QrFISlRt14\x00\x00\x01\x8d{R/\xb1'}, service_uuids=['0000fe9f-0000-1000-8000-00805f9b34fb'], rssi=-64)