elad-bar / DahuaVTO2MQTT

Listens to events from Dahua VTO unit and publishes them via MQTT Message
103 stars 39 forks source link

Home Assistant integration plugin #23

Closed myhomeiot closed 3 years ago

myhomeiot commented 3 years ago

Since you already ported your gateway to Python is it will be a great idea to have regular Home Assistant integration? Sure MQTT gateway can be used by different home automation systems, but specially for Home Assistant the integration plugin will be much easy to use.

One more question: I have Dahua VTO and as I can see from documentation I can have doorbell sensor, the question is, using this gateway I can only receive events from VTO or can send commands as well? I'm interesting to send command to open the lock. Thanks in advance!

elad-bar commented 3 years ago

thanks for the input, I'm currently using NodeRED as integration to that docker over MQTT, the same can be done with automation of HA.

Of course anything that has communication channel can potentially switched into component, but the question is, what is the benefit of it as an HA component, given someone will need to maintain it.

Given the ring is an event, what will turn it off? is it just 30 seconds afterwards? or should it wait for opposite event of answering / not answered? opening the gate can be a service for sure, the lights on can be also binary sensor (not sure what will be the benefit of it as well).

thanks

myhomeiot commented 3 years ago

Thanks for explanation! Main benefits having it as integration of HA, less complexity, better reliability but if you currently use it as MQTT it's will require more work to maintain.

Latest versions of HA has blueprints which make this kind of automation less complex.

Is it possible to send commands to VTO or Dahua API allow only to receive information?

elad-bar commented 3 years ago

For now, only retrives information, planning to add MQTT for action, first will be to open gate

elad-bar commented 3 years ago

@myhomeiot added the topic [MQTT_BROKER_TOPIC_PREFIX]/Command/Open

elad-bar commented 3 years ago

Is it still relevant?

myhomeiot commented 3 years ago

@elad-bar Thanks for door open command! I was thinking that this command should be issued using existing Dahua connection. Because it's simple http command, I did it using shell_command using curl.

I will definitely start using DahuaVTO2MQTT when I will get good reason to install MQTT, currently all automation's which I have doesn't use it.