Recently I bought a LED lamp with Bluetooth integration and a remote control to dim or change the light color. To use this lamp with my smartphone I had to download and install the Tmall Genie App, a lovely application only in Chinese. The Tuya SmartLife app recognized the light too, but couldn’t connect.
Did somebody discover how to integrate such lights into home assistant? It would be great to use the dimming function directly in home assistant instead of a new app that only works in Chinese language.
Hello, for what it’s worth, I have sniffed bluetooth LE packet using Wireshark and a nrf52840 MDK USB dongle.
I can provide two pcap captures the first to switch on light from an android phone and the other one to switch on light from the remote (I have the same as @jumble5, I have a ceiling fan too)
I don’t know anything about bluetooth LE protocol stack, but I hope this could help to analyze what’s is going on here.
I had sniffed Bluetooth LE data from the ceiling fan remote to switch on and switch off the light.
Frame length is 58 bytes, the company id is 0x09f9 (Hangzhou Yaguan Technology Co. LTD), but the payload changes every time (even when order is the same as the previous one)
I don’t know how to go further, because I don’t have any Bluetooth LE knowledge.
@psychodelian : thanks a lot, it is useful, but can you tell more about the genie-bt-mesh-stack project ? I can’t found any build instructions, all related docs seems to be in Chinese. I looked at the project content, there is some shell scripts that requires an “aos” command that I don’t have on my gcc/make build stack.
Is there a way to build a CLI tool from this repo to pair through BLE to the fan, and switch light on / off or control the fan ?