PIR/Dimmer not working anymore? Dzvents/Lua?
Posted: Wednesday 02 August 2017 21:06
Several days ago, i used a beta update that has the lua scripting and stuff changed to dZvents (as seen in the log), but after today not all of my lua scripts are working anymore and it seems the update (of today) has gone back to lua instead of dZvents?
Everything was working since today!
My (motion) lights are not working anymore!
Help.. Its getting dark in here!
This is one of my lua:
Everything was working since today!
My (motion) lights are not working anymore!
Help.. Its getting dark in here!
This is one of my lua:
Code: Select all
commandArray = {}
if (devicechanged['Beweging Hal Beneden'] == 'On' and otherdevices['Het is Donker'] == 'On' and otherdevices['Lamp Hal Beneden'] == 'Off') then
commandArray ['Lamp Hal Beneden']= 'Set Level 80'
print('Beweging in de hal, lampen aan want het is donker!')
end
if (devicechanged['Beweging Hal Beneden'] == 'On' and otherdevices['Het is Donker'] == 'Off' and otherdevices['Lamp Hal Beneden'] == 'Off') then
commandArray['Lamp Hal Beneden']='Off'
print('Beweging in de hal, maar lampen blijven uit want het is nog licht!')
end
if (devicechanged['Beweging Hal Beneden'] == 'Off') then
commandArray['Lamp Hal Beneden'] = 'Off'
print('Beweging in de hal UIT signaal ontvangen')
end
return commandArray