You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the following code on my yeelight_light_ceiling20 to enable OTA progress effect.
Got the idea from the Makaay's bslamp2 project.
Going to leave this here if somebody wants to add it to their light or if Sebastian finds it useful then maybe this could be integrated this project by default
ota:
password: "#YOUR_OTA_KEY"
safe_mode: true
on_begin:
then:
#turn lights off
- output.turn_off: output_nightlight
- output.turn_off: output_cold
- output.turn_off: output_warm
- output.turn_off: output_red
- output.turn_off: output_green
# enable blue leds to show that OTA process has begun
- output.set_level:
id: output_blue
level: 15%
on_progress:
then:
#Show OTA progress status using green leds. Effect is a bit choppy...
#I only get 2-3 brightness changes, but that is better than nothing ;)
#Effect could probably be made smoother with a better custom lambda code?
output.set_level:
id: output_green
level: !lambda |-
// output value must be in range 0 - 1.0
return x / 100.0;
on_end:
then:
- output.turn_off: output_blue
- output.turn_on: output_green
on_error:
then:
- output.turn_off: output_green
- output.turn_on: output_red
This discussion was converted from issue #69 on July 22, 2024 08:15.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am using the following code on my yeelight_light_ceiling20 to enable OTA progress effect.
Got the idea from the Makaay's bslamp2 project.
Going to leave this here if somebody wants to add it to their light or if Sebastian finds it useful then maybe this could be integrated this project by default
Beta Was this translation helpful? Give feedback.
All reactions