Hi first of all I wasn’t too sure which category to put this in but here goes.
When someone rings my doorbell which is an ESP8266 which fires off a MQTT message, i’d like my camera which points at the door to take a snapshot and send it as an IOS notification using the home assistant app to my iPhone.
I have had it setup up previously where it sends a notification with a live feed for the camera, which is no good for me as the person that rung the bell may have left by the time I get to view the notification.
I know there is several threads relating to this already but none seem to have a conclusive answer and the ones I’ve tried just send a notification without a snapshot.
My system is based on ubuntu server with everything in docker containers, using the code below the snapshot gets taken and written to the correct path.
- id: test alias: test trigger: - platform: mqtt topic: HOME/doorbell/status action: - service: camera.snapshot data: entity_id: camera.hallway filename: /tmp/snapshot1.jpg - delay: 5 - service: notify.ios_scotts_iphone data: title: Doorbell message: Somebody is at the door data: photo: - file: /tmp/snapshot1.jpg capture: Snapshot
This was mostly copied and pasted and then adjusted to fit my use case, I’ll eventually move this automation over to node-red as I like to keep the frontend clean.