I'm running 3.8155 on Win10.
I have just started to do my first attempts with dzVents instead of normal lua to see if it's easier.
I started with a very simple script
Code: Select all
return {
active = true,
on = {
timer = {'Every minute'}
},
execute = function(domoticz)
if (domoticz.devices('1st floor Bathroom Fan').lastUpdate.minutesAgo > 70) then
domoticz.devices('1st floor Bathroom Fan').switchOff()
end
end
}Code: Select all
2017-08-04 09:29:15.707 Error: dzVents: Error: module '�-1st floor Bathroom Fan' not found:
no field package.preload['�-1st floor Bathroom Fan']
no file 'C:\Program Files (x86)\Domoticz\lua\�-1st floor Bathroom Fan.lua'
no file 'C:\Program Files (x86)\Domoticz\lua\�-1st floor Bathroom Fan\init.lua'
no file 'C:\Program Files (x86)\Domoticz\�-1st floor Bathroom Fan.lua'
no file 'C:\Program Files (x86)\Domoticz\�-1st floor Bathroom Fan\init.lua'
no file '.\�-1st floor Bathroom Fan.lua'
no file 'C:\Program Files (x86)\Domoticz\scripts\dzVents\�-1st floor Bathroom Fan.lua'
no file 'C:\Program Files (x86)\Domoticz\scripts\dzVents\runtime/�-1st floor Bathroom Fan.lua'
no file 'C:\Program Files (x86)\Domoticz\scripts\dzVents\runtime/device-adapters/�-1st floor Bathroom Fan.lua'
no file 'C:\Program Files (x86)\Domoticz\scripts\dzVents\dzVents/�-1st floor Bathroom Fan.lua'
no file 'C:\Program Files (x86)\Domoticz\scripts\dzVents\scripts/�-1st floor Bathroom Fan.lua'
no file 'C:\Program Files (x86)\Domoticz\scripts\dzVents\generated_scripts/�-1st floor Bathroom Fan.lua'
no file 'C:\Program Files (x86)\Domoticz\scripts\dzVents\data/�-1st floor Bathroom Fan.lua'
no file 'C:\Program Files (x86)\Domoticz\scripts\dzVents\�-1st floor Bathroom Fan.lua'
no file 'C:\Program Files (x86)\Domoticz\scripts\dzVents\�-1st floor Bathroom Fan.lua'
no file 'C:\Program Files (x86)\Domoticz\�-1st floor Bathroom Fan.dll'
no file 'C:\Program Files (x86)\Domoticz\loadall.dll'
no file '.\�-1st floor Bathroom Fan.dll'Code: Select all
2017-08-04 09:30:00.312 dzVents: Info: ------ Start internal script: 1st floor Bathroom Fan:, trigger: every minute
2017-08-04 09:30:00.339 dzVents: Info: ------ Finished 1st floor Bathroom Fan