mmakaay / esphome-xiaomi_bslamp2

ESPHome integration for the Xiaomi Mijia Bedside Lamp v2.
Other
219 stars 51 forks source link

Clean up code by using a custom light transformer #49

Closed mmakaay closed 3 years ago

mmakaay commented 3 years ago

The current implementation of my component had to jump some hoops to get access to the light transformer, in order to implement the color transformations correctly for the Bedside Lamp 2.

There's now a change in the ESPHome light code that might let me implement things a lot cleaner. See: https://github.com/esphome/esphome/pull/2124

So, let's see if I can remove some hoops!

mmakaay commented 3 years ago

The implementation has been completed. The new code is available in version 2021.8.0. It indeed made things a lot cleaner!