Just /npc/ (where I used to be able to edit files).
You edit the message in doorbell.sh on the doorbell to reflect your username and password, and the IP of your MQTT Broker, then in Home Assistant you can create an Automation with trigger MQTT, topic Home/Groundfloor/Outside/Doorbell followed by whatever you want when someone rings your doorbell.
Something like this:
Code:
alias: Doorbell_Notify
description: ''
trigger:
- platform: mqtt
topic: Home/Groundfloor/Outside/Doorbell
condition: []
action:
- service: script.turn_on
target:
entity_id: script.doorbell_sonos
- service: camera.snapshot
target:
entity_id:
- camera.silfhout_camera_front_doorbell
data:
filename: /media/tmp/snapshot_silfhout_door.jpg
- service: notify.mobile_app_oneplus_9_pro
data:
message: Somebody is at the door!
title: Dingdong
data:
delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 500
channel: Doorbell
ttl: 0
priority: high
image: /media/local/tmp/snapshot_silfhout_door.jpg
- service: notify.mobile_app_iphone
data:
message: Somebody is at the door!
title: Dingdong
data:
delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 500
entity_id: camera.silfhout_door
image: /media/local/tmp/snapshot_silfhout_door.jpg
- service: media_player.media_pause
target:
entity_id: media_player.lg_webos_smart_tv
mode: parallel
max: 10