# One-button garage - help

**URL:** https://discourse.nodered.org/t/one-button-garage-help/66354
**Category:** General
**Created:** [12 August 2022 10:36 UTC](https://discourse.nodered.org/t/one-button-garage-help/66354 "2022-08-12T10:36:23Z")
**Posts on this page:** 7
**Page:** 2

<div class="post-metadata">

### Author: ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)
#### Post date: [19 August 2022 15:08 UTC](https://discourse.nodered.org/t/one-button-garage-help/66354/21 "2022-08-19T15:08:11Z")

</div>

When you press the remote control (and it opens or closes the door) does it send a signal to Node-RED?

---

<div class="post-metadata">

### Author: ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)
#### Post date: [19 August 2022 19:50 UTC](https://discourse.nodered.org/t/one-button-garage-help/66354/22 "2022-08-19T19:50:39Z")

</div>

> [@dynamicdave](#):
>
> If I click the button again - it will reverse its direction of travel and start closing.

Hey David,  
Sorry for the delay! Was on vacation...  
My garage door is a bit different. Sometimes it will reverse its direction of travel (like yours), but sometimes it will continue in the same direction of travel.  
Haven't figured out yet the logic of my garage door opener...  
If I will ever be retired, I will be sitting a hole day on a chair in my garage to figure this out 😉

---

<div class="post-metadata">

### Author: ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)
#### Post date: [20 August 2022 05:36 UTC](https://discourse.nodered.org/t/one-button-garage-help/66354/23 "2022-08-20T05:36:02Z")

</div>

Well if you like, **as I am retired,** I'll sit a whole day on a chair and see if my door ever continues in the same direction of travel after being stopped. i.e. I'll check to see if my door sometimes works like yours.

---

<div class="post-metadata">

### Author: ![zlucio](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zlucio/32/66104_2.png) [@zlucio](https://discourse.nodered.org/u/zlucio)
#### Post date: [20 August 2022 11:36 UTC](https://discourse.nodered.org/t/one-button-garage-help/66354/24 "2022-08-20T11:36:31Z")

</div>

I can only read the status of the garage with the sensor which I also use for the alarm system. closed contact = closed garage.  
I'm thinking of using an algorithm that checks the status of the sensor by pressing the button.

If closed, a button action opens.  
If open in any position, a button button action must be repeated if after 10 seconds the sensor does not read the garage closed status. If after a further time from the command the sensor does not read the closed state, it signals an anomaly.

---

<div class="post-metadata">

### Author: ![zlucio](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zlucio/32/66104_2.png) [@zlucio](https://discourse.nodered.org/u/zlucio)
#### Post date: [27 August 2022 15:08 UTC](https://discourse.nodered.org/t/one-button-garage-help/66354/25 "2022-08-27T15:08:47Z")

</div>

Hi, David  
I thought about this flow, where:

- Click is the input, Command button from NodeRed
- Sensor Bot is the sensor of Wemos Tasmota [stat / TESTLED / POWER1 = OFF led off = closed contact = closed garage]
- Output for Wemos Tasmota motor card command [stat / TESTLED / POWER2 = ON led lit 2 sec - at motor command]

The garage takes 20 seconds to complete the race.  
Operation involves opening if the garage is completely closed (Sensor Bot = 0)  
From another state the garage must close, so with a click + another click if the Sensor Bot does not read 0 within 20 seconds.  
Do you think it is feasible?  
If yes can you give me a hand?  
Thank you

 ![flow](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/8/78bf768ca88b209117dfd9bb47ec6597bd12c252.png)

---

<div class="post-metadata">

### Author: ![ebolisa](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ebolisa/32/89203_2.png) [@ebolisa](https://discourse.nodered.org/u/ebolisa)
#### Post date: [16 September 2022 07:41 UTC](https://discourse.nodered.org/t/one-button-garage-help/66354/26 "2022-09-16T07:41:55Z")

</div>

I installed one of these for my neighbor who's not too technical and it's been working well.

> **[Amazon.com: SwitchBot Smart Switch Button Pusher - No Wiring, Wireless App or...](https://www.amazon.com/SwitchBot-switch-button-controlled-compatible/dp/B07B7NXV4R)**
>
> Buy SwitchBot Smart Switch Button Pusher - No Wiring, Wireless App or Timer Control, Add SwitchBot Hub Mini to Make it Compatible with Alexa, Google Home, IFTTT (white): Everything Else - Amazon.com ✓ FREE DELIVERY possible on eligible purchases

If I may suggest to use an IR LED to detect the closing of the door versus micro/magnetic switches. The breaking of the light would stop the door from closing just in case a pet/kid/ball/etc. gets in the way.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [15 November 2022 07:41 UTC](https://discourse.nodered.org/t/one-button-garage-help/66354/27 "2022-11-15T07:41:57Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.

[Previous page](https://discourse.nodered.org/t/one-button-garage-help/66354.md?page=1)
