sawey / home-assistant-dahua-event Goto Github PK
View Code? Open in Web Editor NEWreceive events from dahua camera's and nvr's through their HTTP API
License: MIT License
receive events from dahua camera's and nvr's through their HTTP API
License: MIT License
Hello, I've been trying to use this custom component in my automation, but it's not being triggered. Here's how I tried to do this.
automations.yaml:
`
Guide should show like this for multi camera
#Dahua event listener
#https://github.com/SaWey/home-assistant-dahua-event
#IVS : Tripwire, Intrusion, Object Abandoned/Missing Advanced Intelligent Functions
#Advanced Intelligent Functions: Face Detection
#IPC-HDW4231EM-ASE
#REQUIREMENTS = ['pycurl>=7']
#########################################################################
dahua_event:
#
- name: Laundry
protocol: http
host: !secret laundry_cam_ip
port: 80
user: !secret nvr_username
password: !secret nvr_passsword
events: CrossLineDetection,CrossRegionDetection,LeftDetection,TakenAwayDetection,FaceDetection
#
- name: kitchen
protocol: http
host: !secret kitchen_cam_ip
port: 80
user: !secret nvr_username
password: !secret nvr_passsword
events: CrossLineDetection,CrossRegionDetection,LeftDetection,TakenAwayDetection,FaceDetection
#
- name: Living room
protocol: http
host: !secret livingroom_cam_ip
port: 80
user: !secret nvr_username
password: !secret nvr_passsword
events: CrossLineDetection,CrossRegionDetection,LeftDetection,TakenAwayDetection,FaceDetection
#
- name: Family room
protocol: http
host: !secret familyroom_cam_ip
port: 80
user: !secret nvr_username
password: !secret nvr_passsword
events: CrossLineDetection,CrossRegionDetection,LeftDetection,TakenAwayDetection,FaceDetection
Is this no longer working with the latest HA 0.118?
Placed the dahua_event (folder name) into custom components.
Added into configuration yaml and integration not found. Thinking the py is not compatible anymore?
#Dahua event listener
dahua_event:
Thanks
Hello, I follow your instructions but I have a problem. I have HA version 0.65.4 and pycurl (installed manually) version 7.43.0.1.
Starting HA, it appears these errors:
Error loading custom_components.dahua_event. Make sure all dependencies are installed
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/loader.py", line 142, in get_component
module = importlib.import_module(path)
File "/usr/lib/python3.5/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 986, in _gcd_import
File "", line 969, in _find_and_load
File "", line 958, in _find_and_load_unlocked
File "", line 673, in _load_unlocked
File "", line 673, in exec_module
File "", line 222, in _call_with_frames_removed
File "/home/homeassistant/.homeassistant/custom_components/dahua_event.py", line 10, in
import threading, logging, os, socket, pycurl, time
ImportError: No module named 'pycurl'`
Unable to find component dahua_event
Setup failed for dahua_event: Component not found.
What could I do to use pycurl - that it's installed - into HA?
I`m using Python37 32Bit and have installed pycurl 7.43. The component seems to be successfully registered. When motion happens, I get this error:
File "C:\Users\yuppie\AppData\Roaming.homeassistant\custom_components\dahua_event.py", line 108, in OnReceive
self.hass.bus.fire("dahua_event_received", Alarm)
AttributeError: 'DahuaEventThread' object has no attribute 'bus'
This is my config:
dahua_event:
Any idea, how to fix?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.