News for hackers. Stuff that matters.
Re:Automating my gate door via a smart relay by Animats on Monday July 01, 2024 @05:59PM (#40851243)
All that electronics associated with the gate and you can't get info back about whether it's open, closed, moving, or blocked.
Re:Automating my gate door via a smart relay by squarefoot on Monday July 01, 2024 @07:54PM (#40852126)
The gate electronics has sensors on board to detect actuators status, along with presence between the gates, but they're not exposed to the remotes to minimize costs. The signals however could be available on the gate controller board, although it would then need something bigger than that ZigBee switch to report them back. In this case a small SBC with the necessary gpio lines could be interfaced with said signals and drive an external ZigBee (or wiFi) dongle.
Re:Automating my gate door via a smart relay by jonhohle on Monday July 01, 2024 @07:19PM (#40851877)
In the US there is no shortage of “smart” garage door integration devices (mine are HomeKit compatible from Meross) that can both trigger an open signal (short circuit, as in the post) and be wired with an optional open/closed sensor which can tell you the true state of the door.
Re:Automating my gate door via a smart relay by randunel on Monday July 01, 2024 @06:05PM (#40851293)
The PCB stores the state persistently, but it doesn't expose it. After all, how would it? ADC, I2C, SPI, PWM? Those pins cost unjustified $, what percentage of buyers would even know what those letters mean?

You can check state persistence by cutting the gate's power during operation. When the power comes back on, your next button press will trigger the next operation in order, not the previous one (if you cut the power during opening, the next button press closes it and viceversa).

Re:Automating my gate door via a smart relay by PenguinCoder on Monday July 01, 2024 @06:39PM (#40851597)
Over thinking it I suppose. All it takes is a simple relay board, registering a signal on whatever pinout is available, be it GPIO or SPI. Example:

https://www.seco-larm.com/product/sr-1212-c7alq

And

https://www.seco-larm.com/product/sm-226l-3q/

Re:Automating my gate door via a smart relay by stavros on Monday July 01, 2024 @06:41PM (#40851611)
These switches do expose their state over Zigbee, it's just that their state is only on when the door is moving (I believe). Other than that, they don't know what the door's status is, that's why the OP had a door sensor.
Re:Automating my gate door via a smart relay by ssl-3 on Monday July 01, 2024 @08:50PM (#40852488)
According to the manufacturer-supplied diagram shown (and the video of the board in-situ), the gate control board knows that the gate is open or closed based on the status of two limit switch inputs, labeled SWO and SWC.

Such an interface cannot get any more exposed than that. There's no reason to throw a stew of TLAs at the problem.

(I have a strong suspicion that nobody responding here actually -- you know -- looked at this problem as it actually exists before deciding that it somehow cannot be resolved.)

Re:Automating my gate door via a smart relay by quickthrowman on Monday July 01, 2024 @07:11PM (#40851834)
You’d need extra bits and pieces to monitor those things, or if the gate controller monitors those things already, figure out how to read that information.

You could add a current transformer around the motor conductors to handle the ‘is_moving?’ case. If there’s measurable current flowing through the motor leads, the motor is turning. That’s how you determine the on/off status of a fan or pump motor in a building automation system.

Magnetic contacts or end switches on either end of the gate could handle the ‘open’ and ‘closed’ cases. Magnetic contacts are widely used in commercial doors for access control, and end switches are used for air damper open/closed status in building automation systems, to give a couple examples.

Not sure about the ‘blocked’ case, that would depend on what the gate motor controller does when the gate is blocked. Some kind of sensor that uses the photoelectric effect, I would imagine.

Re:Automating my gate door via a smart relay by Animats on Monday July 01, 2024 @07:26PM (#40851924)
The board already has all the limit detection. It just doesn't provide it at output pins.

Of course, the trend in consumer product interface is either nothing or a full web server with a "cloud" connection and an app. With ads.

Re:Automating my gate door via a smart relay by amluto on Monday July 01, 2024 @07:39PM (#40852003)
I’ve poked at some BFT boards. The ones I’ve looked at do have outputs, but they’re configure oddly by default. You can go through the menu and reprogram them. Warning: the modes may not all do what the manual says. Test them. If one mode doesn’t do what you want, try another mode.