Shelly Detached Switch

I also use the switch entity. But I use it to actually open the gate.

But I would like to be able to know when the gate is open and for that I configured one of its outputs (called Gate Open Indicator) to do so. And I would like to connect that output to Shelly’s input SW which I have detached so that it is no longer correlated to the actual relay.

In order for this to work I need HA to be able to read Shelly SW input. According to @pickerin, the native Shelly integration should create one. But, for some strange reason, it is not creating one for my Shelly Plus 1.

Apologies, misread.

Thanks heaps for the last comment!
Was pulling my hair out - changed input type to switch - bingo!

I’m in the exact same position, I can’t get my reed sensor state to get reported to HA. Were you able to get this to work?

Indeed I was. I changed it to switch in the Shelly interface and suddenly everything became available in HA. I now have a working sensor that tells me if the gate is open or closed.

1 Like

The inputs local switches are unavailable. Is it possible to get it working?

How did you do that? I have the normal sonoff minir4 wifi and i cant use the button as a virtual switch. Just everything physical. Did you wire it special? Because tomorrow the r4 zigbees should arrive.

You have to click on the switch input and then enable it. It is disabled by default.

After that, it took about 30 seconds. Then the Shelly rebooted and I had the switch as an input in HA and could use it in an automation to trigger my smart bulb to turn on and off (without actually cutting power).

2 Likes

this is great, I didnt know that the entity must be activated. Thanks!

Hello Filipe_Leite,

any idea whether this will also work for the shelly plus2 plug?
I‘m considering buying it but would need the detached switch to trigger some automation.

Thanks

Andreas

This is exactly what I’m looking for too.

My Shelly exists to keep the smart light live, and makes the switch work as expected. But I also want it to act as a fallback.

99% of the time I want the shelly in detached mode triggering my light to toggle. In the 1% scenario when that doesn’t work, it should fall back into cutting or connecting the power on the output.

I’m thinking this is only possible if the shelly is able to know the state of the light that’s being toggled, and if it doesn’t see a response then it steps in. Maybe just losing connection to HA would be sufficient for it to take over? Interested to see if anyone has managed to achieve this?

Something like this?
https://community.home-assistant.io/t/control-smart-lights-with-shelly-with-automated-detached-mode

1 Like

Yes!!! that looks exactly like what I’m wanting - will take some head wrapping but thank you so much for sharing!!

Does anyone have a Shelly 1PM detached momentary switch blueprint for events ?