Home Assistant take and send Camera Snapshot via HTML5

Takes a snapshot of a camera, then sends it via HTML5 notification to a notify target

[{"id":"4ecc453b.10a79c","type":"api-call-service","z":"2c85cdb7.894f32","name":"Take Snapshot","server":"33a2704d.0e654","service_domain":"camera","service":"snapshot","data":"{\"entity_id\":\"camera.index\",\"filename\":\"/config/www/snapshot_index.jpg\"}","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":580,"y":2300,"wires":[["36bd89a3.3df5d6"]]},{"id":"36bd89a3.3df5d6","type":"delay","z":"2c85cdb7.894f32","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":800,"y":2300,"wires":[["13a968e2.91c687","eb9d550b.dcff18"]]},{"id":"13a968e2.91c687","type":"api-call-service","z":"2c85cdb7.894f32","name":"Send Snapshot","server":"33a2704d.0e654","service_domain":"notify","service":"html5_main","data":"{\"title\":\"CCTV Snapshot\",\"message\":\"Snapshot of CCTV attached\",\"data\":{\"image\":\"https://domain.com/local/snapshot_index.jpg\"}}","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1020,"y":2300,"wires":[[]]},{"id":"33a2704d.0e654","type":"server","z":"","name":"Home Assistant","legacy":false,"hassio":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true}]

Flow Info

Created 6 years, 3 months ago
Rating: not yet rated

Owner

Actions

Rate:

Node Types

Core
  • delay (x1)
Other

Tags

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