Implant, Closing gate by hand timer reset

Moderator: leecollings

User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Implant, Closing gate by hand timer reset

Post 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 882 times
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
PeterRozenveld
Posts: 23
Joined: Sunday 15 October 2023 18:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Implant, Closing gate by hand timer reset

Post 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
User avatar
habahabahaba
Posts: 190
Joined: Saturday 18 March 2023 14:44
Target OS: Windows
Domoticz version: 2024.4
Contact:

Re: Implant, Closing gate by hand timer reset

Post by habahabahaba »

You can use

garageswitch.switchOn().forSec(1) - it will automatically switchoff after 1 sec
PeterRozenveld
Posts: 23
Joined: Sunday 15 October 2023 18:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Implant, Closing gate by hand timer reset

Post by PeterRozenveld »

Ok Thanks !
How can gratefully thanks Walervl ? who guided me to the right answer?
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Implant, Closing gate by hand timer reset

Post by waltervl »

Your welcome, have fun!
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests