I have a couple extra spots in existing electrical boxes where i removed some 3-way swtiches. I have a couple extra MartinJerry swtiches and dimmers. What i would like to do is be able to use the ESPHome long_press and multi_click functionality of a swtich that isn’t actually wired to a light to control other things in my home. Example, long press the down button of the dimmer switch to turn off lights in the basement. Short press down to do another task, etc. I can handle the background automation in HA and NodeRed, I just cant bridge the gap on how to set up a switch in ESPHome that isn’t connected to a GPIO pin.
Example code - https://i.imgur.com/MwoSpUx.png
I can see the buttons as binary sensors for now, but I would like to use the built in automations of long press and multi click.
Thoughts?