I am using the docker installation, thus i have the env var set to false.
With that configuration, every bluetooth device that comes in range will be taken and send to my mqtt server. Those it does not decode anything just get an empty topic without any content
What is the expected behavoir as per design? How would the gateway distingues between devices to be send and those to be ignored - especially since BLE sensors will not require any pairing?
The gateway will analyze the advertisements received through Theengs Decoder. When using the publish_all to 0, If the advertisement matches a recognized device, it will publish it to the broker.
If not, it will not.
Not sure why you are not seeing the state for the SwitchBot thing, it should also have the properties you see in MQTT Explorer. I donât use auto-discovery, so not exactly sure where the problem might lie.
Do you have MQQT set up fully in OH, possibly using other MQTT devices?
For writing the commands the WRITE command of OpenMQTTGateway is required, as described at
Not having a SwitchBot myself, but other MQTT controlled devices I (admittedly manually defined) I would use a String Type Thing with the commandTopic
home/OpenMQTTGateway/commands/MQTTtoBT/config
the gateway name being the one of your gateway - and the string(s)
Theengs installed as a service stops receiving all measurements after a while
I am using theengsgateway successfully since a few months on a raspberry pi 0 w and on a raspberry pi 3.
I recently started using a raspberty pi 4 with a metal case for passive cooling. I therefore installed an external Bluetooth adapter connected with a cable and disabled internal Bluetooth.
In this case it happens that Theengsgateway do not receive sensor data any more. I have to restart the Bluetooth service or reboot the raspberry.
I disabled WiFi, if this matter.
Strangely, when theengsgateway does not receive data, if I issue sudo hcitool lescan I see the Mac address of sensors.
Hello!
Could you add support for YEELIGHT remote control YLYK01YL ?
It use MiBeacon symilar to LYWSD03MMC.
Here is info about it:
encryption_key
(string, 24 or 32 characters)(Optional) This option is used for sensors broadcasting encrypted advertisements. The encryption key should be 32 characters (= 16 bytes) for most devices (LYWSD03MMC, CGD1, MCCGQ02HL, and MHO-C401 (original firmware only). Only Yeelight YLYK01YL (all types), YLYB01YL-BHFRC, YLKG07YL and YLKG08YL require a 24 character (= 12 bytes) long key. The case of the characters does not matter. The keys below are an example, you need your own key(s)! Information on how to get your key(s) can be found [here](https://custom-components.github.io/ble_monitor/faq#my-sensors-ble-advertisements-are-encrypted-how-can-i-get-the-key). Default value: Empty
Weâve only recently introduced decoding of encrypted broadcast data in the current development branch of Theengs Gateway and the related Theengs Decoder library, so weâd be interested to include further encrypted devices like your YEELIGHT remote YLYK01YL.
It would be very helpful to get some undecrypted and undecoded sample data from you with the current development branch version.
If you are unable to download and build the development branch yourself it might be best waiting for the next official release to work on including the YLYK01YL.
For most convenient tracking of this new device could you open a new discussion issue about it in the Theengs Gateway GitHub Discussions?
I am sorry if this is not the right place for my question. But I donât know where I can put this.
I installad Theengs on Docker with docker-compose. It seems that my bluetooth stick is recognized. But nothing is found. I have a Switchbot Bot I will control on home assistant.
On MQTT Explorer I donât see anything. And in HASS there is not device at all.
What is my problem? Where can I start to debug it?
I tried it with other ways to. I have a Pi4 around and installed Theengs on it, startet the scan with python. Still no Switchbot devices is shown. I also tried the USB dongle direktly on my Home Assistant. It is recongnized but still doesnât find my Switchbot.
Are you sure the adapter is hci0, as set in the Theengs Gateway configuration? And how do you give the container access to the Bluetooth adapter? Whatâs your docker-compose.yml look like for Theengs Gateway?
On top of numerous new devices supported, this version brings exciting features like the support of encrypted advertisements, the capability to resolve private BLE addresses, HA MQTT discovery tuning, and TLS/Websockets support. Letâs dive in!
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 !