Git Product home page Git Product logo

home-assistant-dahua-event's People

Contributors

sawey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

home-assistant-dahua-event's Issues

Which service should I use as Automation trigger?

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:
`

  • id: ios_dahua
    alias: IOS Dahua
    trigger:
    • platform: event
      event_type: 'dahua_event'
      action:
      service: notify.ios_iphone_vyacheslav
      data:
      message: "Alarm"
      data:
      push:
      category: camera
      entity_id: camera.dahua
      `

Multiple cameras with no NVR

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

No working anymore with latest HA 0.118?

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

Pycurl problem

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

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?

Error, no attribute "bus"

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:

  • name: Auffahrt
    protocol: http
    host: 192.168.1.80
    port: 80
    user: admin
    password: secure
    events: VideoMotion,CrossLineDetection,CrossRegionDetection,AudioAnomaly
  • name: Eingang
    protocol: http
    host: 192.168.1.90
    port: 80
    user: admin
    password: secure
    events: VideoMotion,CrossLineDetection,CrossRegionDetection,AudioAnomaly

Any idea, how to fix?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.