Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notification customization options #61

Open
bobfatherx opened this issue Jul 21, 2023 · 4 comments
Open

Notification customization options #61

bobfatherx opened this issue Jul 21, 2023 · 4 comments

Comments

@bobfatherx
Copy link

bobfatherx commented Jul 21, 2023

First, thanks for crating birdCAGE!

I have birdCAGE notifying Home Assistant via MQTT. All is good, except that I'm not knowledgeable enough to create a HA template to reformat the notification to be more readable when viewed in HA.

Here is an example of a notification that birdCAGE sends:

changed to log level bird: White-winged Dove
Common Name: White-winged Dove
Scientific Name: Zenaida asiatica
Confidence Score: 0.9559
Stream Name: Side Driveway
Time: 2023-07-21 09:34:10

It would be neat to be able to customize this message. For example, to be:

White-winged Dove - Zenaida asiatica - Confidence:0.9559

@matthew73210
Copy link
Contributor

Hey !

I was going to try and get notifications to work via the addon that I helped make.

@bobfatherx
Copy link
Author

Hey !

I was going to try and get notifications to work via the addon that I helped make.

That would be neat. I think with Home Assistant it could just be as easy as writing a template that can ingest the MQTT notification from birdCAGE. However, if the notification could be customized in birdCAGE directly, it could have generality to other notification services.

@mmcc-xx
Copy link
Owner

mmcc-xx commented Jul 23, 2023

I'd rather not build notification customization into birdcage as my gut feeling is that it is a more general capability (reformatting an MQTT message) that could be done somewhere else. I would be open to making it more parse-able so that other software (like the HA addon) could more easily make use of it.

What do you think Matt? Would it be better if the payload was JSON or something like that?

@matthew73210
Copy link
Contributor

Unless I'm mistaken, apprise can output in a json format. So just use apprise as the general notification server and keep it simple. There are a couple templates floating around for Birdpi / apprise / templates so shouldn't be too different.

How much data is easily available for apprise to parse?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants