Since 'Ring Doorbells' have been taken over by Amazon, IFTTT & node-red-contrib-ringdoorbell
(which is also not maintained) will no longer work to get ring & motion events to trigger flows in node-RED.
Many users currently use those to trigger flows that activate lighting, cctv, audio alerts etc, etc.
In another post of mine, after speaking with Amazon technical support, I have a good workaround, that Amazon claim should work for the foreseeable future, as the triggers originate directly from the Amazon infrastructure.
So I'm going to document the process in case it helps others.
node-RED setup
In node red install the node-red-contrib-virtual-smart-home node, & import my example flow;
[{"id":"b4e2bd6293fb2efc","type":"vsh-virtual-device","z":"c4de7e0b.d9216","name":"Ring event","topic":"","connection":"","template":"SCENE","passthrough":false,"diff":false,"filter":false,"x":175,"y":570,"wires":[["908bd0b32bd22aca"]]},{"id":"61ed6a37e1bfc22b","type":"debug","z":"c4de7e0b.d9216","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":340,"y":620,"wires":[]},{"id":"430a8c1913f24f24","type":"vsh-virtual-device","z":"c4de7e0b.d9216","name":"Motion event","topic":"","connection":"","template":"SCENE","passthrough":false,"diff":false,"filter":false,"x":175,"y":620,"wires":[["61ed6a37e1bfc22b"]]},{"id":"908bd0b32bd22aca","type":"debug","z":"c4de7e0b.d9216","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":340,"y":570,"wires":[]}]
Add a new vsh-connection
in the node config. The node will give you clear instructions how to do this, and it is ridiculously easy, thanks to the node author - @lius, and takes less than a minute to complete.
Amazon Alexa setup
The Amazon side is setup using the Amazon Alexa
app on a phone, which once setup, there is no need to keep the app running, in fact it can be deleted if you wished, as everything after setup works totally in the Amazon Cloud.
Once you have the app installed, go to Browse Skills
in the app and search & install the ring
skill.
This will link your local ring doorbell, so we can get the triggers. When prompted enter your Ring
login.
Next we need to create 2 routines to link the triggers to the virtual smart home
devices.
First we'll do the motion
alert.
Find Routines
in the app, & create new routine
Enter routine name - any name that you want!
When this happens - select Smart Home
and you should see your doorbell, select it, and then select Motion
, and finally select Detected
.
Add action - again select Smart Home
, and then Control scene
. You should then see the two virtual smart home
devices, select Motion event
.
Save the routine.
Create another routine following the above, but select Doorbell
(ring event), instead of Motion
.
That should now be complete!
Go back to node-RED, and test your doorbell. If all works as planned, you should get a debug message for each of the alerts, which can then be used to run flows.