How can I get messages about the movement?
Closed this issue · 3 comments
Deleted user commented
Hello, sorry for such a simple question.
How can I get messages about the movement?
What do you need to add to this code?
import pyhik.hikvision
camera = pyhik.hikvision.HikCamera('http://192.168.X.X', port=80, usr='admin', pwd='admin')
kfowlks commented
@mezz64 I'm also interested in getting the status in regards to motion events, do you have an ETA for this enhancement? Also, is the hikvision protocol published?
mezz64 commented
Sorry guys i'm a bit busy these days and don't have much time to dedicate to this project beyond bug fixes. Take a look at the Home Assistant implementation (https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/binary_sensor/hikvision.py) if you want a full featured example. It covers how to setup a connection and a sensor class with callbacks to receive the events.