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

Pushover #199

Open
kash1982 opened this issue Feb 12, 2025 · 6 comments
Open

Pushover #199

kash1982 opened this issue Feb 12, 2025 · 6 comments
Labels
feature request New feature or request

Comments

@kash1982
Copy link

Could we get support for pushover to send notification instead as the current way has limitations for text on andriod phones.

@kash1982 kash1982 added the feature request New feature or request label Feb 12, 2025
@valentinfrlch
Copy link
Owner

There are currently no plans to add other ways of sending a notification. Can you describe the current limitations on Android? Maybe there is a way to fix those directly.

@PsychOsmosis
Copy link

Text longer than a few lines gets cut off basically, and there's no way to change that in the Home Assistant settings.

@valentinfrlch
Copy link
Owner

What is your max_tokens set to? This controls how many tokens the model generates. There is probably also a character limit for notification though.

@PsychOsmosis
Copy link

max_token is set as high as the blueprint will allow (100). Could you raise that limit to 5000? That's one thing I did in the past when I edited the blueprint, but I don't want to edit it every time there's an update.

@kash1982
Copy link
Author

It's the character limit on andriod. Drops off at the end which makes you limit to what you can have. I'm using pushover and there's no character limit on there.

Image

@hausmanconsulting
Copy link

After I typed this I realized you may be using the blueprint to generate notifications, so this may not help, but I've typed it so here goes. Everything below relates to using an HA automation and/or script using the notify service.

I got around the two-line Android notification issue (somewhat) by including a link to the HA notification history as an action in my notification:

actions:
      - action: URI
        title: Notification History
        uri: settings://notification_history

If the 2 lines aren't enough, I can tap that in the popup to read the whole thing.

Others have separated the text notification and the image into two separate notifications, but I haven't experimented with that yet. Apparently if you don't send an image, Android will show more (or all) of the text, I think.

My script takes the image and then text output from LLM VIsion (generated_content['response_text'], where generated_content is my response variable from the LLM call) and sends that using the standard HA notification system like this:

data:
  title: "{{ camera_name }}"
  message: "{{ generated_content['response_text'] }}"

(camera_name comes from the automation that calls this)

I wonder if you could use something like that to send a pushover notification (just using whatever mechanism pushover notifications are sent instead of HA notify).

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

No branches or pull requests

4 participants