1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-30 22:53:59 +00:00

Provide the lights current color to the addressable_lambda_effect. (#646)

* Provide the lights current color to the addressable_lambda_effect.

* Fix formatting

* More formatting

* Change the call signature of the lambda

* lint


Co-authored-by: olg <x>
This commit is contained in:
rnauber
2019-06-19 11:33:14 +02:00
committed by Otto Winter
parent 27453afa4e
commit 5cd7f23065
4 changed files with 12 additions and 5 deletions

View File

@@ -893,6 +893,11 @@ light:
name: Flicker Effect With Custom Values
update_interval: 16ms
intensity: 5%
- addressable_lambda:
name: "Test For Custom Lambda Effect"
lambda: |-
it[0] = current_color;
- automation:
name: Custom Effect
sequence: