u/Fantastic_Disaster32

Hello all,

Hopefully someone can resolve this for me. It's an apparently simple task. I've got an electric gate that I'm trying to automate. I've got a relay to trigger the contract closure to open and close the gate, no issues with that, but I've fitted a proximity sensor to tell if the gate is open or closed.

When the command is to open (or close) the gate is triggered, the automation uses the proximity switch to check if the gate is open or closed, so if the proximity switch says the gate is open, then it should not trigger the relay

Trouble is, it always closes (or opens) the gate regardless of the proximity switch position.

Both the relay and the proximity switch work faultlessly independently.

I need to do this as otherwise I have to check if the gate is open or closed.

Thanks in advance.

reddit.com
u/Fantastic_Disaster32 — 7 days ago