Page 1 of 1

PIR/Dimmer not working anymore? Dzvents/Lua?

Posted: Wednesday 02 August 2017 21:06
by BarryT
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:

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

Re: PIR/Dimmer not working anymore? Dzvents/Lua?

Posted: Thursday 03 August 2017 9:43
by dannybloe
I think it is fixed in the latest beta.

Re: PIR/Dimmer not working anymore? Dzvents/Lua?

Posted: Thursday 03 August 2017 9:52
by JuanUil
see:
https://www.domoticz.com/forum/viewtopi ... =6&t=18668
same problems
Gizmocuz is fixing it

Jan

Re: PIR/Dimmer not working anymore? Dzvents/Lua?

Posted: Thursday 03 August 2017 9:58
by gizmocuz
Should be fixed now

Re: PIR/Dimmer not working anymore? Dzvents/Lua?

Posted: Thursday 03 August 2017 17:42
by BarryT
gizmocuz wrote:Should be fixed now
Thanks guys!

What was the fix?

*Edit, nevermind.. seen it in the forum :)