Ultraworg / LEDVANCE_BLE_MESH

19 stars 3 forks source link

Support for RGB and Color Temp control of SYLVANIA/LEDVANCE Smart+ Bluetooth bulb #7

Open mj-sakellaropoulos opened 3 days ago

mj-sakellaropoulos commented 3 days ago

Hello, Nice work here.

I can confirm it's working for ON/OFF and Brightness control.

What would be required to support control of HSL and Color Temperature elements? Quick look in ble mesh feature list suggests support for Light HSL and Temp client.

Is this support planned ? If not, I have a working IDF environment for this repo and I could try to add it.

Maybe it's better to try and implement this directly in ESPHome (https://github.com/esphome/feature-requests/issues/1671) ?

Bluscream commented 1 day ago

Wait how did you get this working?

Ultraworg commented 1 day ago

I unfortunately do not have bulbs with HSL or color temperature so I cannot give a definitive answer. But if you find these in the nrf mesh app and if you can also control them from there, then it should be possible to also integrate those models.

mj-sakellaropoulos commented 1 day ago

I unfortunately do not have bulbs with HSL or color temperature so I cannot give a definitive answer. But if you find these in the nrf mesh app and if you can also control them from there, then it should be possible to also integrate those models.

Yeah I have possibly found the relevant sections in the ESP-IDP BLE Mesh Stack https://github.com/espressif/esp-idf/blob/a0f798cfc4bbd624aab52b2c194d219e242d80c1/components/bt/esp_ble_mesh/api/models/include/esp_ble_mesh_lighting_model_api.h#L64 , i will give it a shot at some point.

I have also done a small experiement with the provisioner example to have the ESP as the mesh provisioner, but for now it is failing to provision the Bulbs (Error reason 0x04 Confirmation Failed).