IndigoDomotics / indigo-pushover

Indigo plugin to send push notifications via Pushover.
MIT License
17 stars 11 forks source link

Feature Request: Multiple API Tokens #29

Closed whmoorejr closed 3 years ago

whmoorejr commented 5 years ago

I'm pretty much using Pushover as my goto notification platform now. Most of my notifications, however, are scripted to take advantage of using multiple API tokens. I've set up several applications in my pushover account for different types of events.... Motion, Access Control, Climate, Emergency, Indigo.

This way I can group notifications and the initial image is specific to the event category. Previously, I would get my indigo icon followed by whatever message or image. Now I can get a specific icon pop up on my phone / watch first, followed by the message.

I think it's a good way to prioritize. Don't know if it's possible to add multiple pushover applications to your plugin so when you go to send, you can pick from a dropdown of your different application names.

Anyway, just a thought.

FlyingDiver commented 5 years ago

The UI to maintain the list of tokens is the hard part. I'll look into it.

whmoorejr commented 5 years ago

Very cool. Thank you

On Jun 18, 2019 at 6:21 PM, <Joe Keenan (mailto:notifications@github.com)> wrote:

The UI to maintain the list of tokens is the hard part. I'll look into it.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub (https://github.com/IndigoDomotics/indigo-pushover/issues/29?email_source=notifications&email_token=AF2IS3QEDT47MFAMJX4UPJLP3FUWHA5CNFSM4HZEFM2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYAHPSY#issuecomment-503347147), or mute the thread (https://github.com/notifications/unsubscribe-auth/AF2IS3WJWX4ILWUE4MGLK4LP3FUWHANCNFSM4HZEFM2A).

FlyingDiver commented 5 years ago

So, there's two pieces of data used to send a notification. The "User Key" and the "API Token". Does the user key stay the same and only the API Token change?

whmoorejr commented 5 years ago

Hey Joe,

Correct, I’m only changing the API Token… the user key stays the same.

But that did send me on a quest… from pushover.net http://pushover.net/, I set up group keys to have a separate user key for clusters (my devices, wife’s devices, domopads, computers). But I don’t see a benefit to doing a group message this way versus just doing a coma separated list of device names…. Unless there is someone using indigo on more of a global Muti-user scale where a group can be a collection of several users, not just several devices from one user.

On Jun 18, 2019, at 8:40 PM, Joe Keenan notifications@github.com wrote:

So, there's two pieces of data used to send a notification. The "User Key" and the "API Token". Does the user key stay the same and only the API Token change?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/IndigoDomotics/indigo-pushover/issues/29?email_source=notifications&email_token=AF2IS3QTMQKUGUUA2W7GXFTP3GE7XA5CNFSM4HZEFM2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYANUKA#issuecomment-503372328, or mute the thread https://github.com/notifications/unsubscribe-auth/AF2IS3XODUU635VTHOOAJWLP3GE7XANCNFSM4HZEFM2A.

mlamoure commented 4 years ago

I know this is 7 months ago you posted this question, but you may be able to accomplish what you need via the "device" option in a pushover event in Indigo. By default, the notification goes to all devices, unless you specify a sub-set. Also the priority will give you a different visual for higher priority alerts. I just checked and, yes, you can technically create multiple Apps in Pushover for Indigo, I dont think many are using the plugin / Pushover in this way.

FlyingDiver commented 4 years ago

Sooner or later this one will bubble up to the top. If it's still needed.

FlyingDiver commented 3 years ago

Is this still needed? I'm trying to clear up my issue backlog and I'll want to get this done if there's still a need.

whmoorejr commented 3 years ago

I think I'm the only one that uses multiple pushover apps to separate my pushover messages by subject.... which I currently do via python. So, I need it, but I don't need it to be a part of your plugin. I use the plugin for all my general home automation notifications.
IMG_0128

FlyingDiver commented 3 years ago

Can you post the script you use to send them separately?

jcs commented 3 years ago

@whmoorejr Please don't publicly post Pushover API tokens.

FlyingDiver commented 3 years ago

I grabbed the file and deleted the tokens.

whmoorejr commented 3 years ago

Ok, good. I deleted it from my post above. Thanks jcs for pointing it out. (At least I remembered to take out the username and password for my cameras.) :-)

FlyingDiver commented 3 years ago

Try https://github.com/IndigoDomotics/indigo-pushover/releases/tag/1.6.0

FlyingDiver commented 3 years ago

Released for testing. Submit bugs in new issues.