Hi there,
i added a shelly Plus 2PM for tracking some temps and operations. So i use the input for operations-feedback from technical equipment.
If i change the config of the input from switch to button, the input disappear in HA. Can me help some one?
I hope what you are saying is still valid for gen2 devices (suppose the device from your screenshot is gen1)
Otherwise, you have right. The detached mode in Shelly settings should be enough. Not sure why OP wants to use button mode in Shelly integration. I don’t know this integration at all. It was my assumption (based on HA docs) that it changes shelly settings together with the change of way how to listen to events.
My screenshot was from a Shelly Plus 2PM (Gen 2). The settings are slightly different, but you can set the same behavior on the Gen 1 devices.
I’ve tested in the following devices and it worked fine in all of those:
The question is, do you really need to “see” input states for any reason?
In general, it’s enough to define an mqtt switch, allowing reading and setting the Shelly state.
I can imagine you can want to track input press time or the number of input clicks…
If so, I then define MQTT binary sensor for input topic of your Shelly 2PM
BTW inputs are read-only.
For a case, here is my config (no input monitoring though)