07.05.2020, 07:42
(02.05.2020, 22:05)Erwin van der Zwart Wrote: Hi,Yeah thanks!
Change line 80-83:
Into:Code:ValueOutput = grp.getvalue(AddressOutput)
if ValueOutput == false then
grp.write(AddressOutput, true)
end
This way the output is not checked on stateCode:grp.write(AddressOutput, true)
BR,
Erwin
Now I want to implement a Nightmode that changes the output after nightshift.
I change the outeput address to "AddressOutputDay" and added these new ones "AddressOutputNight", "NighMode" and "AddressOutputStatus".
Then changed the script like this
Code:
StairCaseTime = ValueExternalTime * Multiply_Seconds * SetFac
ValueOutput = grp.getvalue(AddressOutputStatus)
if ValueOutput == false and NightMode == false then
grp.write(AddressOutputDay, true)
else
grp.write(AddressOutputNight, true)
end
What is the right way of doing this?