Hi folks, I was using Shelly 1 to control the semi-smart garage door, which needs an impulse on the input to kick off the motor and either open or close the gate depending on the current door state. The motor controller does everything itself, it just needs an impulse to start moving the gate. So far everything worked quite well, I powered Shelly 1 from 230V AC and connected I/O in parallel to the button which already existed.
Now I want to know the state of the door, too.
So I set the "Button type" to "Detached" in Settings, and checked "Add input state identifier to the power button" in Application Settings. The gate has a lamp that turns on when the gate is open. It's a normal 230V AC E27 bulb, so, I split the Live wire going to the bulb and hooked it up to "SW" on the Shelly 1.
Basically, my setup is like the attached image, except what's shown on image as lamp is actually gate controller, and external switch is built into the motor controller.
The only problem is that now, the Input state (light blue bar on the Shelly 1 power icon in the app) is always on.
I measured voltage between SW and N and it's correctly showing 0.00 when the gate is closed, and 230 when the gate is open.
Also measured between SW and L and as expected it's 0.00 at all times.
Am I doing something wrong here or did I misconfigure something?