esphome-yeelight-ceiling-light icon indicating copy to clipboard operation
esphome-yeelight-ceiling-light copied to clipboard

Add Yeelight Rotating Dimmer (YLKG07YL, YLKG08YL) support

Open syssi opened this issue 3 years ago • 6 comments

  • https://github.com/custom-components/ble_monitor/issues/289
  • https://github.com/custom-components/ble_monitor/pull/351
  • https://github.com/dentra/esphome-components/tree/master/components/miot

syssi avatar May 17 '21 18:05 syssi

do you have plan to resolve the ble reboot issue?

gudszent avatar Dec 21 '21 08:12 gudszent

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 avatar Dec 21 '21 09:12 syssi

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.

syssi avatar Dec 21 '21 09:12 syssi

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 avatar Dec 21 '21 14:12 gudszent

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 :'(

gudszent avatar Dec 21 '21 15:12 gudszent

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

syssi avatar Dec 21 '21 15:12 syssi