Just sharing a utility to update time on all of my Xiaomi LYWSD02 clocks

Hi,

I noticed my Xiaomi LYWSD02 clocks (I have quite a few in my house used as temperature sensors for my Home Assistant setup) were drifting off the time a lot and I needed something to keep them on track.

So I developed this little utility GitHub - vijaygill/set-bluetooth-clocks: Python based utility to discover and update times of bluetooth clocks - uses bluetooth-clocks.

Just sharing so that someone might find it useful.

I run it in docker containers on all my raspberry pi’s.

Thanks

2 Likes

does this work with ESP32 ESPhome Bluetooth Proxy?

No, it sends communicates directly with the devices. The underlying library (GitHub - koenvervloesem/bluetooth-clocks: Set and get the time on various Bluetooth Low Energy clocks) is not not linked with HA (and thus bluetooth proxy).

Hi @vijaygill

I have one of these devices integrated into HA but the temperature and humidity sensors do not show up via the Xiaomi BLE integration; only SignalStrength.

What did you do to get the sensors working?