Closed sad-goldfish closed 1 year ago
These devices are detected in active mode and by OpenMQTTGateway devices.
This is correct, the Govee H5075, as well as other Govee devices, requires active scanning to be recognised and decoded by Theengs Decoder, with either Theengs Gateway or OpenMQTTGateway.
This is due to the fact that the device name needs to be taken into account to differentiate between different Govee device models and their decoders. The device name is only being broadcast with active scanning.
This can also be seen if Advertisement and Advanced Data is set to true for OpenMQTTGateway or -padv PUBLISH_ADVDATA
to 1 for Theengs Gateway. The resulting published MQTT JSON then includes "acts":true
to indicate that this devide decoder requires active scanning.
Ah, that explains it @DigiH. Although, I do have -padv 1
but I don't see any JSON message mentioning "acts":true
. The only message I see under home/TheengsGateway
(mosquitto_sub -v -t home/TheengsGateway/\#
) is home/TheengsGateway/LWT online
.
EDIT: I do see it when active scanning is turned on.
@sad-goldfish You should see it once you have active scanning enabled on Theengs Gateway, along with the decoded keys for your H5075.
-s {active,passive}
Describe the bug Gateway in Passive Mode on Raspberry Pi 4 (NixOS/Raspberry Pi 4 Kernel) does not detect Govee H5075 (or publish any other bluetooth/related messages). These devices are detected in active mode and by OpenMQTTGateway devices.
To Reproduce
python -u -m TheengsGateway -H 127.0.0.1 -pa 1 -s passive -ll DEBUG -padv 1 -sd 60 -Df H5072/75
This outputs:However
bluetoothd
, running asbluetoothd -f /etc/bluetooth/main.conf -d src/adv_monitor.c --experimental
outputs something like the following every scan:The Govee devices with MACs starting
A4:C1:38
are listed in thebluetoothd
log but not theTheengsGateway
log and no bluetooth messages are published. This is the case whether or not-Df
is used. MACs of different devices are ommited. Expected behavior Govee Sensor data published to the MQTT server.Additional context
hciconfig -a
:sudo hciconfig hci0 lestates