driveway sensor relay to trigger BI camera

Joined
Jul 4, 2015
Messages
24
Reaction score
3
So i am planning on getting a driveway sensor that detects when a car drives over the sensor. The receiver unit has a relay (NO or NC) output and 12VDC connections that trigger when a car activated the sensor (see attached picture). I want use this relay to trigger a camera in BI so that i receive a notification and it starts to record.

I was trying to figure out if i could use a shelly 1 plus to monitor the relay and when the relay closes it would send and http requests ( http://[BIServerIP]:[Port]/admin?trigger&camera=[ShortCamName]&user=[BIUserName]&pw=[BIPassword] ) to trigger the camera.

I am not sure if this is possible with the shelly or how to go about setting it up. I am also open to any other suggestions on how to trigger BI via the driveway sensor relay that may be easier.
 

Attachments

Scoobs72

n3wb
Joined
Jun 14, 2014
Messages
18
Reaction score
13
I have a very similar setup using a Shelly 1 plus, but when the relay closes I send a MQTT message from the Shelly into NodeRed, which then triggers a http request to Blue Iris to trigger the camera. But looking through the Shelly 1 Plus UI I think you can do this without using MQTT. You can create an Action each time the switch is toggled and you can add a URL to be called when this happens. I'm not certain, but that's how it looks from the UI.
 

TonyR

IPCT Contributor
Joined
Jul 15, 2014
Messages
16,792
Reaction score
39,076
Location
Alabama
I am not sure if this is possible with the shelly or how to go about setting it up. I am also open to any other suggestions on how to trigger BI via the driveway sensor relay that may be easier.
It's VERY easy with any of the Shelly Wi-Fi switches. At the bottom of this post is a link to a write-up I did in July '21 entitled " Simple Blue Iris I/O using Shelly1 Wi-Fi Devices."

In the first section of its attached PDF file entitled "INPUT to Blue Iris from Shelly #1" instead of using the HTTP command to call up a certain preset in the camera you could instead send a command to trigger the specific camera, such as just substitute in your BI server's IP, port and camera short name. Instructions are included in the PDF to embed the BI credentials in the URL if needed.

 
Last edited:
Top