rs485-lpc/lpc_lux_fade.lua

7 lines
178 B
Lua
Raw Permalink Normal View History

local tv = get_trigger_variable(1)
if tv == nil or tv.integer == nil then return end
local f = tv.integer / 10
if f < 0.1 then f = 0.1 end
if f > 10 then f = 10 end
lux_fade = f