(10.03.2021, 19:48)Rune Wrote:Event based script:(10.03.2021, 19:43)tomnord Wrote: So minimum neds to be 10? Scaled so that 0=10 or that 10=10 but the output does not go lower?
Sent fra min SM-G980F via Tapatalk
Yes, minimum 10%. 0 - 10 is equal 10, 11 = 11 %.
value = event.getvalue()
if value < 10 then
output = 10
else
output = value
end
grp.write('1/1/1', output)
Sent fra min SM-G980F via Tapatalk
Event based script with the 0-100 value GA as trigger.
Sent fra min SM-G980F via Tapatalk
At output you can use "grp.update('1/1/1', output) also...
Sent fra min SM-G980F via Tapatalk