HikSink streams Hikvision camera and NVR events (motion, line crossing, tamper, illegal logins, etc.) to MQTT messages for consumption by home automation software like Home Assistant. Some key features of HikSink are:
For example, these are the entities discovered on a DS-2CD2185FWD-I IP camera automatically loaded into Home Assistant:
The easiest way to run HikSink is with the provided Docker image.
docker run -d \
--name=hiksink \
--restart=unless-stopped \
-v <path/to/config.toml>:/app/config.toml \
cornerbit/hiksink:latest
rust
programming language compiler.git clone https://github.com/CornerBit/HikSink
cd HikSink
cargo build --release
cp sample_config.toml config.toml
./target/release/hik_sink
A dev container is provided to ease setup and testing. It's optional, but brings along a working Home Assistant instance, MQTT server, and the rust compiler.
Some tests use the insta snapshot testing library. This is installed automatically in the dev container.