This is a simple Home Assistant integration for Neewer TL40 Bluetooth light. It supports turning the light on/off, brightness, and color temperature control.
I highly suggest ot use HACS for installing this. See Custom repository documentation from HACS for more info.
You can run the local unit tests with:
python3 -m unittest tests/test_neewer_bt.py
This is very much proof of concept right now since I haven't done integrations before for home assistant. Right now it connects to the light everytime before changing the state so it's a bit slow.
The current version works well for my use case. The light supports additional controls and this integration now includes brightness and color temperature in CCT mode.
NeewerLite-Python has been a huge help to figure out how the light works.