Site icon Intermittent Technology

The video doorbell that does Home Assistant + NVR

I have been searching for a while to replace my current video doorbell solution. Integration with Home Assistant and my NVR software where key in this search. Things like ethernet and POE would be a great bonus. I think I’ve found it so let’s take a look!

Information Article

This will be an information article to go with my videos about the doorbell. Especially during later steps like integrating the doorbell into Home Assistant a dedicated post is much more convenient then trying to cram it into the video description!

Shopping links

❕ All below links can be affiliate links which provide me with a small kickback in case you purchase something. If you use them, thank you very much! πŸ˜€ ❕

🌟 Dahua Doorbell Kit (Dahua KTP01(S))
πŸ‘‰ https://geni.us/gLLYJ
πŸ‘‰ https://s.click.aliexpress.com/e/_9ypM72 (Different shop)

πŸ”” Dahua 2MP VTO2202F-P Outdoor Doorbell station POE [ The outdoor unit! ]
πŸ‘‰ https://geni.us/K08YGmP
πŸ‘‰ https://s.click.aliexpress.com/e/_An3Tq8 (Different shop)

πŸ”” Alternative models (much less wide) (I did not test these myself, but manual shows the same functionality)
πŸ‘‰ Dahua VTO2101E-P-S1: https://geni.us/En41z
πŸ‘‰ Dahua VTO2111D-P-S2: https://geni.us/z0rQv

🌟 Cheap indoor Dahua VTH2421FW-P monitor system screen POE
πŸ‘‰ https://geni.us/FGy4R

🌟 WiFi indoor Dahua VTH5221DW-S2 monitor system screen POE
πŸ‘‰ https://geni.us/3z9BAD6

🌟 Hikvision POE switch
πŸ‘‰ https://geni.us/qlKZTFF

🌟 Ezviz doorbell
πŸ‘‰ https://geni.us/v4HM

🌟 Sonoff Relay with Controller built-in (easy to link to Home Assistant)
πŸ‘‰ https://geni.us/9bWoMP8

🌟 Optocoupled relay modules
πŸ‘‰ https://geni.us/dRYwMJK

🌟 ESP32 development board
πŸ‘‰ http://geni.us/4OZdAj
or
πŸ‘‰ https://geni.us/9aXV

🌟 Dupont cables
πŸ‘‰ https://s.click.aliexpress.com/e/_97BfE4

🌟 Cheap phonecharger
πŸ‘‰ https://geni.us/TiSqB

Videos

1st video – Finally one that does EVERYTHING

This video is about the doorbell itself including everything that you need to hook it up. We also take a quick look at the screens and such which are optional extras.

2nd video – Basic hardware & software install

In this video we go through the basic install of installing the doorbell to the outside of the house. We also run through everything you need to change if you want to reset the doorbell to it’s default configuration values. This isn’t necessary to use it but can come in handy if you want to change certain values.

3rd video – Linking to Home Assistant

In this video I guide you through getting the doorbell setup in Home Assistant and making a few easy automation’s with it!

Text info

In the 3rd video I show some code which can be useful to look over and copy so here is it again in text form!

🚨update🚨

The Home Assistant repository is gone, but there is a backup copy here: https://github.com/intermittech/hassio-addons

There is also another way to install the add-on and that’s using the direct Docker image. Reese made a really nice video about it, check it out here: https://youtu.be/-oOP38KpvfE

*In the below example you see me using the β€œ!secret” a lot. This is a method to store username and passwords centrally in a β€œsecrets” file and you can then call upon that all over Home Assistant, read more about it here.

MQTT Configuration

logins:
  - username: '!secret mqtt_user'
    password: '!secret mqtt_pass'
anonymous: false
customize:
  active: false
  folder: mosquitto
certfile: fullchain.pem
keyfile: privkey.pem
require_certificate: false

Dahua VTO2MQTT Add-on

Repository: https://github.com/elad-bar/Hassio-addons

intercom:
  host: '!secret dahuavto_ip'
  username: '!secret dahuavto_user'
  password: '!secret dahuavto_pass'
mqtt:
  host: '!secret ha_ip'
  port: '1883'
  username: '!secret mqtt_user'
  password: '!secret mqtt_pass'
  topic_prefix: DahuaVTO

Home Assistant Configuration.yaml file

binary_sensor:
  - platform: mqtt
    name: "Doorbell Button State"
    state_topic: 'DahuaVTO/BackKeyLight/Event'
    value_template: '{{ value_json.Data.State }}'
    payload_on: "1"
    payload_off: "0"

Home Assistant Automations

Please see for editor form in the video, below is the text output of those

Doorbell – Ring Chime
- id: 'xxxxxxxxxxxxxx'
  alias: Doorbell - Ring Chime
  description: ''
  trigger:
  - entity_id: binary_sensor.doorbell_button_state
    from: 'off'
    platform: state
    to: 'on'
  condition: []
  action:
  - device_id: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    domain: switch
    entity_id: switch.doorbell_chime
    type: turn_on
  mode: single
Doorbell – Blink Lights
- id: 'xxxxxxxxxxxxxxxx'
  alias: Doorbell - Blink lights
  description: ''
  trigger:
  - entity_id: binary_sensor.doorbell_button_state
    from: 'off'
    platform: state
    to: 'on'
  condition: []
  action:
  - data:
      scene_id: wled_no_doorbell
      snapshot_entities: light.wled
    service: scene.create
  - device_id: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    domain: light
    entity_id: light.wled
    type: turn_off
  - delay: '1'
  - scene: scene.wled_light_solid_red
  - delay: '5'
  - device_id: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    domain: light
    entity_id: light.wled
    type: turn_off
  - delay: '1'
  - scene: scene.wled_no_doorbell
  mode: single

Conclusion

This article will get updated over time as I release more videos. Comments and questions are welcome here or in the video description per video topic!

Exit mobile version