You mean event like motion sensor?
I also have no motion sensors in HASS
You mean event like motion sensor?
I also have no motion sensors in HASS
Can you please explain which steps to do
For anyone with Dahua cams, I found a python script that monitors IVS smart events. I hooked that up to a HomeAssistant binary sensor via MQTT and it works great.
Would you mind to share your script for Dahua?
Original script: https://i.botox.bz/watch.py
Thread discussing on ipcamtalk.com: https://ipcamtalk.com/threads/trigger-blue-iris-with-ivs.17303/
My modified script: https://github.com/johnnyletrois/dahua-watch/blob/master/watch.py
johnnyletrois
Can you add more info how to use it and config it via HA?
will be great
:)? help? = Dahua
Modify the script for your cameras and MQTT settings, run it, and monitor the MQTT messages in HA. Donāt forget to configure your cameras for IVS tripwire or intrusion. The ipcamtalk thread has more info on what detection modes are supported, including CrossLineDetection,CrossRegionDetection.
After this, i will be able to get the image from my camera as a notification ?
can you share me your code? that will help to understand how to add it to my HA?
Big Thanks!
The event stream script is only trigger the Dahua cameraās advanced detection by sending it as a MQTT message. It doesnāt have anything to do with getting the images from your camera. You can already get the images from your camera by connecting to them as generic IP cams in HA. You can send screenshots from that as a notify message.
Instead of cluttering up this Hikvision thread, you should probably start another thread.
I get this for every one of my cameras when I start up. I can see the cameras. Not sure if that means it reconnects. A little clutter of the log files:
2017-10-27 09:15:49 WARNING (Thread-3) [pyhik.hikvision] Walkway Connection Failed. Waiting 10s. Err: Connection unsucessful.
Exception in thread Thread-3:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/pyhik/hikvision.py", line 358, in alert_stream
raise ValueError('Connection unsucessful.')
ValueError: Connection unsucessful.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.6/site-packages/pyhik/hikvision.py", line 410, in alert_stream
self.watchdog.stop()
File "/usr/local/lib/python3.6/site-packages/pyhik/watchdog.py", line 36, in stop
self._timer.cancel()
AttributeError: 'Watchdog' object has no attribute '_timer'
Edit: I think I figured it out. The account I was using didnāt have enough privileges.
Edit 2: Yeah, had to use a different account, and it wouldnāt work pointing against my NVR. I had to connect to each camera. My NVR is: DS-7716NI-I4 When I pointed to it, I got no errors in the log file, but I got no sensors created.
My Hikvisikn TV-IP311PI Camera isnāt working with the hikvision binary_sensor Component. Cloud anynone help me?
Why I see these warnings?
2018-11-29 17:47:09 WARNING (SyncWorker_2) [pyhik.hikvision] Sensor type "callhelp" is unsupported.
2018-11-29 17:47:09 WARNING (SyncWorker_2) [pyhik.hikvision] Sensor type "WLSensor" is unsupported.
2018-11-29 17:47:09 WARNING (SyncWorker_2) [pyhik.hikvision] Sensor type "WLSensor" is unsupported.
2018-11-29 17:47:09 WARNING (SyncWorker_2) [pyhik.hikvision] Sensor type "WLSensor" is unsupported.
2018-11-29 17:47:09 WARNING (SyncWorker_2) [pyhik.hikvision] Sensor type "WLSensor" is unsupported.
2018-11-29 17:47:09 WARNING (SyncWorker_2) [pyhik.hikvision] Sensor type "WLSensor" is unsupported.
2018-11-29 17:47:09 WARNING (SyncWorker_2) [pyhik.hikvision] Sensor type "WLSensor" is unsupported.
2018-11-29 17:47:09 WARNING (SyncWorker_2) [pyhik.hikvision] Sensor type "WLSensor" is unsupported.
2018-11-29 17:47:09 WARNING (SyncWorker_2) [pyhik.hikvision] Sensor type "WLSensor" is unsupported.
Iām sorry if Iāve missed anything but can someone tell me why Iām getting the errors as above?
Iām also getting all these error did anyone every get them resolved? I am guessing they are new/unsupported event types?
Same issue here, seems to have something to do with the firmware. Chinese model -> International firmware?
If someone knows how to resolve this?..