tchellomello / python-amcrest

A Python 2.7/3.x module for Amcrest and Dahua Cameras using the SDK HTTP API.
GNU General Public License v2.0
216 stars 76 forks source link

Amcrest Doorbell #151

Open chadlyy opened 4 years ago

chadlyy commented 4 years ago

Amcrest Doorbell works great with this by the way. Can you add a doorbell sensor too?

MYeager1967 commented 4 years ago

Exactly how are you using this with the doorbell? Can you set something up to monitor for motion start/stop events? I'm trying to figure out how to do it...

blademckain commented 4 years ago

i think, the Doorbell create a specific event ( CallNoAnswered / IgnoreInvite ) when someone push the button best is to have a binary sensor ( ON/OFF ) that trigger when someone push the button

FrnchFrgg commented 3 years ago

Indeed, and I use these events for automation in HA.

pixeldoc2000 commented 3 years ago

See #137 and #162

PanicRide commented 2 years ago

FYI... now that the doorbell button press events work, I tried to add it to Home Assistant's integration, but it got rejected because it would require a change to the YAML config schema. The integration needs to be overhauled to support the new UI config flows before such features can be added. :(

https://github.com/home-assistant/core/pull/66302

However, you can still manually subscribe to the event with an automation trigger, or by setting up your own template binary sensor to listen for this event:

platform: event
event_type: amcrest
event_data:
  camera: <AMCREST DEVICE FRIENDLY NAME>
  event: CallNoAnswered
  payload:
    action: Start
camrun91 commented 2 years ago

@PanicRide do you know if anyone is going to be updating the amcrest stuff in homeassistant so we can take advantage of this?

MYeager1967 commented 2 years ago

I resorted to writing my own routines to interact with the event stream and relay what I needed to HA via MQTT. Easier that waiting for someone to rewrite and integration and I have control over it. Don't have to worry about it breaking due to a change in HA somewhere.