Last active
September 26, 2021 05:22
-
-
Save shahonseven/6175d869a369eab8beb865ef53994ed0 to your computer and use it in GitHub Desktop.
HA Doorbell TV Notification
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- id: '1' | |
alias: Doorbell | |
description: '' | |
trigger: | |
- platform: event | |
event_type: sonoff.remote | |
event_data: | |
name: Doorbell | |
condition: [] | |
action: | |
- service: camera.snapshot | |
target: | |
entity_id: camera.front_camera | |
data: | |
filename: /media/capture.jpeg | |
- delay: | |
hours: 0 | |
minutes: 0 | |
seconds: 1 | |
milliseconds: 0 | |
- service: notify.unifi_tv_box | |
data: | |
message: Ada orang diluar | |
data: | |
fontsize: max | |
duration: 10 | |
file: | |
path: /media/capture.jpeg | |
interrupt: 1 | |
- service: media_player.play_media | |
data: | |
media_content_type: audio/mp3 | |
media_content_id: media-source://media_source/local/audio/DingDong.mp3 | |
target: | |
entity_id: media_player.speaker_group |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sonoff: | |
username: EWELINK_USERNAME | |
password: EWELINK_PASSWORD | |
reload: always | |
mode: auto | |
rfbridge: | |
Doorbell: | |
device_class: none | |
timeout: 1 | |
camera: | |
- platform: generic | |
still_image_url: "http://IP_ADDRESS/cgi-bin/api.cgi?cmd=Snap&channel=0&rs=<RANDOM_STRING>&user=<USERNAME>&password=<PASSWORD>" | |
stream_source: rtsp://USERNAME:PASSWORD@IP:554//h264Preview_01_main | |
name: "Front Camera" | |
verify_ssl: false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment