Frigate Mobile App Notifications

oh OK, that must be annoying for you. Thanks for replying. Hopefully, it will start to work again in the future.

Is it possible to choose other presence filter than ā€œhomeā€. I am using same system at summer cottage and it would be nice to choose ā€œcottageā€.

Once imported, the blueprint lives in your config directory under blueprints/hunterjm. You can make the necessary changes to the automation there.

Does anyone know where to insert the following to make Android notifications quicker? I have set this up before on my manual alerts, but not sure where to insert this for sure on the frigate_notifications.yaml.

Thanks for the great blueprint!

Any luck getting this set up for Telegram?

I have a basic automation that sends me a Snapshot and then 45 seconds later the video clip ( with telegram_bot.send_photo and send_video ), but I would love to see a more detailed automation in which I can specify what camera, object, zone, etc.

No sorry. Itā€™s a great blueprint for simple alerting but Iā€™m back with Node Red and Telegram now. The bit I was needing was a rate limiter which I now have in my flow so I donā€™t get swamped with alerts. Happy to share if NR is your thing.

A blueprint is essentially a yaml automation with variables. It should be relatively straight forward to swap out the mobile app notification service with the telegram one in this blueprint. The aforementioned rate limiting is also already built in in the form of cooldown/silence on the blueprint.

What causes this condition?


'{{ type != ''end'' }}'

Iā€™ve noticed my automation always fails with this at the first step.

I would be grateful if you shared the NR Flow.

Would save me from staying up all night, dancing in front of one of my cameras trying to flesh out the yaml automation.
Iā€™m still tip-toeing my way around learning basic coding, and I learn the best reading from solid examples.

  • V
2 Likes

I started to attempt this.
Had the blueprint and a copy side by side and my yaml automation I have for Telegram already working for reference. And it all just blurred together, lol. Might need some sleep to attempt it again, but a working NR flow I canā€™t say no to in the meantime.

Ok, first up - apologies for the size of the screenshot. I believe in making code as simple to understand as possible and that applies to my NR flows!

If you want, I can dump the code for any part of this that youā€™re interested in but I thought the diagram would be a good start.

2 Likes

Love it, especially the dog barking lol. And now Iā€™m curious if I could send the videos to a Lenovo Assistant hub I have.

If you donā€™t mind, could you send the bottom flow from beginning to end?

When I tried this myself in NR, I couldnā€™t make it happen. Thatā€™s why I defaulted back to the yaml automation.

Now I feel a bit silly - how do we post code in these forums? Is there a protocol other than just a plain cut/paste?

Iā€™ve always seen and have used the insert code button in these reply boxes.

Looks like this </>

im getting this same error. i cant find a fix for it

Well that was easy! How did I miss that button??

[{"id":"3437f564.791a0a","type":"mqtt in","z":"90d76327.62412","name":"MQTT Frigate Person - Garage","topic":"frigate/garage_cam/person","qos":"2","datatype":"auto","broker":"ac7e9508.9fb0c8","nl":false,"rap":false,"x":150,"y":380,"wires":[["1f4680c9.e8694f"]]},{"id":"1f4680c9.e8694f","type":"switch","z":"90d76327.62412","name":"ON","property":"payload","propertyType":"msg","rules":[{"t":"gt","v":"0","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":370,"y":360,"wires":[["550b4802.482818"]]},{"id":"550b4802.482818","type":"delay","z":"90d76327.62412","name":"Limit Messages","pauseType":"rate","timeout":"1","timeoutUnits":"seconds","rate":"1","nbRateUnits":"20","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":520,"y":360,"wires":[["4a837b8e.3714b4"]]},{"id":"4a837b8e.3714b4","type":"api-current-state","z":"90d76327.62412","name":"Someone Home?","server":"7b94a3a0.0f0d0c","version":1,"outputs":2,"halt_if":"true","halt_if_type":"bool","halt_if_compare":"is","override_topic":false,"entity_id":"binary_sensor.someone_home","state_type":"habool","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":710,"y":360,"wires":[[],["cf4ad7a1.b68d18"]]},{"id":"cf4ad7a1.b68d18","type":"api-current-state","z":"90d76327.62412","name":"Object detection on?","server":"7b94a3a0.0f0d0c","version":1,"outputs":2,"halt_if":"true","halt_if_type":"bool","halt_if_compare":"is","override_topic":false,"entity_id":"input_boolean.object_detect","state_type":"habool","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":940,"y":360,"wires":[["6ce0e1a8.d8a2"],[]]},{"id":"6ce0e1a8.d8a2","type":"change","z":"90d76327.62412","name":"Rewrite Payload","rules":[{"t":"set","p":"topic","pt":"msg","to":"$.topic & \"/snapshot\"","tot":"jsonata"},{"t":"set","p":"camera_name_person","pt":"global","to":"$match(topic, /frigate\\/(.*?)\\/./).groups[0].$string()","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1100,"y":240,"wires":[["48f5ced3.1dce5"]]},{"id":"48f5ced3.1dce5","type":"mqtt-in-dynamicsub","z":"90d76327.62412","name":"MQTT Grab Snapshot","qos":"2","datatype":"auto","unsubscribe-after-first-msg-recv":true,"debug-subscribe":false,"broker":"ac7e9508.9fb0c8","x":1300,"y":240,"wires":[["4d265d9e.668cf4"]]},{"id":"4d265d9e.668cf4","type":"file","z":"90d76327.62412","name":"Write JPG","filename":"/config/www/snapshots/frigate_snapshot.jpg","appendNewline":false,"createDir":false,"overwriteFile":"true","encoding":"none","x":1510,"y":240,"wires":[["15d26fbe.99896"]]},{"id":"15d26fbe.99896","type":"delay","z":"90d76327.62412","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":1140,"y":300,"wires":[["5b36d6e0.265648"]]},{"id":"5b36d6e0.265648","type":"function","z":"90d76327.62412","name":"Set Payload","func":"msg.caption = \"Person/car detected\"\nmsg.filename = \"/config/www/snapshots/frigate_snapshot.jpg\"\n\nmsg.payload = { \n    caption : msg.caption,\n    photo : msg.filename\n}\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1290,"y":300,"wires":[["9033712d.916d2"]]},{"id":"9033712d.916d2","type":"telegrambot-payload","z":"90d76327.62412","name":"Send to Telegram","bot":"f0b90fea.83063","chatId":"xxxxxxxx","sendMethod":"sendPhoto","payload":"","x":1470,"y":300,"wires":[[]]},{"id":"ac7e9508.9fb0c8","type":"mqtt-broker","name":"Mosquito MQTT","broker":"localhost","port":"1883","clientid":"","usetls":false,"protocolVersion":"4","keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willPayload":"","willMsg":{},"sessionExpiry":""},{"id":"7b94a3a0.0f0d0c","type":"server","name":"Home Assistant"},{"id":"f0b90fea.83063","type":"telegrambot-config","botname":"Rebem Bot","usernames":"","chatIds":"","pollInterval":"300"}]
3 Likes

cybrwoof - I used this as a basis for my own blueprint. One of the changes was to speed up the notifications on Android. After updating it the notifications come in pretty much immediately opposed to anywhere between 2 and 20 mins late as it was before.

If you just want to speed up notifications put the below 2 lines between data: and tag: at lines 144, 156, 183 and 208.

ttl: 0
priority: high
6 Likes

Hi!

It seems that I get the REST error ā€œREST result could not be parsed as JSONā€ each time the automation triggers.
Do you have any thoubleshoot method for that ?

Regards,

Thank you @Rebem

Iā€™m going to try this in a couple hours when I get home.
Truly appreciate it.

im actually back to having this error after a full re-install of frigate and this automation. No idea how to fix it at this point.