Hi
Has anyone hacked Xiaomi Temp sensor with eink display?
I was wondering whether I could you them as a low energy display across the house - they look neat.
Hi
Has anyone hacked Xiaomi Temp sensor with eink display?
I was wondering whether I could you them as a low energy display across the house - they look neat.
It is already working here:
But not testet, yet. I do have the same device, but the official app (Android) is not working. How can I set the time???
I think I did see this one having been cracked recently, not sure where it was though.
Too bad. It looks pretty neat as a small display :/.
Change your country in the app to China and it will work fine.
Hi, iāve managed to get this one working from this guy h4, but my hass instance is getting stuck when i enable this module and restart hass. Why this could be happening?
Sometimes it works for some time and then it stops responsing, after one check, at least i cannot access it thought web ui. Iāve seen it reported temp and hum in the log.
post your log.
Hmm, thatās too bad. I added this custom component to my HA setup today. Hopefully it wonāt be putting my HA down. Iāll be monitoring this.
Itās a bit weird you experience such issues as this component is asynchronous and looks ok from the coding point of view (altough Iām not HA integration expert here).
Iām really glad it exists, so I can see the readings in my HA. But what I donāt like is the fact it needs a template sensors to get the values separated. Iāll take this code and Iāll try to rewrite it and make it work like the āmitemp_btā sensor (round one). Letās see
Why not post an issue on github?
How I get it work with hass.io? Any idea?
I tried to add custom_components directory under config-dir (because configuration.yaml is there), but no success.
What did you put inside custom_components?
Hi!
That lywsd02 directoryā¦ Actually HA red that directory, tried to start that python code, butā¦ There was include errors and it uses different Bluetooth library what does not exists at hassio installation. It would be better if this current mitemp_bt code would include that needed protocol (itās little bit different than LYWSDCGQ) for Xiaomi LYWSD02 BLE Sensor.
I use this clock/thermometer with ESP32 running ESPhome. This way is better for me as I can have the RaspberryPi running HASS anywhere and just the ESP must be in the Bluetooth signal range. Also the installation is pretty easy.
I would be more interested in another way of hacking this device - according to Xiaomi you can pair some devices (toothbrush) so they can display some information directly on the clock. This would be awesome to have this clock as universal 7 segment ā88:88ā display to use!
Also I would welcome the time sync - the clock is running its internal RTC but it is slowly drifting. Even I have Yeelight lights that act as bluetooth bridge (so I can see the temp reading in Mi Home app even if I am out of range or have bluetooth disabled), the communication is unidirectional - the lights donāt connect to the clock and they donāt sync the time. As I donāt like (and need) to use mi home app my clock is slowly drifting from real time. In the event of DST they donāt adjust automatically etc. That is quite a bad product design to be honestā¦
Hey @Atlantis any details on the ESPHome config you used to flash and readout the info from the clock? And the info is than displayed in Home Assistant?
Hi, I use very simple code.
Those 3 sensors appear in HASS (temp+humidity+bluetooth RSSI)
esp32_ble_tracker:
sensor:
- platform: ble_rssi
mac_address: 3F:5B:7D:71:XX:XX
name: "Clock RSSI"
- platform: xiaomi_lywsd02
mac_address: 3F:5B:7D:71:XX:XX
temperature:
name: "Clock temp"
humidity:
name: "Clock humidity"
You can use GadgetBridge on Android to set the time very nicely.
I posted details on how to do this from a Pi on a ticket in github.
Summary,
sudo hcitool lescan
,
hcitool hci0 down
then hcitool hci0 up
the interface, thengatttool -b 00:00:00:00:00:00 -I
connect
char-write-req 0x002f
the magic value from above.