Blue Iris Device Handler!
To my knowledge this is the only device type handler for Blue Iris. This creates a “Blue Iris Server” Device as one of your things in SmartThings, enabling 2-way communication between the Blue Iris Server (running on your computer) and your SmartThings hub.
If you’re unfamiliar with Blue Iris (BI):
Blue Iris is an outstanding Video Security/Capture NVR (Network Video Recorder) program that works with virtually every IP camera out there, creating a web server that manages them all and monitors them for motion, triggering recording. http://blueirissoftware.com/ Big shout out to Ken, the program is great and his support is outstanding.
Device Handler Features:
- Local Connection 2-way comms between BI and ST
- Fast on-demand Profile switching, both hold and temporary
- Traffic Light switching
- Blue Iris server health and online status checking
I am working on a Service Manager helper smartapp for it, which will enable:
- Push/SMS Notifications
- Automated Blue Iris <-> SmartThings Profile/Mode Integration (just like my BI Fusion app)
- Camera Triggering based on SmartThings events (just like my BI Fusion app)
- HOPEFULLY a simple, clean Blue Iris Camera Device Type creation for receiving Camera Motion Triggers as SmartThings Motion Sensors (methods exist, but no clean or easy. See “Can I use it to trigger SmartThings actions when the camera detects motion (e.g. to trigger a light to turn on)?” at the link above )
Device Handler Specifics:
- The “Sync BI to ST” tile changes your Blue Iris profile to match your SmartThings mode.
- The tile labels mirror the actual profile name, not just the number. (but due to SmartThings limitations I can’t center them or change the color)
- Inactive is BI profile 0, handled differently in BI so it looks different here, but you can turn it on and off like the other profiles
- The Hold/Temporary tile switches between making a hold change or a temporary change to your profile. Hold changes will persist until changed again, even through computer restarts, etc. Temporary will last as long as you have temporary profiles set to run within BI’s settings, then revert to the BI scheduled profile.
- The big tile at the top left is the current profile, now action assigned, just big so you can see it.
- The traffic light cycles you through the BI traffic light. (Green = recording enabled)
- Refresh just pulls the current status just like any other device.
- It polls your server every 15 minutes (and obviously updates everything whenever you execute a change.
- It returns errors as device messages only… Device Type Handlers apparently cannot send notifications, which is a big reason I’m holding off on the new thread to release this until I have the helper app to send them.
*** It checks for profiles or traffic lights not changed correctly, bad server responses, and whether the server is even online (a separate check because if it is offline it’ll simply return nothing and you won’t know the status).
- Add DTH to your API via repository update or copy/paste code
a. Repository Settings: Owner: flyjmz, Name: jmzSmartThings, Branch: master
b. Link to Code: https://github.com/flyjmz/jmzSmartThings/tree/master/devicetypes/flyjmz/blue-iris-server.src
- Create a new device from within the API, selecting the “Blue Iris Server” DTH
a. Set the name
b. Just use “TemporaryID” or something for Device Network ID, the app will change it to the correct ID upon initialization
c. Select your hub/location/published
- Open the SmartThings app on your phone, select your new device, and tap the gear icon to update your settings
a. Make sure your IP address and port are entered correctly. Example: 192.168.0.1 and 8000
b. Unlike BI Fusion, you have to manually type your SmartThings Mode names for the Blue Iris Profile they match (it’s a device type limitation, another reason for the Service Manager app)
c. Select whether you want debugging on and/or change the server response timeout threshold.
- Once you select done, hit the refresh button, and the device will initialize and update the labels and status. If it doesn’t, check your settings again, and watch the debug messages in the API’s Live Logging (it’ll help me help you!)
This is largely based of my BI Fusion App:
If you like BI Fusion, you’ll definitely this Device Type. Stay tuned for BI Fusion 2.0, which will work with this device type!
Please post questions, comments, ideas, ways to fix the todo’s and questions in my code. If it works for you, please like the post so others know how great it is! Hope this makes your Smart Home closer to the way it should be and a little easier to work with!
14Oct17 - v1.01 released. Accidentally reintroduced a bug I found in testing. Once you install v1.01, just hit refresh and it’ll update everything.