Maurice Makaay
d65b33e14d
Added navigation links.
3 years ago
Maurice Makaay
4efd438fe0
Added navigation links.
3 years ago
Maurice Makaay
0423fee8dc
Added navigation links.
3 years ago
Maurice Makaay
ed67f359c9
Added navigation.
3 years ago
Maurice Makaay
7e2b0d556d
Added navigation links.
3 years ago
Maurice Makaay
1aa9f551f0
Fixed achored links.
3 years ago
Maurice Makaay
99becd829e
Added text_sensor docs.
3 years ago
Maurice Makaay
ba2f6c1c00
Added front panel illumination output docs.
3 years ago
Maurice Makaay
87bd1e3dd7
Added sensor (slider level touch events) docs.
3 years ago
Maurice Makaay
c470ec171a
Small configuration updates in line with new documentation.
3 years ago
Maurice Makaay
bac01ba676
Added binary_sensor documentation.
3 years ago
Maurice Makaay
6f1cc06d30
Update configuration.md
3 years ago
Maurice Makaay
ed4c10c2ad
Tiny fix in component vs. components.
3 years ago
Maurice Makaay
444aa54f5d
Update configuration.md
3 years ago
Maurice Makaay
042121b63f
Documented light component options.
3 years ago
Maurice Makaay
e04db2d4d1
Add "platform xiaomi_bslamp2" to config guide.
3 years ago
Maurice Makaay
fff529c7a2
Started working on the configuration guide.
3 years ago
Maurice Makaay
da204ed363
Create sponsoring.md
3 years ago
Maurice Makaay
43a249ba8d
Added sponsoring link.
3 years ago
Maurice Makaay
702f24751a
Terminology consistency and preparing documentation for stable release.
3 years ago
Maurice Makaay
f85ff71d43
Add support for presets ( #9 )
Implemented support for presets.
3 years ago
Maurice Makaay
8147c5b66b
Update FUNDING.yml
3 years ago
Maurice Makaay
ee15f27c45
Update FUNDING.yml
3 years ago
Maurice Makaay
1c8b2b1494
Update FUNDING.yml
3 years ago
Maurice Makaay
feca8b39ec
Added a funding link for the repository
Some people wanted to buy me beer, coffee and the like as a thank you for the work that I put into the ESPHome firmware code for the Xiaomi Mijia Bedside Lamp 2. Well, I don't say no to a beer, cheers! ;-)
3 years ago
Maurice Makaay
cf397858ba
Big change: renamed yeelight_bs2 to xiaomi_bslamp2
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.
3 years ago
Maurice Makaay
8ad6aafc3d
Made the bug report template less application-y.
3 years ago
Maurice Makaay
a9f5b86165
Merge branch 'main' of https://github.com/mmakaay/esphome-yeelight_bs2 into main
3 years ago
Maurice Makaay
3c3a52b720
Used an if: condition in the example, instead of a lambda, for turning on and off the front panel illumination, based on night mode yes/no.
3 years ago
Maurice Makaay
e97a530c03
Update issue templates
3 years ago
Maurice Makaay
1b61078f42
Create CODE_OF_CONDUCT.md
3 years ago
Maurice Makaay
0ac7589484
Some changes to make the text_sensor work for logic expressions.
For example: `id(${id_light_mode}).state == "night"`
This is used in the example.yaml to turn off the illumination
of the front panel, when the lamp goes into night light mode.
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
5183dc6645
A few improvements to the example.yaml, to make it easier to read and use.
3 years ago
Maurice Makaay
402f57f040
Fixed front panel brightness indicator scale + random color button.
The indicator was not halfway when using 0.5 as the output value.
Also added an example of how the output could be wrapped in a
light component, to expose it to Home Assistant as a monochromatic
light. Not that useful probably, but a nice display of ESPHome's
flexibility.
The example.yaml now also updates the brightness indicator when
the light brightness changes. When switching the device to night
light mode, it will turn off the front panel illumation completely.
And last but not least: the example configuration now shows a way
to set the device to a random color when touching the color button.
3 years ago
Maurice Makaay
539bb8eb3a
Merge pull request #5 from mhostyn/patch-1
Update example.yaml
3 years ago
Maarten Hostyn
0c416f96a3
Update example.yaml
Add 'id: ${name}' to light section of the example configuration
3 years ago
Maurice Makaay
8062272df9
Merge pull request #4 from mmakaay/add-license-1
Create LICENSE.md
3 years ago
Maurice Makaay
dee0ea2e27
Create LICENSE.md
3 years ago
Maurice Makaay
cbe7b075a9
Updated project status in the README.md.
3 years ago
Maurice Makaay
00941c6975
Fixed some method access levels that got messy over time.
3 years ago
Maurice Makaay
57e74e9e6e
Implemented a float output, that is used to control the front panel light.
3 years ago
Maurice Makaay
0ea3651056
pass target brightness to on_brightness handlers, instead of actual brightness, during transitions.
3 years ago
Maurice Makaay
5fddc6733c
The slider sensor now has a configurable value range.
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
ae3cade531
Updated examples with the new binary_sensor feature.
3 years ago
Maurice Makaay
ec8205d32e
Added a binary sensor component, which can be used to handle touch/release events for the parts of the front panel (power button, color button and slider). Note that for the slider, this binary_sensor only detects the touch events. This cannot be used for detecting the actual slider level that was touch. For that purpose, a separate sensor will be created.
3 years ago
Maurice Makaay
6e2bb7b0c0
Front panel event code cleaned up and added an on event callback option, so I can let events propagate.
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