Ive manged to use a fibaro FGS212 as a garage door push button open and close. However Im looking for a bit more input to get this working in a neater fashion.
The basics I have working are as follows:
Set up a FGS-212 with mains power, but switching a secondary power circuit.
Diagram available here: http://www.vesternet.com/resources/application-notes/apnt-124
The secondary cuircuit is the two terminals or pins that can be connected in order to mimick a push button on the door control.
I set up a device handler for the FGS-212 and set parameter 4 to value 15. This turns off the relay after 1.5 seconds and therefor mimicks a 1.5 second push of the button.
So, I can push the button and the door opens. Once open, I can push the button again and it closes. I also have this set up to connect with Amazon Echo, and I can ask Alexa to “Open Garage Door”, or “Close Garage Door”.
In reality both open and close do the same job of switching this relay. Doesn’t matter whether the door is open or closed. The relay is always in the Off state, and both of these commands will turn it on (until it turns itself off again 1.5 seconds later).
However, this is where Im struggling for ideas to make it a bit neater. Ideally I would like “Close” to only push the button if the door is in the open position. and I would like “Open”, to only push the button if the door is in the closed position.
I envisage this will require the use of magnetic contacts, and use of some logic to differentiate the commands “close” and “open” and whether to actually do anything dependent on the state of these magnetic contacts.
Any suggestions or input greatly appreciated. Hopefully this can help others looking to do the same.