Trochę zaczynam sam kombinować czy tak jest poprawnie?
local startSource = fibaro:getSourceTrigger();
if
( tonumber(fibaro:getValue(97, "power")) > 50 )
and
( tonumber(fibaro:getValue(97, "power")) < 100 )
or
startSource["type"] == "other"
)
then
fibaro:call(98, "setProperty", "ui.label1.value" , "praca");
end
else
if
( tonumber(fibaro:getValue(97, "power")) > 0 )
and
( tonumber(fibaro:getValue(97, "power")) < 50 )
or
startSource["type"] == "other"
)
then
fibaro:call(98, "setProperty", "ui.label1.value" , "postój");
end