Skip to content

mikehaldas/shelly-door-sensor-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Shelly BLU Wireless Door Sensor API Integration Script

This javascript project enables the integration of a Shelly BLUE wireless door sensor with Viewtron security camera system. This is done via the custom script feature of Shelly BLU sensors and the HTTP Post / webhook API available on Viewtron IP camera NVRs. Please note that the script can easily be modified so that it can be used to integrate any device with the Shelly window / door sensor. If you have an IoT device that supports an HTTP Post / webhook API, you can use this script to integrate the wireless door sensor.

Project Overview and Setup Video

Watch the Video Demo

Watch this video to hear an overview about the project and to see how to setup the Shelly BLU wireless door sensor and Viewtron IP camera NVR's virtual alarm API.

How the Wireless Door Alarm Works

Alt text

This is how the integration between the Shelly BLU door sensor and Viewtron NVR works.

  • The Shelly wireless door sensor communicates with a Shelly BLU wireless Gateway via Bluetooth.
  • The Shelly Blu Gateway (pictured in the middle, plugged into a standard power outlet) is connected via WIFI to the same network that the Viewtron NVR is on.
  • The NVR is hard wired to the wireless router.
  • The custom javascript code from this repository is installed on the Shelly Gateway. This code is triggered when the door sensor is opened.
  • The javascript code makes an HTTP Post to trigger a virtual alarm on the NVR.
  • The virtual alarm on the NVR can trigger video recording, mobile app push notification, an audio alarm, and many other alarm actions.

Step by Step Setup Instructions

You can find step-by-step setup instructions with screenshots on this page.

https://videos.cctvcamerapros.com/v/wireless-door-sensor-alarm.html

Viewtron IP Camera NVRs

You can find all of the Viewtron NVRs that support the virtual alarm API that work with this alarm integration script on this page.

https://www.cctvcamerapros.com/IP-Camera-NVRs-s/1472.htm

Shelly BLU Wireless Door Sensor

You can find the Shelly BLU wireless door sensor here.

https://us.shelly.com/products/shelly-blu-door-window-white

You can find the Shelly BLU Wireless Gateway here.

https://us.shelly.com/products/shelly-blu-gateway

Releases

No releases published

Packages

No packages published