Xiaomi Gateway Doorbell with Camera Image and Pushover Message

This will take a snapshot from a camera and save it in to a folder (in my case a Onedrive local copy). It will then send a link to the folder the image is in online to me over pushover.

[{"id":"7995a1a6.a2f5e","type":"switch","z":"8508cc29.fd96b","name":"Doorbell","property":"payload.entity_id","propertyType":"msg","rules":[{"t":"eq","v":"binary_sensor.switch_158d00018b4254","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":280,"y":560,"wires":[["5cf06743.fb1228"]]},{"id":"5cf06743.fb1228","type":"switch","z":"8508cc29.fd96b","name":"Click Type","property":"payload.event.click_type","propertyType":"msg","rules":[{"t":"eq","v":"single","vt":"str"},{"t":"eq","v":"double","vt":"str"},{"t":"eq","v":"long_click_press","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":470,"y":560,"wires":[["b4e8dc18.1fad9","ef7eee3e.76a19"],["b4e8dc18.1fad9","ef7eee3e.76a19"],["b4e8dc18.1fad9","ef7eee3e.76a19"]]},{"id":"ef7eee3e.76a19","type":"api-call-service","z":"8508cc29.fd96b","name":"Doorbell Sound","server":"480a9002.9b992","service_domain":"xiaomi_aqara","service":"play_ringtone","data":"{\"gw_mac\":\"34CE00923DDC\",\"ringtone_id\":\"10\",\"ringtone_vol\":\"70\"}","render_data":false,"mergecontext":"","x":720,"y":600,"wires":[[]]},{"id":"419af23a.2637ac","type":"server-events","z":"8508cc29.fd96b","name":"All Events","server":"480a9002.9b992","x":120,"y":560,"wires":[["7995a1a6.a2f5e"]]},{"id":"b4e8dc18.1fad9","type":"template","z":"8508cc29.fd96b","name":"Image","field":"image","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"http://192.168.2.136:88/cgi-bin/CGIProxy.fcgi?cmd=snapPicture2&usr=danmed&pwd=dm312217","output":"str","x":690,"y":520,"wires":[["427d93df.88557c"]]},{"id":"5abb98c5.c9b3d8","type":"pushover api","z":"8508cc29.fd96b","keys":"e76b6186.47241","title":"Doorbell","name":"Pushover","x":1080,"y":520,"wires":[]},{"id":"734e86a1.3ffbb8","type":"template","z":"8508cc29.fd96b","name":"Message","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"Someone is at the door!","output":"str","x":940,"y":520,"wires":[["5abb98c5.c9b3d8"]]},{"id":"427d93df.88557c","type":"template","z":"8508cc29.fd96b","name":"Title","field":"title","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"Doorbell","output":"str","x":810,"y":520,"wires":[["734e86a1.3ffbb8"]]},{"id":"480a9002.9b992","type":"server","z":"","name":"Home Assistant","legacy":false,"hassio":false,"rejectUnauthorizedCerts":false,"ha_boolean":"y|yes|true|on|home|open"},{"id":"e76b6186.47241","type":"pushover-keys","z":"","name":"My Pushover Key"}]

Flow Info

Created 7 years, 9 months ago
Updated 7 years ago
Rating: not yet rated

Owner

Actions

Rate:

Node Types

Core
  • switch (x2)
  • template (x3)
Other
  • api-call-service (x1)
  • pushover api (x1)
  • pushover-keys (x1)
  • server (x1)
  • server-events (x1)

Tags

  • home-assistant
  • xiaomi
  • gateway
  • camera
  • snapshot
  • pushover
  • doorbell
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option