I have already searched the wiki but found nothing to help me
I am getting errors from line 21 that I don't understand.
Code: Select all
--Schuifdeur open 'Kerstboom' aan na zonsondergang (dzVentz)
--Schuifdeur open at nighttime and ('Keuken led verlichting') is Off then ('kerstboom') switch on and
--After 10 min switch Off
--If ('Keuken led verlichting')is On, do nothing (i am at home)
--'Schuifdeur'is an Kerui D026
return {
active = true,
on = {
devices = {
['Schuifdeur'] = { 'at nighttime' }
}
},
execute = function(domoticz, door)
local light = domoticz.devices('Kerstboom')
local light = domoticz.devices('Keuken led verlichting')
if (door.state == 'Alarm') and
domoticz.devices(Booglamp.state=='On') then
do 'nothing'
elseif domoticz.devices('Keuken led verlichting'state ==Off) then
domoticz.devices('Kerstboom').switchOn()
light.switchOff().afterMin(10)
end
end
}
Code: Select all
2020-10-29 15:35:36.287 ...Vents/generated_scripts/Schuifdeur open licht aan test.lua:21: unexpected symbol near ''nothing''
2020-10-29 15:35:37.264 Error: dzVents: Error: (3.0.2) error loading module 'Schuifdeur open licht aan test' from file '/home/pi/domoticz/scripts/dzVents/generated_scripts/Schuifdeur open licht aan test.lua':Pi 3 B with
Raspian Buster and
Domoticz 2020,2