A WLED‑powered light ring for your doorbell – visual notifications from Home Assistant

I have a 3D‑printed light that gives a visual indication whenever someone rings my doorbell.

Using a Home Assistant automation, I turn this light on whenever my Reolink doorbell is pressed. This way, I can see when someone rings the doorbell even when it’s late and the chime is turned off, when I’m in the back garden and can’t hear it very well, or in other situations where sound alone isn’t enough.

In my case i used the STARGATE - Fancy Led Lamp from Thingiverse, but basically any lamp wil do. 

In Home Assistant i use this automation:
alias: Doorbell
description: ''
triggers:
  - type: turned_on
    device_id: [DEVICE ID]
    entity_id: [ENTITY ID]
    domain: binary_sensor
    trigger: device
conditions: []
actions:
  - action: reolink.play_chime
    data:
      device_id:[DEVICE ID]
      ringtone: citybird
  - target:
      entity_id: [ENTITY ID]
    data:
      rgb_color:
        - 255
        - 0
        - 0
      brightness: 255
    action: light.turn_on
  - variables:
      base_dir: /config/www/camera_snapshots/doorbell
      ts: '{{ now().strftime(''%Y-%m-%d_%H-%M-%S'') }}'
      ts_filename: '{{ base_dir }}/{{ ts }}.jpg'
      last_file: '{{ base_dir }}/last.jpg'
      ts_url: /local/camera_snapshots/doorbell/{{ ts }}.jpg
  - data:
      filename: '{{ ts_filename }}'
    target:
      device_id: [DEVICE ID]
    action: camera.snapshot
  - delay:
      hours: 0
      minutes: 0
      seconds: 1
      milliseconds: 0
  - action: shell_command.copy_image_last
    data:
      src: '{{ ts_filename }}'
      dst: '{{ last_file }}'
  - data:
      message: Er staat iemand aan de deur
      data:
        image: '{{ ts_url }}'
        notification_icon: mdi:mailbox-up-outline
      title: Deurbel
    action: notify.mobile_app_sm_s901b
  - delay:
      hours: 0
      minutes: 0
      seconds: 11
      milliseconds: 0
  - target:
      entity_id: [ENTITY ID]
    action: light.turn_off
    data: {}
mode: single

Find me online

neomess.nl
github.com/neomess


Special thanks

home-assistant.io
kno.wled.ge (WLED)
Pexels.com for stock photo's

Contact

Email to info@myprojects.nl or ask your question using the form below.