I try this for hours. I don't know. I tried to use crosstool ng to compile evert native npm module for the onion but it is not working. We really need a getting started guid for this or someone who explain this to us how we can compile node native addons for the onion.
I ended up using my RPI 3 to run homebridge and used the script plugin to contact my omega2+.
The on script: ssh root@omega-ABCD.local "relay-exp 0 1"
The off script: ssh root@omega-ABCD.local "relay-exp 0 0"
Initially the delay was noticeable due to the new ssh connection every time but then I used the ControlMaster feature of OpenSSH, which opens a unix domain socket for the first connection and reuses this connection in all subsequent calls.
The achieve this you should place this in your ~/.ssh/config of the RPI 3 that will contact the omega2+:
# I chose to persist it for 5 days
It is now very responsive and I don't wast a full RPI to this single button
Looks like your connection to Community was lost, please wait while we try to reconnect.