20 Commits (c96b24236e3821131aa1c790d73d6356a8788ca1)

Author SHA1 Message Date
  Maurice Makaay 015866f5ab Dropped the use of exceptions. 3 years ago
  Maurice Makaay c90d9677f8 Applied ESPHome-style code styling. 3 years ago
  Maurice Makaay 197ccfe0d3 Suppress transitions for night light mode. 3 years ago
  Maurice Makaay d4f8675fa7 Fixed a few C++ build warnings. 3 years ago
  Maurice Makaay e58c4fba3d Better config checks for presets. 3 years ago
  Maurice Makaay f85ff71d43
Add support for presets (#9) 3 years ago
  Maurice Makaay cf397858ba Big change: renamed yeelight_bs2 to xiaomi_bslamp2 3 years ago
  Maurice Makaay 0ac7589484 Some changes to make the text_sensor work for logic expressions. 3 years ago
  Maurice Makaay d1d9ecea95 Added a text_sensor, which propagates the current light mode. This is one of "off", "rgb", "white" and "night". 3 years ago
  Maurice Makaay 00941c6975 Fixed some method access levels that got messy over time. 3 years ago
  Maurice Makaay 0ea3651056 pass target brightness to on_brightness handlers, instead of actual brightness, during transitions. 3 years ago
  Maurice Makaay 5e328bef8f Implemented the slider sensor, which is used to publish a slider level when the slider is touched. The example yaml files now use this sensor to update the brightness of the LEDs. 3 years ago
  Maurice Makaay b340ede5b3 Implemented the I2C messgage to event type parser. 3 years ago
  Maurice Makaay e5612e8235 What's better than one hub? Two HALs! I split up the HUB component into two separated components with the same kind of function: LightHAL and FrontPanelHAL. 3 years ago
  Maurice Makaay c161a12664 Added a light HAL to the hub component. 3 years ago
  Maurice Makaay 90fc42e141 Moved the last few light GPIO pins into the HUB comopnent. 3 years ago
  Maurice Makaay e29968d86a Introduced a HUB component + front panel IRQ handling 3 years ago
  Maurice Makaay 9edea79ff7 Fixed error when using light ID in an automation 3 years ago
  Maurice Makaay 4410d1475a Added on_brightness automation trigger to the light output. 3 years ago
  Maurice Makaay edcadc146c Moved the finished light component into its own subdirectory to keep things clean when implementing other components. 3 years ago