Shelly PlugS: change what the small button does

Hi. I am using a Shelly Plug S with Home Assistant. I am able to see the sensor readings and to turn the plug on and off from HA.

But there is a small physical button on the plug, that allows manually switching the plug on location. I would like to

  1. Prevent this manual operation and only let the plug be handled from HA.
  2. Trigger a custom HA automation when the button is pressed.

How can I go about this? I tried Googling for answers but the terms “shelly” and “button” always divert me into stuff about a different device, the Shelly Button. I need answers for the small button on the Shelly PlugS device.

Thanks for any help!

Maybe this isn’t possible? Anyone have any hints?

I think that is not possible. At least I haven’t read any information about it. In the Shelly Admin Inferface I did not find an option to change this button. Also, this button is not available in HA Shelly integration.

Flash the device with ESPHome and change the YAML file:

Used to be you needed to open up the plug to flash the firmware:

Haven’t tried it, but there seems to be a way to flash the ESPHome firmware over the air though a workaraound:

Thanks for your answer, I really appreciate it.

I am not familiar with ESPHome, but I am familiar with Tasmota, and I would know how to do it with Tasmota (which, BTW, is very easy to flash over the air on these Shelly’s)… but I actually started using HA so I could avoid the hand-made stuff and the flashing… especially on this system that I am setting up for other (less technical) people to use.

So should I conclude from your suggestion that this is not possible with the default Shelly firmware and HA? What a pity.

Thanks

@Bieniu does your Shellies Discovery integration make it possible to achieve what I requested in this thread?

Shelly firmware (so also Shellies Discovery) does not provide this option for Plug S, Plus Plug S has the ability to detach the button.

2 Likes

I think I might do it with Tasmota, since Tasmota is really easy to install in Shellies. And for the future, I will look for the Plus version.

Thanks for your reply!

1 Like

Hi! Are there any updates on this?
Shelly Plus 2PM, working in detached mode, exposes the button input in HA which is quite useful. I’m using it for turning on/off smart LED strips.

I’m trying to use button of my Shelly Plus Plug S to do something else besides turning on/off power but without luck so far. Up to this point I’ve been quite happy with Shelly devices so I would like to avoid flashing.