ESPhone physical button

Hi Guys, I’ve been dipping into ESphome and setup a couple of temp sensors, without any issues. I’d also like to setup a d1 mini as a physical button to control some scenes within HA.

I’m struggling to do this. I have a small button shield for the d1 mini connected to D3. I thought it was as simple as using the GPIO Switch but I cannot get it working.

I’d appreciate if someone could point me in the right direction.

You are sensing a binary input. Not switching an output. Yes you’re using a switch but that’s not the terminology used. This is what you want, it supports single and double click:

There’s even multi click.

Another example of multi-click:

1 Like