- Fixed transitioning from the off to on state. Thanks to @marcel1988 for informing
me about his non-functional wake-up light script. Before this fix, the light would
stay off during the full transformation, only to turn on at the very end.
- The `on_brightness` trigger is now also called at the start of a transition.
This fixes a problem with the brightness slider illumination not following along
when you slide your finger over it.
- Suppressing a transition time for transitioning to a night light color is now
only instant when starting from a night light setting. Before this change, moving
from for example 80% brightness to 1% brightness (i.e. night light), would be
instant. Now an actual transformation is done.
* New light transformer implementation
* Fixed missing ; in the code, thanks Jos!
* Removed backward compatibility code for v1.20.x (because there were too many other changes that broke the build, and for which creating a work-around was not feasible).
* Fixed duplicate api section in the example.yaml (thanks @badbroechten\!) and updated the example to not use an underscore in the hostname.
* Prepare for release
* Updated documentation for 1.18.0 release with external components support.
* Moved example.yaml to the root dir, in line with the recommendations from the ESPHome external components guide.
* Normalized the version numbering for ESPHome references.
* Fixed the styling of the example.yaml references.
Co-authored-by: Maurice Makaay <mmakaay1@xs4all.net>
The reasoning behind this can be found in this issue:
https://github.com/mmakaay/esphome-yeelight_bs2/issues/7
When you are already using a previous version of the firmware,
then note that the following changes are necessary:
* Update to the latest version of the custom component code.
* Rename your folder `custom_components/yeelight_bs2` to
`custom_components/xiaomi_bslamp2`
* Update your yaml config by changing all occurrences of `yeelight_bs2`
into `xiaomi_bslamp2`
The links to the github repository will remain functional after
the renaming operation, so it's not required to grab a fresh clone.