Frigate Mobile App Notifications 2.0

Cheers, fixed that too. Just can’t upload to github til i get home.

correct. it requires an extra if statement i haven’t implemented on the others yet. i didn’t think it was too restrictive to only have it on the last button but if you have a preference let me know.

@petro my bad, I thought I posted it in the frigate mega thread

1 Like

Then why did you post it in frigate notifications blueprint in the first place?

@SgtBatten, is there any way to make the 3rd action button optional? Everything I need to do can be done with the two buttons. The 3rd makes the wording on the other two truncated.

Tried this script and it replaced the contents of Stable.yaml and Beta.yaml with “Error 404” as the only thing in the yaml files. Had to redownload again.

Set both the text and url of any action button to empty strings in yaml editing mode. This will disable it and effectively gives you one less button.

E.g url_3: "" and button_3: ""

Awww, didn’t think about yaml mode. Thank you!

No worries mate.

Do I place it under the input: tag or is it even indented?

Yes indented the same as any other input.

If you are unsure, select anything other than the default for that option in UI mode and it will appear in the yaml, indented correctly for you. Just replace the text with “”

Hello,

I share it before, you mean this correct?

Thank you

Maybe I misunderstood. Are you saying no-one is home and it is an internal cam do there no reason for it to be triggering on its own, but you want to test if it would work?

Yes no one home and i want test it if wotk or not (:

Understood. You need to publish an MQTT message in the frigate/events topic that looks like this.

Change the camera name to room_01 in both before and after sections, and change the type at the top to “new”

Where I find frigate/events in home assistant?
In automation?

{
  "type": "new", // new, update, end
  "before": {
    "id": "1607123955.475377-mxklsc",
    "camera": "room_01",
    "frame_time": 1607123961.837752,
    "snapshot_time": 1607123961.837752,
    "label": "person",
    "sub_label": null,
    "top_score": 0.958984375,
    "false_positive": false,
    "start_time": 1607123955.475377,
    "end_time": null,
    "score": 0.7890625,
    "box": [424, 500, 536, 712],
    "area": 23744,
    "ratio": 2.113207,
    "region": [264, 450, 667, 853],
    "current_zones": ["driveway"],
    "entered_zones": ["yard", "driveway"],
    "thumbnail": null,
    "has_snapshot": false,
    "has_clip": false,
    "stationary": false, // whether or not the object is considered stationary
    "motionless_count": 0, // number of frames the object has been motionless
    "position_changes": 2 // number of times the object has moved from a stationary position
  },
  "after": {
    "id": "1607123955.475377-mxklsc",
    "camera": "room_01",
    "frame_time": 1607123962.082975,
    "snapshot_time": 1607123961.837752,
    "label": "person",
    "sub_label": null,
    "top_score": 0.958984375,
    "false_positive": false,
    "start_time": 1607123955.475377,
    "end_time": null,
    "score": 0.87890625,
    "box": [432, 496, 544, 854],
    "area": 40096,
    "ratio": 1.251397,
    "region": [218, 440, 693, 915],
    "current_zones": ["yard", "driveway"],
    "entered_zones": ["yard", "driveway"],
    "thumbnail": null,
    "has_snapshot": false,
    "has_clip": false,
    "stationary": false, // whether or not the object is considered stationary
    "motionless_count": 0, // number of frames the object has been motionless
    "position_changes": 2 // number of times the object has changed position
  }
}

Like this ?

You need a program that can publish mqtt messages. Mqtt explorer is an add-on you might be able to use.

Im happy with it on the third button so doesnt bother me, but I guess if its easy enough it might help others or people that only want 2 buttons. A thought that someone else mentioned maybe even a blank or none option so it sets it to “” instead of editing yaml?

I had this built and was about to publish it on GitHub a few days ago but decided to test it.

Unfortunately it doesn’t work as it doesn’t save to the yaml properly (meaning the default value it used)

But now as I’ve just written this I realise I can make the defaults blank. And everyone would then need to select their preferred options for all buttons again.

Edit. Looks like someone is able to fix my bug report about being unable to save inputs as empty. so soon you will actually be able to save the blank input field using the UI editor Fix blueprint script editor defaults handling by karwosts · Pull Request #16196 · home-assistant/frontend · GitHub

Hey,

thanks for your hard work!

In the blueprint from AngellusMortis, its possible to get an * Include a playback video leading up the doorbell ring. Note May significantly delay the receiving of the notification. Is this also possible to bring this in your blueprint with an Android device?

thanks

I’ve had a quick look and am curious if the existing ability to view the clip is insufficient?
I can certainly add the clip to the notification with an optional video toggle easy enough. Long clips could exceed the 50MB limit though depending on the quality of the camera.