syssi / esphome-yeelight-ceiling-light

ESPHome custom firmware for some Yeelight Ceiling Lights
Apache License 2.0
141 stars 22 forks source link

Add Yeelight Rotating Dimmer (YLKG07YL, YLKG08YL) support #13

Open syssi opened 3 years ago

syssi commented 3 years ago
gudszent commented 2 years ago

do you have plan to resolve the ble reboot issue?

syssi commented 2 years ago

I've replaced the single core ESP32 of one of my lamps with a dual core ESP32. At dual core ESP32 the ble_monitor is stable. As soon BLE and WiFi runs on the same core the application crashs. I don't know how to fix it. It's above my skills. ;-)

syssi commented 2 years ago

Oh there is some progress missing here. I've extended the ble_monitor of ESPHome to support the remote controls. You can find an example configuration here: https://github.com/syssi/esphome-yeelight-ceiling-light/blob/main/yeerc_ylyk01yl.yaml

The problem: If you enable the BLE stack on an single core ESP32 (used in all Yeelight devices) the application crashs on boot-up. To be able to listen to some BLE traffic you have to replace the ESP32 with a dual core version.

gudszent commented 2 years ago

Thank you, as I see the config, that not direct control the light, its send it to home assistant, than i guess the rule from HA control the esp. Am I right?

gudszent commented 2 years ago

As I see, the only chance to turn off and on the wifi and ble :-) https://github.com/espressif/arduino-esp32/issues/1756 So I think, this is the dead end :'(

syssi commented 2 years ago

The Yaml is just an example. You could wire/cosume the events also in ESPHome directly.