Page 2 of 2

Re: Implant, Closing gate by hand timer reset

Posted: Tuesday 09 July 2024 17:34
by waltervl
Again on page 14 of your Zwave Fibaro implant manual it is described how you can set the implant contact to act as a pulse ON-OFF device
Gateopener.PNG
Gateopener.PNG (90.22 KiB) Viewed 1442 times

Re: Implant, Closing gate by hand timer reset

Posted: Tuesday 16 July 2024 6:43
by PeterRozenveld

Code: Select all

return {
	on = {
		timer = {'every 2 minutes'},
	},
	execute = function(domoticz)
	    local garage = domoticz.devices('Sect.door-pos(1)') --  door information relay K6 Phoenix
            local garageswitch = domoticz.devices('Sect.Novoferm-f(2)') --  the control of the Novoferm4 on contact f
            local kitchen = domoticz.devices('Kitchendoor_Contact') -- If this door is open, sectional-door may remain open
 
           -- garage sensor check to see if the door is open  
           if garage.state == 'Open' and kitchen.state == 'Closed' and garage.lastUpdate.minutesAgo > 8 then
               domoticz.notify('','garage door open for more than 8 min!')
               garageswitch.switchOn() -- give a switch On to the Novoferm4 f contact
               garageswitch.switchOff().afterSec(1)
               domoticz.log('door closed', domoticz.LOG_INFO)
           end
        
end
}
ItÅ› WORKING !!

THANKS ! https://www.domoticz.com/forum/memberli ... le&u=23529

Re: Implant, Closing gate by hand timer reset

Posted: Tuesday 16 July 2024 14:24
by habahabahaba
You can use

garageswitch.switchOn().forSec(1) - it will automatically switchoff after 1 sec

Re: Implant, Closing gate by hand timer reset

Posted: Saturday 20 July 2024 13:44
by PeterRozenveld
Ok Thanks !
How can gratefully thanks Walervl ? who guided me to the right answer?

Re: Implant, Closing gate by hand timer reset

Posted: Saturday 20 July 2024 19:33
by waltervl
Your welcome, have fun!