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…
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…
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
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.
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.
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.
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.
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.
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.