Announcement

Collapse
No announcement yet.

MQTT for ONVIF Hikvision Video Doorbell

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Pete
    replied
    You can install Docker on Debian 8 (Stretch) or Debian 9 (Jessie). Goggle docker on RPi Jessie. Is this on an RPi2?

    It'll be slow on an RPi2 running Mono and Homeseer. You might want to look at the RPi4 with 4-8 Gb of RAM for your endeavor.

    I do not know much about running the ONVIF to MQTT plugin on the RPi. Actually don't use any RPi's much these days.

    Did test similiarly as below on an Armbian Linux S912 Octocore TV box with 3Gb of RAM / 32Gb of SSD space.

    This box ran circles around the RPi2-3 except that it was an ARM CPU.

    Here have it running on my micro Intel Atom PC (BeeLink BT3 Pro) which is running (trying to break it).

    1 - Ubuntu Linux 18.04
    2 - Mosquitto Broker
    3 - Docker (HA, ONVIF2MQTT, RingAlarm2MQTT, OmniLinkBridge, is running in Docker)
    4 - Node Red
    5 - Homeseer 3 Lite
    6 - Home Assistant
    7 - Webmin

    Leave a comment:


  • JCCccc
    replied
    Finally had a chance to look at this. When I go to the link https://phoenixnap.com/kb/docker-on-raspberry-pi it says a prerequisite is Rasbian Stretch light. My Zee 2 is running Jessie. Will that work. So far I have not been able to install NodeJS and I beieve it is because I am running Jessie.

    Leave a comment:


  • Pete
    replied
    Docker is a set of platform as a service (PaaS) products that uses OS-level virtualization to deliver software in packages called containers. Containers are isolated from one another and bundle their own software, libraries and configuration files.

    Easy to install on the Rpi. The RPi / Homeseer Zee 2 would have to remain on 24/7.

    Would Docker install on the Zee 2 and then the ONVIF to MQTT plugin on top of that.

    Yes docker, mqtt and the onvif to mqtt app would be a container running in docker

    1 - How To Install Docker On Raspberry Pi

    2 - Mosquitto Broker is needed.
    sudo apt update
    sudo apt install mosquitto

    3 - install onvif2MQTT from here: hxxps:/github.com/dmitrif/onvif2mqtt

    Docker and container and mosquitto broker are like services running on the RPi.

    The only added plugin to Homeseer would be mcsMQTT. Number 1,2 and 3 above are OS install services / programs.

    You need to be able to utilize the command line on the RPi and easy to do via SSH.

    Leave a comment:


  • JCCccc
    replied
    [QUOTE=Pete;n1393979][I][B]

    does the doorbell send MQTT? I assume there is an MQTT plugin for the Zee2?

    Not natively. You would have to install a plugin which is doing ONVIF to MQTT for just the PIR sensor of the doorbell. Then install the mcsMQTT plugin to Homeseer. The plugin is not made for Homeseer. It is a generic MQTT plugin which runs in Docker. I am using it here for Home Assistant and Homeseer.

    Thanks once again. I understand installing the mcsMQTT plugin on the Zee 2, but beyond that you lost me. I know nothing about Docker (I googled it and it said something about running applications in containers, which meant nothing to me.) Would Docker install on the Zee 2 and then the ONVIF to MQTT plugin on top of that, or would it have to be done on another machine. Again, I don't want to have to have a computer running 24/7 and the Zee can only handle 5 plugins total (I think I am at 3 now).

    Sorry for my lack of technical knowledge. Just assume you are talking to a philosophy major (or maybe a third grader).

    Leave a comment:


  • Pete
    replied
    Thanks. I followed all of that except #7. I understand the idea of a reed switch in the chime box, but what does the reed switch trigger to send a signal to the Zee2? And as for motion,

    The reed switch is an alternative to my hard wired to alarm panel zone via the Elk 960 debounce board and Elk 930 doorbell board. It uses the magnetic generation of the door bell chime to trigger a switch.

    You could connect the analog reed switch to a wireless Zigbee or ZWave contact or alarm wired zone switch if you wanted to. This will give you a sensor for the doorbell ring.

    does the doorbell send MQTT? I assume there is an MQTT plugin for the Zee2?

    Not natively. You would have to install a plugin which is doing ONVIF to MQTT for just the PIR sensor of the doorbell. Then install the mcsMQTT plugin to Homeseer. The plugin is not made for Homeseer. It is a generic MQTT plugin which runs in Docker. I am using it here for Home Assistant and Homeseer.

    when the doorbell is pressed the Zee2 could send a text?

    Yes and also when the motion sensor is triggered if you want. I have adjusted my motion sensor to trigger only when you are right up to the doorbell. That said I have noticed lately that Amazon, FedEx, UPS and USPS rarely trigger the doorbell these days. The motion sensor though triggers recordings any how. IE: when pressing the button for the doorbell it also triggers the motion sensor.

    Leave a comment:


  • JCCccc
    replied
    Thanks. I followed all of that except #7. I understand the idea of a reed switch in the chime box, but what does the reed switch trigger to send a signal to the Zee2? And as for motion, does the doorbell send MQTT? I assume there is an MQTT plugin for the Zee2?

    Also, does the answer to 7 also take care of 4? For example, when the doorbell is pressed the Zee2 could send a text?

    Leave a comment:


  • Pete
    replied
    The HikVision or similar DB2:

    1. Runs off the power from my existing doorbell.

    Yes.

    2. Has internal storage (and preferably works kind of like an internal NVR)..

    Yes tested up to a 256Mb SD card.

    3. Rings the chime when the doorbell is pressed.

    Yes.

    4. Will send a notification to my phone when the doorbell is pressed (I don't think the Hikvision does this).
    5. Will send a notification to my phone when it senses motion (like the Ring does, although it is sometimes laggy).


    Yes. This configuration is the Doorbell App which runs on iOS or Android.

    6. Will allow me to view video and communicate from my phone from the Homeseer Mobile App.

    Yes and no. Yes you will be able to see video via the Homeseer Mobile App (RTSP). No you will not be able to communicate with DB with the Homeseer Mobile App.

    7. Will trigger Homeseer events when it senses motion or the doorbell is pressed (like turning on the front door light).

    Yes and Yes. Use a hard contact switch (reed switch) in the doorbell chime or here mine is connected to the Security panel. Motion is triggered via MQTT and an MQTT ONVIF plugin.


    8. (Optional) integrates with Apple Homekit.

    I do not know.

    ======================================

    The neighbors here are still using the Ring doorbell I installed for them when I initially installed my Ring. They do not automate.

    I am installing a RIng Alarm system for a family member and have it set up and working fine with Alexa today. Comes with built in failover to celluar.

    Here not utilizing any Apps with my Hikvision doorbell and utilize VPN to get home and it works well with RTSP, ONVIF and JPG captures.

    Leave a comment:


  • JCCccc
    replied
    I would like to replace my Ring doorbell since it does not interface with Homeseer (Zee 2). I do not want to get an NVR, pay for cloud storage (a la Ring), or leave a computer running 24/7.

    Is there a doorbell that does the following:
    1. Runs off the power from my existing doorbell.
    2. Has internal storage (and preferably works kind of like an internal NVR)..
    3. Rings the chime when the doorbell is pressed.
    4. Will send a notification to my phone when the doorbell is pressed (I don't think the Hikvision does this).
    5. Will send a notification to my phone when it senses motion (like the Ring does, although it is sometimes laggy).
    6. Will allow me to view video and communicate from my phone from the Homeseer Mobile App.
    7. Will trigger Homeseer events when it senses motion or the doorbell is pressed (like turning on the front door light).
    8. (Optional) integrates with Apple Homekit.

    It would be nice it is had less lag than the Ring. Often by the time the video opens, whoever was at the door is already gone.

    It would also be nice if all this could happen in the Homeseer Mobile app without a separate doorbell app, but that is probably asking too much.

    Does this exist? The Hikvision or one of its clones seems to come closest.

    Leave a comment:


  • Pete
    replied
    Will do.

    Leave a comment:


  • Eman
    replied
    Pete,

    Can you test this one : https://github.com/eusfelix/hikvision-to-mqtt I installed it and PM2 seems to run the script without error but I can't get the events out of the camera I don't know what am doing wrong!

    The instructions of how to here : https://www.iotwithus.com/getting-ev...vision-camera/



    Eman.

    Leave a comment:


  • Pete
    replied
    Does the doorbell / OEM version have a setting for enabling Hikvision CGI ?

    No. Other's have stated that Hikvision removed that in the firmware. That said I have two Hikvision openboard cameras that I am tinkering with and those include the HikVision CGI.

    Here is a Hikvision Doorbell 101 with much information on it.

    Leave a comment:


  • mr.Magoo
    replied
    Does the doorbell / OEM version have a setting for enabling Hikvision CGI ?

    If so, then an alternative to ONVIF>>mqtt would be to pick up the alertStream directly from the camera.
    https://www.hikvision.com/content/da...20Protocol.pdf





    Click image for larger version

Name:	Capture.PNG
Views:	662
Size:	22.0 KB
ID:	1373552

    Leave a comment:


  • Pete
    replied
    Yes it supports my new OEM Hikvision doorbell just relating to the motion PIR.

    Looks like this one and is sold relabeled by EZViz, RCA, et al.

    Click image for larger version

Name:	HikvisionOEM.jpg
Views:	664
Size:	20.5 KB
ID:	1373512

    It does not support first generation Hikvision Doorbell.

    That said he continues to work on the doorbell press ONVIF messages. So far only the PIR motion is working.

    Well too upgraded yesterday from version 1.0.1 to 1.0.3 and now it doesn't work. Waiting for update.

    Another user downgraded to version 1.0.2 and that one is working. Personally here only watching it with the MQTT Explorer. Waiting on connecting it to mcsMQTT.

    Leave a comment:


  • Michael McSharry
    replied
    GitHub notes indicate it does not support Hikvidion DB2. What it does support is motion event for the doorbell and the author indicates other events could be done easily. Seems like the doorbell button push would seem like a natural event for a doorbell.

    This get me thinking that a good hack would be in the router to notify when certain URLs are routed. This could be used for any cloud device without a bridge needed for each specific client.

    Leave a comment:


  • Pete
    replied
    hoping it'll work with other Hikvision cameras as well.

    It should work fine if the camera does ONVIF and motion detection.

    Leave a comment:

Working...
X