Hi,
I had a Mijia LYWSD03MMC sensor delivered a few days ago and so far my results using OMG 0.9.5 have not been very good, it seems to work for a while and then just stop being able to get readings.
Home Assistant shows that it worked for most of the last day, but around 3 hours ago it stopped getting readings (but it is still reporting seeing the beacons) - even in MQTT Explorer I can only see the Beacon reports.
I can read the sensor using the script from https://github.com/JsBergbau/MiTemperature2.git on my Pi4 without a problem, but despite a couple of restarts of my ESP32 module it has still failed to get a reading.
(The ESP32 is currently connected to the Pi4 USB and both are around 2m from the sensor).
my MQTT has home/OpenMQTTGateway/commands/MQTTtoBT/config (with retained flag set) is
{
"white-list": [
"A4:C1:38:BD:FC:24"
],
"interval": 50000,
"scanbcnct": 3,
"onlysensors": false
}
All I see on the serial is:
N: Scan begin
N: Device detected: 7B:35:F2:FB:D9:D0
N: Device detected: A4:C1:38:BD:FC:24
N: Subject: /BTtoMQTT/A4C138BDFC24
N: Received json : {"id":"A4:C1:38:BD:FC:24","name":"LYWSD03MMC","rssi":-59,"distance":1.01076,"servicedata":"30585b050124fcbd38c1a4280100"}
N: Found 2 devices, scan number 7 end deinit controller
N: Scan begin
N: Device detected: A4:C1:38:BD:FC:24
N: Subject: /BTtoMQTT/A4C138BDFC24
N: Received json : {"id":"A4:C1:38:BD:FC:24","name":"LYWSD03MMC","rssi":-59,"distance":1.01076,"servicedata":"30585b050124fcbd38c1a4280100"}
N: Device detected: 7B:35:F2:FB:D9:D0
N: Found 2 devices, scan number 8 end deinit controller
N: Subject: /SYStoMQTT
N: Received json : {"uptime":482,"version":"v0.9.5","freemem":178428,"rssi":-51,"SSID":"NetworkSSID","ip":"xxx.xxx.xxxx.xxx","mac":"24:62:AB:F3:1F:80","wifiprt":0,"lowpowermode":0,"interval":50000,"scanbcnct":3,"modules":"BTHADiscovery"}
N: Scan begin
N: Device detected: 7B:35:F2:FB:D9:D0
N: Device detected: A4:C1:38:BD:FC:24
N: Subject: /BTtoMQTT/A4C138BDFC24
N: Received json : {"id":"A4:C1:38:BD:FC:24","name":"LYWSD03MMC","rssi":-63,"distance":1.602966,"servicedata":"30585b050124fcbd38c1a4280100"}
N: Found 2 devices, scan number 9 end deinit controller
N: BLE Connect begin
N: BLE Connect end
There appears to be no delay between the BLE Connect begin / end messages - so perhaps it is not doing much.
Is there anything else I can do ?