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.

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