Dahua VTO custom integration

Look at events

HAUI >> developer tools >> events >> listen to events

Subscribe to " * " and “start listening” for event generated by the button presses. Event may show difference between button.

1 Like

Hello, as suggested above you can use Developer Tools → Events and subscribe to dahua_vto events and you will see that every event has entity_id which you can use in order to diferinciate from which device it’s comes.

In this example event comes from sensor.dahua_vto:

event_type: dahua_vto
data:
  Action: Pulse
  Code: SIPRegisterResult
  Data:
    LocaleTime: "2023-02-01 02:05:49"
    Success: true
    UTC: 1635381449
  Index: 0
  entity_id: sensor.dahua_vto
1 Like

I have been playing a little to be able to communicate from a Dahua VTO to the home assistant with the Asterisk addon and the SIP card, but no luck, at the end it was more a hassle that a good solution.
So at the end, using this integration thanks a lot @myhomeiot I’m able at least to open the door and also send notifications in case I’m away to control the VTO from the Dahua App.

For the ones that are interested on somehow use a tablet as a VTH, what I finally did is two things:

  1. Create a button that opens the Dahua App for tablets from the HA, and after a few minutes go back to HA app
  2. Create an automation that in case of call from the VTO open the app for a few minutes, send a message to chromecast and notify my mobile, after a few minutes, the Dahua App will close and go back to the HA in the tablet

This is how it looks like:

If anyone is interesed on the automation let me know and I will post some yaml configs
With that, the tablet and the VTH can be used to answer the door, and no need of addons or to config the VTO/VTH
I have been using it for a couple of weeks, and so far so good :smiley:

3 Likes

Is it possible to switch the IR on at night and leave it on? By default it only comes on for a few seconds when the doorbell is pressed. Thanks.

You can try this and this, if it’s works for you than you can think how to automate it using this integration.

Hy,
can someone help me?
I search a cheap dahua video doorbell with wifi.
Is working wit this integration the VTO1301R-W?

Thanks for the reply. The setconfig command returns ok, but doesn’t do anything. And in the DMSS app I don’t get the light icon unfortunately.

Should works, because according datasheet it’s can be controlled from application.

1 Like

Surelly I’m interessed on how did you made the app open, and also close the app.
What tablet are you using?
Thanks!

Sure @zejulio, you can invoke other apps from notifications, in my case I have a android tablet (Kindle Fire 10 HD), to make it work create an script with the following:

alias: Open DMSS
sequence:
  - service: notify.mobile_app_kftrwi
    data:
      message: command_launch_app
      data:
        package_name: com.mm.android.DMSSHD
  - delay:
      hours: 0
      minutes: 2
      seconds: 0
      milliseconds: 0
  - service: notify.mobile_app_kftrwi
    data:
      message: command_webview
      data:
        command: /lovelace
mode: single
icon: mdi:doorbell-video

You need the DMSS HD app installed on the tablet, the first notification open the app, and after a couple of minutes it goes back to Home Assistant App.
:smiley:

1 Like

Hello,

Many thanks!

How do you manage to open the DMSS app directly to the VTO screen? I need to open DMSS then select VTO from list, then the video start…
Also I try to register the notifications for the VTO no DMSS and it say’s failure…

Thanks,

Julio Silva

No, it is not possible to jump directly to the VTO, only the app.
You need to notify the tablet registered on the HA, in the example is mobile_app_kftrwi, this name will vary.

Also I try to register the notifications for the VTO no DMSS and it say’s failure…

Can you elaborate that?

Yes, I understand.

Can you elaborate that?

On DMSS app, I try to go to VTO settings and activate notifications, so it automatically jumps to the app then someone rings and open the video feed, like on my phone, but it say’s Failure.

I am using the Sonoff NSPanel Pro for this, maybe somethings related to notifications…
Since when I try notifications on HA it only gets me a notification sound, and does not show the notification (text).

Thanks,

Julio Silva

Check the name of the app, there are several DMSS apps, the one I’m using is the HD one, I don’t know which one is supported in the NSPanel, try to change the name to this:

package_name: com.mm.android.DMSS

Each android app has different id, you can check in the Google Play appstore, look in the url bar:

It is possible to use only DAHUA DHI-VTO4202F-MS SCREEN to show dashboard or camera stream from HA?

SPECS

Not sure about DHI-VTO4202F-MS but in VTH5221D you can add rtsp links for any cameras and you will see it on the screen, you can see this in this user manual section 6.2.1 Adding a Camera.

In order to add cameras directly from HA (using HA proxy), you can try to use link from HA camera entity attribute entity_picture which has access token as well. But if you add cameras to HA using rtsp, I think adding same rtsp link into VTH it’s a better solution.

Go to DMSS app, settings, default page, and pick Door. This way I got the VTO showing as soon as I open the DMSS app :slight_smile:
(Also works on DMSS HD app on iPad)

1 Like

I would love to get the yaml configs as well.

Do you also get camera view with this integration?
Because I didn’t find a Dahua VTO that also has ONVIF support…

No, this integration doesn’t support cameras, because VTO cameras using regular RTSP/ONVIF protocol and can be added into Home Assistant using build-in HA RTSP or ONVIF support.