# Pushbutton function needed

**URL:** <https://forum.ewelink.cc/t/pushbutton-function-needed/20112>\
**Category:** Ideas & Suggestion\
**Tags:** app\
**Created:** [July 28, 2023, 2:29pm UTC](https://forum.ewelink.cc/t/pushbutton-function-needed/20112 "2023-07-28T14:29:24Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![heitorbadotti2](https://avatars.discourse-cdn.com/v4/letter/h/ecb155/32.png) [@heitorbadotti2](https://forum.ewelink.cc/u/heitorbadotti2)\
**Post date:** [July 28, 2023, 2:29pm UTC](https://forum.ewelink.cc/t/pushbutton-function-needed/20112/1 "2023-07-28T14:29:24Z")

</div>

**Needed**  
It’ll be awesome if you can configure your smart module (like Mini R2 PRO) to work with a pushbutton, instead of switch…

**Actual Problem**  
If you use a pushbutton instead of normal switch, when you long press the button (1-1,5 seconds) it turns on/off instead of turning on or turning off… In short, it changes the state 2 times with 1 press.

**Solution**  
That can be reached if there’s an option like “Rest Time after Switch”, where you can set 1 sec, 2 sec… So, after the eWeLink receive the command, it’ll ignore all commands for the next 1 sec or 2 sec…

---

<div class="post-metadata">

**Author:** ![yitie](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/yitie/32/3613_2.png) [@yitie](https://forum.ewelink.cc/u/yitie)\
**Post date:** [July 31, 2023, 3:53am UTC](https://forum.ewelink.cc/t/pushbutton-function-needed/20112/2 "2023-07-31T03:53:30Z")

</div>

I’d like to loop @Daniel_Zhan from SONOFF to evaluate this request.

---

<div class="post-metadata">

**Author:** ![Daniel\_Zhan](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/daniel_zhan/32/622_2.png) [@Daniel\_Zhan](https://forum.ewelink.cc/u/Daniel_Zhan)\
**Post date:** [July 31, 2023, 5:46am UTC](https://forum.ewelink.cc/t/pushbutton-function-needed/20112/3 "2023-07-31T05:46:53Z")

</div>

The MINIR4 supports the eWeLink Remote so you can use the R5 as a push button.  
Please refer to this product.

> **[SONOFF MINI Extreme Wi-Fi Smart Switch MINIR4](https://itead.cc/product/sonoff-minir4/)**
>
> 【Super Tiny Size】Its compact size allows it to be installed in various mounting boxes, including the smallest European standard. 【External Switch Control】Easily connect to the momentary switch, doo…

> **[SONOFF SwitchMan R5 Scene Controller](https://itead.cc/product/sonoff-switchman-scene-controller-r5/)**
>
> 【Scene Control】All SONOFF devices can be controlled by setting the smart scenes when the internet connection is available. 【”eWeLink-Remote” Control】Control the device which has the eWe…

---

<div class="post-metadata">

**Author:** ![heitorbadotti2](https://avatars.discourse-cdn.com/v4/letter/h/ecb155/32.png) [@heitorbadotti2](https://forum.ewelink.cc/u/heitorbadotti2)\
**Post date:** [July 31, 2023, 12:42pm UTC](https://forum.ewelink.cc/t/pushbutton-function-needed/20112/4 "2023-07-31T12:42:45Z")

</div>

But I think you can solve the push button problem in Mini R2 PRO with a software solution… It’s not viable for who have brought Mini R2 PRO to buy a new MINIR4 only because of that…

---

<div class="post-metadata">

**Author:** ![heitorbadotti2](https://avatars.discourse-cdn.com/v4/letter/h/ecb155/32.png) [@heitorbadotti2](https://forum.ewelink.cc/u/heitorbadotti2)\
**Post date:** [August 2, 2023, 7:57pm UTC](https://forum.ewelink.cc/t/pushbutton-function-needed/20112/5 "2023-08-02T19:57:34Z")

</div>

![WhatsApp Image 2023-08-02 at 15.56.34](https://europe1.discourse-cdn.com/flex005/uploads/ewelinkforum/original/2X/6/61c41fee0f94af23b50f055002efad24453200f4.jpeg)

---

<div class="post-metadata">

**Author:** ![Daniel\_Zhan](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/daniel_zhan/32/622_2.png) [@Daniel\_Zhan](https://forum.ewelink.cc/u/Daniel_Zhan)\
**Post date:** [August 3, 2023, 6:46am UTC](https://forum.ewelink.cc/t/pushbutton-function-needed/20112/6 "2023-08-03T06:46:27Z")

</div>

There is an external switch mode option in the device setting, you can configure it as “pulse mode” which is designed for the push button. In general use, the press is less than 1 second.

Would you please share with us the scenario that needs long-press the button up to 1-1.5s, thanks

---

<div class="post-metadata">

**Author:** ![heitorbadotti2](https://avatars.discourse-cdn.com/v4/letter/h/ecb155/32.png) [@heitorbadotti2](https://forum.ewelink.cc/u/heitorbadotti2)\
**Post date:** [August 8, 2023, 1:11pm UTC](https://forum.ewelink.cc/t/pushbutton-function-needed/20112/7 "2023-08-08T13:11:47Z")

</div>

But if I configure it as pulse mode, it’ll turn off immediately after realeasing the button, I want it to keep on…

The scenario:

I’ve a control box which controls all motors from my pool, filter, heater, led and whirlpool…

They’re all controlled by Mini’s R3

I’ve to use a push button because sometimes I turn it on by app and turn it off by pressing it

If I had a normal button, it wouldn’t “sync” the press state with actual state, that’s why I used a push button, because it’ll be always depressed.

---

<div class="post-metadata">

**Author:** ![Daniel\_Zhan](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/daniel_zhan/32/622_2.png) [@Daniel\_Zhan](https://forum.ewelink.cc/u/Daniel_Zhan)\
**Post date:** [August 11, 2023, 5:57am UTC](https://forum.ewelink.cc/t/pushbutton-function-needed/20112/8 "2023-08-11T05:57:13Z")

</div>

[Please use such push button switch](https://www.aliexpress.us/item/3256805694349568.html?spm=a2g0o.productlist.main.97.4b036895ksJXHz&algo_pvid=40d850d8-5950-4f8b-97e7-aadc8987a6cc&aem_p4p_detail=202308102256164276875026808150003286557&algo_exp_id=40d850d8-5950-4f8b-97e7-aadc8987a6cc-48&pdp_npi=4%40dis%21USD%2114.98%218.99%21%21%2114.98%21%21%40210838fa16917333761314870edccc%2112000034684021755%21sea%21US%212435946976%21A&curPageLogUid=gn906Zlu7hJI&search_p4p_id=202308102256164276875026808150003286557_49)

![image](https://europe1.discourse-cdn.com/flex005/uploads/ewelinkforum/original/2X/a/a77ec5bca847629c74c6b1edc8ecef39c4264566.png)

---

<div class="post-metadata">

**Author:** ![heitorbadotti2](https://avatars.discourse-cdn.com/v4/letter/h/ecb155/32.png) [@heitorbadotti2](https://forum.ewelink.cc/u/heitorbadotti2)\
**Post date:** [April 2, 2025, 10:46pm UTC](https://forum.ewelink.cc/t/pushbutton-function-needed/20112/10 "2025-04-02T22:46:40Z")

</div>

It won’t fit in my command box… Take a look in the picture that I posted above

---

<div class="post-metadata">

**Author:** ![mattpanex](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/mattpanex/32/5330_2.png) [@mattpanex](https://forum.ewelink.cc/u/mattpanex)\
**Post date:** [April 3, 2025, 6:22am UTC](https://forum.ewelink.cc/t/pushbutton-function-needed/20112/11 "2025-04-03T06:22:21Z")

</div>

Hi Daniel, I noticed that you are from Sonoff and I have a question regarding Sonoff push button switches. My Home Automation setup is based around the Sonoff iHost, Sonoff Zigbee sensors/ etc and Google Home.

I am very happy with my setup, but the one thing that is frustrating is that you cannot initiate a Scene on Google Home with the Sonoff Push Button Switch.

Is this a Google or Sonoff issue? and is it possible for Sonoff to engage Google Home to enable this functionality?

It would help with wifi/ IR devices that are not linked to the iHost.

Thanks, Matt

---

<div class="post-metadata">

**Author:** ![eerke](https://avatars.discourse-cdn.com/v4/letter/e/eb9ed0/32.png) [@eerke](https://forum.ewelink.cc/u/eerke)\
**Post date:** [April 4, 2025, 6:04pm UTC](https://forum.ewelink.cc/t/pushbutton-function-needed/20112/12 "2025-04-04T18:04:20Z")

</div>

you could bypass eWeLink by linking Google to Node Red on the iHost. Then use Node Red to control the Sonoff device. I do it to control local devices on the iHost that appear on the iHost only because my google home devices are too old to have matter.

---

<div class="post-metadata">

**Author:** ![mattpanex](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/mattpanex/32/5330_2.png) [@mattpanex](https://forum.ewelink.cc/u/mattpanex)\
**Post date:** [April 5, 2025, 6:55am UTC](https://forum.ewelink.cc/t/pushbutton-function-needed/20112/13 "2025-04-05T06:55:15Z")

</div>

Thanks Eerke, I will investigate _“linking Google to Node Red”_ and _ **“use Node Red to control the Sonoff device”** _  
There might be a few questions if you don’t mind.

---

<div class="post-metadata">

**Author:** ![eerke](https://avatars.discourse-cdn.com/v4/letter/e/eb9ed0/32.png) [@eerke](https://forum.ewelink.cc/u/eerke)\
**Post date:** [April 5, 2025, 8:18pm UTC](https://forum.ewelink.cc/t/pushbutton-function-needed/20112/14 "2025-04-05T20:18:06Z")

</div>

No problems but it’s very simple to do. Just install Node Red docker on the iHost, the eWeLink palette and then search for Google in the palette manager. From memory the one I use has something like “hard” in the name. Pretty sure they all work the same though. Google Home connects to it and it connects to Node Red on the iHost. The one I use has a limited number of types of device. For example, I don’t think it does smoke detectors.

---

<div class="post-metadata">

**Author:** ![eerke](https://avatars.discourse-cdn.com/v4/letter/e/eb9ed0/32.png) [@eerke](https://forum.ewelink.cc/u/eerke)\
**Post date:** [April 5, 2025, 10:51pm UTC](https://forum.ewelink.cc/t/pushbutton-function-needed/20112/15 "2025-04-05T22:51:55Z")

</div>

This is the one I used to use before I figured out a better way of doing it using my own bridge.

> **[Node-RED Google Assistant Bridge](https://googlehome.hardill.me.uk/docs)**

---

<div class="post-metadata">

**Author:** ![spoustaml](https://avatars.discourse-cdn.com/v4/letter/s/a4c791/32.png) [@spoustaml](https://forum.ewelink.cc/u/spoustaml)\
**Post date:** [April 6, 2025, 5:24pm UTC](https://forum.ewelink.cc/t/pushbutton-function-needed/20112/16 "2025-04-06T17:24:03Z")

</div>

I had one minir2 and one minir4 installed for the lights, both in pulse mode. I found that the minir2 needed a longer press than the r4 and because they were controlled by a double button, I had to replace the R2. It was annoying to press the buttons at different speeds.

---

<div class="post-metadata">

**Author:** ![mattpanex](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/mattpanex/32/5330_2.png) [@mattpanex](https://forum.ewelink.cc/u/mattpanex)\
**Post date:** [April 7, 2025, 6:51am UTC](https://forum.ewelink.cc/t/pushbutton-function-needed/20112/17 "2025-04-07T06:51:18Z")

</div>

Hi there, thank you, I am planning to learn more about this as soon as we have a long weekend. It should be a reasonable challenge and it looks quite versatile.
