You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

143 lines
7.3 KiB

  1. # Changelog
  2. All notable changes to this project will be documented in this file.
  3. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
  4. and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
  5. ## [2021.9.0]
  6. **Note**: This release requires ESPHome 2021.8.0 and Home Assistant 2021.8.0 or newer.
  7. ### Changed
  8. - Fixed a compilation issue with ESPHome 2021.9.0.
  9. - Added `refresh: 60s` to the `external_components` definition in `example.yaml`,
  10. to make use that the code is updated when using a non-release ref (e.g. `main`
  11. instead of `2021.9.0`).
  12. ## [2021.8.1]
  13. **Note**: This release requires ESPHome 2021.8.0 and Home Assistant 2021.8.0 or newer.
  14. ### Changed
  15. - Fixed transitioning from the off to on state. Thanks to @marcel1988 for informing
  16. me about his non-functional wake-up light script. Before this fix, the light would
  17. stay off during the full transformation, only to turn on at the very end.
  18. - The `on_brightness` trigger is now also called at the start of a transition.
  19. This fixes a problem with the brightness slider illumination not following along
  20. when you slide your finger over it.
  21. - Suppressing a transition time for transitioning to a night light color is now
  22. only instant when starting from a night light setting. Before this change, moving
  23. from for example 80% brightness to 1% brightness (i.e. night light), would be
  24. instant. Now an actual transformation is done.
  25. ## [2021.8.0]
  26. **Note**: This release requires ESPHome 2021.8.0 and Home Assistant 2021.8.0 or newer.
  27. ### Added
  28. - Preset identifiers (`group` and `preset`) for the `preset.activate` action are now
  29. validated at compile time. This prevents us from building a firmware with incorrect
  30. preset identifiers. Before this change, using an invalid preset name would only
  31. result in a warning message in the device log, which is only moderately useful.
  32. ### Changed
  33. - The code has been made compatible with the new color mode support in Home Assistant
  34. and ESPHome.
  35. - The `example.yaml` has been updated to not make use of underscores in hostnames.
  36. Using an underscore in the name yields a warning during the firmware compilation,
  37. because hostnames should only contain letters, numbers and dashes "-".
  38. - My project will follow the Home Assistant / ESPHome versioning scheme from now on
  39. (<year>.<month>.<patch>), because the ESPHome project adopted this versioning
  40. scheme too.
  41. ## [1.1.0]
  42. **Note**: This release requires ESPHome v1.20.0 or newer.
  43. ### Added
  44. - It is now possible to address the LEDs in the front panel of the device individually.
  45. There are 12 LEDs in total: the power button, the color button and 10 LEDs that are
  46. used by the original firmware to represent the lamp's current brightness setting.
  47. The `output` component for the lamp was updated to provide access to the individual LEDs.
  48. Check out the [documentation guide](https://github.com/mmakaay/esphome-xiaomi_bslamp2/blob/main/doc/configuration.md)
  49. for details on how to control these.
  50. Thanks to @Stewie3112 for the feature request that triggered this development!
  51. - Implemented support for visual feedback during the OTA update process in the
  52. `example.yaml` file: the light becomes blue during flahsing, the brightness slider
  53. represents the progress, on failure the light flashes red and on success the
  54. light flashes green.
  55. ### Changed
  56. - Made it possible to use lambdas with the `preset.activate` automation. This makes it
  57. possible to link the action to an api service, which exposes the preset functionality
  58. to Home Assistant. The `example.yaml` has been updated with an example for this.
  59. - Fixed a rounding error in the slider sensor component. When using custom "range from" / "range to"
  60. settings, the maximum value could exceed the "range to" value due to rounding errors.
  61. Thanks to Jos for the heads up!
  62. - Made the codebase compatible with ESPHome v1.19.0
  63. ([PR #1657: Introduce new async-def coroutine syntax](https://github.com/esphome/esphome/pull/1657))
  64. Thanks to @Kaibob2 for giving me a heads up that my code was not compiling anymore!
  65. ## [1.0.0]
  66. **Note**: This release requires ESPHome v1.18.0 or newer.
  67. ### Changed
  68. - The GitHub repository structure has been updated, in order to make it compatible with
  69. the new `external_components` feature of ESPHome v1.18.0. From now on, the code from this
  70. repository no longer has to be downloaded and installed manually. The `example.yaml` has
  71. been updated for using this new feature.
  72. Fixes [issue #16](https://github.com/mmakaay/esphome-xiaomi_bslamp2/issues/16).
  73. - A fix has been implemented to prevent the lamp from being disconnected from Home Assistant
  74. a lot (resulting in the lamp becoming unavailable). ESPHome v1.18.0 or newer is required
  75. for making this fix work.
  76. Fixes [issue #19](https://github.com/mmakaay/esphome-xiaomi_bslamp2/issues/19).
  77. - Transitions are now fully suppressed when in night light mode. In that mode, LED output
  78. levels are too low for producing good looking transitions.
  79. Fixes [issue #10](https://github.com/mmakaay/esphome-xiaomi_bslamp2/issues/10).
  80. - The `example.yaml` now uses my own arduino-esp32 unicore build.
  81. - Formatted the codebase using the ESPHome clang rules.
  82. - The flashing guide got a big update, with detailed pictures for every step on the way.
  83. ### Added
  84. - New documentation section: Technical details (it's all about the internals)
  85. ### Removed
  86. - The known issue documentation page has been removed, now we have a fix for the disconnect
  87. issues in ESPHome v1.18.0.
  88. ## [1.0.0-RC1]
  89. ### Changed
  90. - The documentation has been restructured.
  91. ### Added
  92. - Support for disco mode-style light updates through the `light.disco_on` and `light.disco_off` actions.
  93. The `light.disco_on` action can be used to configure the lamp state without delay, without publishing
  94. the update and without saving the state. The `light.disco_off` action will restore the lamp to its
  95. last save state, so from before the `light.disco_on` updates.
  96. - Support for configuring light presets, making it possible to mimic the lamp's original firmware
  97. feature to switch light color using the color button.
  98. This fixes [issue #8](https://github.com/mmakaay/esphome-xiaomi_bslamp2/issues/8).
  99. - New documentation section: Configuration guide (explaining all the YAML file configuration options).
  100. ## [1.0-beta]
  101. ### Changed
  102. - The component was renamed from "yeelight_bs2" to "xiaomi_bslamp2".
  103. The reasoning behind this can be found in [issue #7](https://github.com/mmakaay/esphome-xiaomi_bslamp2/issues/7).
  104. ### Added
  105. - Component "text_sensor" that publishes changes in the light mode ("off", "night", "rgb", "white"),
  106. This fixes [issue #6](https://github.com/mmakaay/esphome-xiaomi_bslamp2/issues/6).
  107. - Documentation improvements and a better example.yaml.
  108. ## [1.0-alpha]
  109. ### Added
  110. - All light modes for the lamp have been implemented:
  111. - RGB light (colored light, based on red/green/blue and brightness)
  112. - White light (based on color temperature and brightness)
  113. - Night light (either RGB- or White light, but highly dimmed; enabled by setting brightness to 1%)
  114. - Component "light" for controlling the LEDs.
  115. - Component "binary_sensor" that act as touch/release sensors for power button, color button and slider.
  116. - Component "sensor" that report the level at which the slider was touched.
  117. - Component "output" for controlling the front panel light and its level indicator.