I want to conditionally Switch off the printer and screens poweer supply when the below Computers are not responding at pings anymore and if the 'Printer en Schermen Lock' isn't switched on (Virtual switch). If the three conditions are true, the switch 'Printer en Schermen (Son85)' should be gone off.
Code: Select all
commandArray = {}
if (otherdevices['Computer_1'] == 'Off' and otherdevices['Computer_2'] == 'Off' and otherdevices['Printer en Schermen Lock'] == 'Off') then
commandArray['Printer en Schermen (Son85)'] = 'Off AFTER 5'
end
return commandArrayPlease Help
Rob
"Team Kleijn"