Merge pull request #12354 from s-hadinger/berry_denky_ex

Berry updated Denky example
This commit is contained in:
s-hadinger 2021-06-12 14:08:42 +02:00 committed by GitHub
commit d485a14185
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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