Hi @Dim, I have automated the NICE Robus 500 for a client of mine. There have been some challenges, mostly specific to the NICE motor unit and its operation.
(Note, you mentioned NICE “robo”, the one I worked on was a “Robus” 500, maybe the name is different because the product is sold in a different market? I’m in the UK…)
The gates installer told me that I just need to connect a relay to the OPEN port on the motor, and close the relay (i.e. make the connection) when I want to open the gate. So I set up an Arduino nano with a relay and a W5100 board for networking, then wrote a sketch to listen to MQTT messages for open and close.
However it wasn’t as simple as that.
Here were the two problems I encountered:
- I close the relay (make connection), and the gate opens. If I leave the connection closed, it remains open. This is good. If I open the connection again during the period that the gate opens (about 25 seconds in my case), the gate continues to open, then shuts again after a timeout period set on the Robus 500. This is good. HOWEVER, if I close the relay momentarily to open the gate, THEN close the relay again whilst the gate is opening, the gate STOPS opening and stays that way. It never closes or opens after that, it just stays half open.
This is a problem when, e.g. someone uses OpenHAB to open the gate, the and at the same time someone drives up and keys in the code on the keypad near the gate.
So I changed the sketch to respond to an open message by checking that 30 seconds has elapsed since the last output to relay (to ensure the current action finishes, i.e. gate open or gate close) then changes the state of the relay.
- I haven’t solved this one. Sometimes, when my relay is connected to the system, the gate goes into some random “go horribly slow” mode. Nothing resolves this until I completely resent the Robus (delete all data, rescan locations, rescan bluebus, set up all the speeds and locations and settings again).
I contacted NICE about this issue as it seems to be related to the unit. They talked down to me on the phone, said some basic stuff, then told me to go away until I understood the problem some more. Which, to be honest, I don’t.
By the way, I’m using the O-View device to program the gate motor controller. This is invaluable.
The reason for setting this up for the client was so they could have a Google Calendar control the gates, to allow visitors access at times when the site is open.
I got around the latter by ensuring they set the opening time an hour before anyone is likely to turn up. It’s not ideal.
The client has 3 sets of gates, 1 set of sliding (Robus 500) and 2 sets of swing gates. The swing gates have proved even more of a problem!
Let me know if you want to see my Arduino sketch or OpenHAB settings, or whatever. Happy to show you more info.
Mat
p.s. I used Arduino Nano and W5100 breakout board because I had loads of Nanos from ebay (2 quid each) and loads of W5100 (4 quid each), and I’ve had great success integrating Arduino with MQTT for my own home automation so far. The relay I used was some Ebay thing for a few quid as well, consisting of 2 small relays on a breakout board with inputs and power connectors.