mirror of https://github.com/arendst/Tasmota.git
Merge pull request #12354 from s-hadinger/berry_denky_ex
Berry updated Denky example
This commit is contained in:
commit
d485a14185
|
@ -13,7 +13,7 @@ def runcolor()
|
|||
var red = tasmota.scale_uint(int(pwr), 0, 2500, 0, 255)
|
||||
var green = 255 - red
|
||||
var channels = [red, green, 0]
|
||||
tasmota.set_light({"channels":channels, "bri":64, "power":true})
|
||||
light.set({"channels":channels, "bri":64, "power":true})
|
||||
tasmota.set_timer(2000, runcolor)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue