Is het probleem nou opgelost? en misschien handig om je bericht even te bewerken om de boel tussen [code] [/code] tags te zetten.bing69 schreef op woensdag 13 februari 2019 @ 08:06:
Heb meerdere scripts in Dzvents alleen deze werkt niet. Er wordt niet op tijd geschakeld. De tweede voorwaarde is waar.
Zal een denkfout maken maar waar???
Kwam er niet achter en nu zie ik het!!!! Sorry voor het lastig vallen
return {
on = {
timer = {'at 06:45'}
},
execute = function(domoticz, tijd)
local Boog= domoticz.devices('Boog')
local Rood= domoticz.devices('Rood')
local Raamboven= domoticz.devices('Raam boven')
local Raambeneden= domoticz.devices('Raam beneden')
local Bank= domoticz.devices('Bank')
local MiddenL= domoticz.devices('Midden links')
local MiddenR= domoticz.devices('Midden rechts')
local keuken= domoticz.devices('Keukenlamp')
local Dummy= domoticz.devices('Dummy_licht')
local hand= domoticz.devices('Lamp_hand')
local tvlamp= domoticz.devices('tv lamp')
-- local kerst= domoticz.devices('Kerst')
local foto1= domoticz.devices('fotospot1')
local foto2= domoticz.devices('fotospot2')
local handaan = domoticz.devices('Lampenwoonkamer')
local slaap =domoticz.devices('Slaapstand')
if (tijd.timer) and (StateIsDonker.state=='On') then
Boog.dimTo(10)
Rood.dimTo(60)
Raamboven.dimTo(44)
Raambeneden.dimTo(20)
Bank.dimTo(44)
MiddenL.dimTo(63)
MiddenR.dimTo(42)
foto1.dimTo(39)
foto2.dimTo(39)
keuken.dimTo(20)
Dummy.switchOn()
hand.switchOn()
handaan.switchOn()
-- kerst.switchOn()
end
end
}
Sowieso wordt StateIsDonker nergens dedefineerd?
Donstil: Je moet kopen wat je wilt hebben. Niet wat je nodig hebt!