This binding is now available to download in JAR format (link is in this post). If this binding works for you then please post what brand and model you have so I can start compiling a compatibility list and it is always nice to hear from people with no issues
If you purchase cameras with no API support you will not get any motion, alarm or any of the other advanced feature that are in the binding. See below for more detail on what each brand of camera has working.
- Picture (snapshot) with adjustable auto refresh ability down to 1FPS which does not require you to disable authentication.
- PTZ absolute move with any ONVIF compatible camera that supports ABSOLUTE movement. Some Hikvision cameras seem to not work whilst others do with PTZ. You can easily implement scenes and presets with Openhab rules.
- Motion Alarm features with Amcrest, DAHUA, Foscam HD, and HIKVISION cameras.
- Enable/Disable the motion alarm with Amcrest, DAHUA, Foscam HD, HIKVISION,and Instar.
- Advanced SMART alarms with HIKVISION and DAHUA only. Line crossing, Face detection and many more should now be working.
- Audio Alarm features with Amcrest, DAHUA, Foscam HD, HIKVISION and Instar cameras.
- Audio Alarm THRESHOLD control feature with DAHUA (100 levels of control), Foscam HD (3 levels only) and INSTAR has the ability to do 100 levels of control.
- Control over the Infrared LED is now possible with FOSCAM HD and DAHUA as it is missing from the other brands API’s.
- External Alarm inputs with HIK and Dahua.
- External Alarm output switching with HIK and Dahua.
- Custom Text overlay for DAHUA only.
Cameras reported as working
DS-7208HQHI-F1 / N
DS-7616NI-K2 / 16P
Because this binding uses basic Openhab controls/channels it should work well with the myopenhab.org cloud and hence make it easier to get through any firewalls without opening up ports. Please use the Image channel wisely so as not to use bandwidth from a community run server. The binding has options to stop the image updating unless an alarm event occurs. Please do not leave remote sessions open and also use these features to keep the load small.
How to install
- Download the binding already built in JAR format from here:
- Place the JAR file after you unzip it into your openhab2-addons folder. You don’t install from PaperUI as the moment the JAR is in the correct folder the binding should be available to use.
- Any issues please take the time to read the readme file as it contains many helpful tips and example code.
GitHub Project and README
If you find a bug then please create an issue on github and be sure to post a number of lines from the openhab.log file before any errors occurred. Enabling TRACE gives a lot more information to help trace what is wrong. Setting it to INFO reset the log output back to normal.
Changing the log level
- Start the Karaf console https://docs.openhab.org/administration/console.html
- Enter in
log:set TRACE org.openhab.binding.ipcamera
- Type in logout to exit the console or you can also type in log:tail to view a live stream of the log.
- Highly recommend using FRONTAIL if you are using Linux to view the logs as it has a filter/search ability which is very handy. This is accessed the same way as paperUI if you are using Openhabian. The Openhabian tool can be used to install frontail as well See…