I have 2 novoferm garage doors with novoport motors and controllers. Remote control 1 press door open. 2e press door stop. 3 press door close again. Or 1 press door open. 2 press door close.
In the controller I placed a fibaro relay and the door will open and close but I like it with a puls. E.g. 1 puls of 5 sec. or so. But 5 sec after fibaro really switched. Than after timer second puls to stop the door. This to make a kind of parcel delivery door. Door opens 75cm or so.
Is there someone to help me with programming this kind of functionality?
To generate a five seconds pulse to your relay use something like this:
(Item Garage is a virtual switch on your graphical user interface, QR1 is the switch connected to the relay):
rule "Garagedoor"
when
Item Garage received command
then
QR1.sendCommand(ON)
Thread::sleep(5000) // 5000 ms = 5 sec
QR1.sendCommand(OFF)
end
In this case try using a virtual switch, for example:
in your items file:
Switch Garage_5_Seconds
In your sitemap file:
Switch item=Garage_5_Seconds
in your rules file:
rule "Garagedoor"
when
Item Switch Garage_5_Seconds received command
then
Garagedeur_rechts.sendCommand(ON)
Thread::sleep(5000) // 5000 ms = 5 sec
Garagedeur_rechts.sendCommand(OFF)
end
Then hit the button for Switch Garage_5_Seconds and your fibaro should be energized for five seconds.
You may put that code into the demo.rules or create a new file, called for example garagedoor.rules.
If the code doesn’t work take a look into your openhab.log to see what happened (which switch is on, which switch is off, …).
Also note that I edited the code, don’t use the one from your email, use the edited one from this forum!
The edit was in the sitemap: Switch item=Garage_5_Seconds, not Switch item=Switch Garage_5_Seconds
It seems you are doing what I plan to do which is build a Fibaro relay to a novoferm garage door. Did you have a Novoport controller (it seems that way) and if so can you share how you connected the fibaro module. A photo or a connection schema would really help me.