Can I use the Uni to monitor sliding gate end-stop microswitches?

  • Title says it all really.

    I have an old sliding gate which I've retrofitted with a Shelly 1Plus (a wifi relay w/ a 1 second timer, that mimics a user cycling between open > stop > close etc.) and Home Assistant.

    What I want is to do is get notifications in Home Assistant when the gate is open or closed. Is the Shelly Uni the correct product for this? Or something else?

    Note: Inside the existing gate control unit there are 2 microswitches – one is 'on' at open-stop and the other is 'on' at closed-stop. When either microswitch is 'on' I measure 24VDC across the microswitch terminals. I thought about hijacking this 24VDC power to run a Shelly device, but when each microswitch is 'off' then 24VDC no longer exists across the terminals: As if the gate control unit 'flip-flips' power to the microswitches. I don't fully understand the logic to be honest.

    My gate control has 24V*AC* auxiliary power terminals, but no DC aux power. And I could use the 220VAC mains power.

    Anyway, assuming I can find power somewhere, what Shelly device can I use to get the open & closed status of the microswitches? Thanks in advance ladies & gents!

  • After some digging around I think I can get what I want from an ESP8266 board running ESPEasy. But ideally if Shelly have a product I prefer to use that! DIY is fun but horrendously time consuming :)

  • Update for anyone reading this ... I installed a second microswitch into my gate motor housing which disengages when the gate is open, and connected that to the Shelly 1Plus switch input (and configured the switch input as 'detached') – so every time the gate is not 100% closed the Shelly input switch registers as 'open'.

    Alternatively, there is an aux 220VAC output on my gate motor control PCB (for triggering a warning light whenever the gate is in motion), but this required some futzing around in Home Assistant with an incremental counter and some logic to determine if the gate was in the process of opening or closing; and it was not a 100% definite indicator of open or closed. Just moving or stationary :)