Maurice Makaay
7a147072a8
Fixed transitioning behavior when a new transitioning is started to the same end color of a transitioning that is already in progress (can be triggered from Home Assistant by double clicking on a target color in the RGB color circle).
3 years ago
Maurice Makaay
fe3fd69052
Update FLASHING.md
Added missing GPIO0 reference to the soldering section.
3 years ago
Maurice Makaay
956660c2bf
Added some extra information to the FLASHING.md document.
3 years ago
Maurice Makaay
e9af4a9614
Fixed the transitioning flow in cass where an already active transition gets interrupted by a new transition with a different end point.
3 years ago
Maurice Makaay
1325ef62cf
Make use of smoothed progress for color transitionings.
3 years ago
Maurice Makaay
abe8137b42
Transitioning to off works too now. Transitioning to on needs some more work (it is now instant, but that won't be hard to implement correctly).
3 years ago
Maurice Makaay
bb91890389
New light transition code implemented and it works beautifully! Transitions between RGB colors and RGB to and from white light now look smooth. Some more code cleanup in the next step, but already loving how this is coming together now.
3 years ago
Maurice Makaay
e8ae6a9765
Some code cleanup as preparation for the next bits of development for transition handling.
3 years ago
Maurice Makaay
4032b14bcb
Added development warning to README.md.
3 years ago
Maurice Makaay
47bb1469fc
Finally going somewhere with the transitioning implementation. The basic framework for the latest ideas is up and running. Now implement the actual transitioning logic.
3 years ago
Maurice Makaay
92d935b0b4
Experimental class structure to give my LightOutput class access to some protected data in the LightState class.
3 years ago
Maurice Makaay
d330894fdc
Started my own derived LightState class to get more control over the light's transitioning behavior.
3 years ago
Maurice Makaay
9fa8aa42ff
Switch to night light mode at low brightness in both white light and RGB mode.
3 years ago
Maurice Makaay
a56cbcc6d2
Transition time to 750ms in the example.yaml. This makes the color transitions look a bit smoother than when using 1s.
3 years ago
Maurice Makaay
a860ea9921
Removed old stale RGB code.
3 years ago
Maurice Makaay
0b373526da
Code cleanup on RGB code + RGB #FFFFFF implementation added.
3 years ago
Maurice Makaay
9c102d7c81
Moved reverse engineer docs to own repo.
3 years ago
Maurice Makaay
49404b083d
Ledc PWM frequency issues are fixed
Setting the PWM channels and frequencies is now done fully from
the device yaml configuration file, so I removed the frequency
code from the CPP code.
3 years ago
Maurice Makaay
dec3454f37
Updated the example.yaml file with some documentation and a fix for PWM frequency issues that I ran into.
3 years ago
Maurice Makaay
efee6efba4
Merge pull request #1 from tabacha/flashing-doc
Flashing doc
3 years ago
Sven Anders
bd7980a7fb
Add first flashing doc
3 years ago
Sven Anders
2b88067c2d
Add some example wifi config to example.yml
3 years ago
Maurice Makaay
b960a5bee9
New implementation for RGB colors. It needs a round of code cleanup, but it is functional as-is.
3 years ago
Maurice Makaay
173cc2f5c2
Merge branch 'main' of https://github.com/mmakaay/esphome-yeelight_bs1 into main
3 years ago
Maurice Makaay
c6c97c0569
Added RGB color space table.
3 years ago
Maurice Makaay
d217129f15
Ahhh, finished all RGB measurements, back to coding!
3 years ago
Maurice Makaay
9425aec8d8
Merge branch 'main' of https://github.com/mmakaay/esphome-yeelight_bs2 into main
3 years ago
Maurice Makaay
1e18bff3db
New RGB measurements added. Implementation is gonna be a blast, since there's little pattern to be discovered from the measurements. More measurements are required. Either to find a good pattern to define functions for translating RGB+brightness to the output levels, or to define mapping tables that aid in the translation.
3 years ago
Maurice Makaay
cd64ab7cbe
Added night light setting, when choosing white light (#FFFFFF) at the lowest brightness level.
3 years ago
Maurice Makaay
8d4684e5b3
Removed no longer needed reverse engineering files.
3 years ago
Maurice Makaay
04d6ab5300
Merge branch 'main' of https://github.com/mmakaay/esphome-yeelight_bs2 into main
3 years ago
Maurice Makaay
78ad678ecc
Added reverse engineering measurements.
3 years ago
Maurice Makaay
347fa66cc3
Don't use 10kHz, but 9765Hz for white channel PWM.
3 years ago
Maurice Makaay
81283c8a58
Implemented the new white light color space. Transitions still need work.
3 years ago
Maurice Makaay
53f2d9c0df
Restored working of blue colors in RGB mode.
3 years ago
Maurice Makaay
d1f3c92fd7
Added a white light implementation. Firmware is now in a broken state, but transitioning to something good here.
3 years ago
Maurice Makaay
99863b4c91
Added a copy of the original firmware (for inspection and for easy recovery of the original firmware).
3 years ago
Maurice Makaay
9e01d28bf6
Fixed RGB white color mix scaling.
3 years ago
Maurice Makaay
e5acb8f0c9
Added reverse engineering data.
3 years ago
Maurice Makaay
6206adfb16
Update yaml config.
3 years ago
Maurice Makaay
a99e2f1145
Work-around for the turn off transition issue.
The work-around has been implemented in a forward-compatible manner,
so the light transition when turning off the light should still
work once the upstream code gets fixed.
3 years ago
Maurice Makaay
c24fa132a0
Improved documentation.
3 years ago
Maurice Makaay
a9d1ccdac6
Added some documentation.
3 years ago
Maurice Makaay
6c5c6ca5cc
Moved to a proper ESPHome component structure.
3 years ago
Maurice Makaay
f5d0fd757f
Bump version.
3 years ago
Maurice Makaay
a4baf100f3
Moving to PlatformIO lib format.
3 years ago
Maurice Makaay
9be95a90cb
Transforming to PlatformIO lib format.
3 years ago
mmakaay
311c3e70ae
Merged changes.
3 years ago
mmakaay
802b6c214c
Made the light off transition fix optional.
3 years ago
Maurice Makaay
d7c642b9b9
Two fixes for light transitioning issues
* When turning off the light at a low brightness setting,
the LEDs were seen flashing brightly for a short time.
* Transitioning did not work when turning of the light. The light would be
kept at normal brightness during the transition and then it turned of
at once. This looks like an issue in the ESPHome transitioning code,
because that is the code that is responsible for the transitioning.
When turning on the light, it works correctly. I see both the state
and the brightness go up. But when turning off the light, I see that
the state decreases gradually to zero, but the brightness is kept
as-is. I wrote a fix for this behavior in my code and will investigate
if the ESPHome code can be fixed for this.
3 years ago