Access Keys:
Skip to content (Access Key - 0)
 

Fail Safe

Mike Tirpak

On Jun 06, 2012 21:59

I just setup a new controller for my dad so that he can open/close and monitor his garage door. I'm using a webcontrol board to do that. He asked me if there was away to setup a fail safe button for the garage door opener. His fear is that he is sometimes in a hurry and might accidentally hit the button then close the app before seeing if the door is open or not.

I think I can do it by programming the board to look for variable through PLC. Considering I have other commands already running more important tasks, I would like to keep the code as short as possible.

Right now I have am using a macro to send an on/off command to the board which is plugged into a relay that is wired to the physical opener. Is there a way to program openremote so that he would have to hit the button twice to actually send the command macro?

Thanks,
Mike

 
Labels:
Participants: Juha Lindfors , Mike Tirpak , Marcus Redeker
  1. Jun 07, 2012

    Marcus Redeker says:

    What board are you using? Something like this: http://www.futurlec.com/Web_Contr...

    What board are you using? Something like this: http://www.futurlec.com/Web_Control_Board.shtml
    Why are you using a macro and not the regular switch with "on", "off" and "status" command?

    1. Jun 07, 2012

      Mike Tirpak says:

      I'm using a CAI WebControl board and I'm using a macro because the garage door o...

      I'm using a CAI WebControl board and I'm using a macro because the garage door opener just has one button. I had to wire in a relay switch to the output on the board. The board does not support momentary output commands. So I have to use a macro to send an on command then off command otherwise the opener would just stay on. I think I can set it up with PLC on the board, but I was hoping there was a way to do it with openremote.

      1. Jun 08, 2012

        Marcus Redeker says:

        You can try and use the rules engine for this. Create a virtual switch which tri...

        You can try and use the rules engine for this.
        Create a virtual switch which triggers a rule when turned on.
        That same rule would increment a counter and turn the switch off again (so it can immediatly be turned on again)
        When the switch is hit again the same rule is trigered. When the counter reaches "2" execute your actual on and off for the relay and reset the counter to "0".
        You will not need the macro anymore since the rule will perform the "on" and "off".

        This is just an idea but you will have to try it out.
        There some rule related posts in the forum already and the testsuite of the controller also has a few rules.

        1. Jun 08, 2012

          Mike Tirpak says:

          That is exactly what I am looking to do. I'm very new at openremote and I have ...

          That is exactly what I am looking to do. I'm very new at openremote and I have no idea where to start on this. I have never used rules or even know how to program them. Could you point me in the right direction?

          Thank you,
          Mike

  2. Jun 11, 2012

    Juha Lindfors says:

    Hmm I like this use case though, I guess it's basically double-tap that fits int...

    Hmm I like this use case though, I guess it's basically double-tap that fits into what Eric worked on with different button press options.

    We should come up with something here.

    1. Jun 11, 2012

      Mike Tirpak says:

      I think I have the general idea, but I'm not a programmer so it is going to take...

      I think I have the general idea, but I'm not a programmer so it is going to take me a while to figure this one out. The only thing that is really hanging me up is the counter function.

      The idea is solid. Sometimes buttons get pressed by accident. Certainly on my dad's iphone with its small screen. He tries to be careful buy small phone, big fingers don't mix.

      1. Jun 12, 2012

        Juha Lindfors says:

        Ok, sorry won't have much time to spend on this right now (it's a good idea) but...

        Ok, sorry won't have much time to spend on this right now (it's a good idea) but if there are specific questions may be able to provide information to help.

        1. Jun 12, 2012

          Mike Tirpak says:

          How can I implement a counter in a rule?

          How can I implement a counter in a rule?

Adaptavist Theme Builder Powered by Atlassian Confluence