Giter Site home page Giter Site logo

Comments (15)

meg768 avatar meg768 commented on June 23, 2024

You may be right! Make a pull request and I will merge it.

from homebridge-pushover.

FSTNDonald avatar FSTNDonald commented on June 23, 2024

Hi,

this plugin is the only way for homekit alarm devices to swap from IOS tri-cord notifications (over-heard) to a real alarm sound on iPhone.
... but ... the priority parameter does not work as expected. YOu can specify key words or numbers, the iphone app only uses 'normal' sound.
Furthermore value "2" priority adds a continous repeating sound, which needs to be stopped by the user on the iphone (ref another request.

from homebridge-pushover.

identd113 avatar identd113 commented on June 23, 2024

I do not have any skills to do this, just reporting the issue.

from homebridge-pushover.

FSTNDonald avatar FSTNDonald commented on June 23, 2024

Hi @identd113, sorry, my remark was meant @meg768 (owner of the code to my understanding).
Not sure, whether he is monitoring this thread ...

from homebridge-pushover.

meg768 avatar meg768 commented on June 23, 2024

The documentation is a bit confusing. Priority "high" means that a message should be sent even though the master switch is turned off. It has nothing to do with Pushover priority. All messages are sent with priority 0 to Pushover. This is of course wrong.

from homebridge-pushover.

meg768 avatar meg768 commented on June 23, 2024

So, if I changed the "priority" property to be the actual integer Pushover value, would that be OK? Translating "lowest" to -2, "low" to -1, "normal" to 0 and "high" to 1. It would be a bit more understandable for Pushover users. When should a message be sent when the master switch is turned off? My suggestion is when set to "normal" or "high", or priority >= 0. Would appreciate your input.

from homebridge-pushover.

identd113 avatar identd113 commented on June 23, 2024

the "priority" in the config is ambiguous. I would leave the current priority to mean whatever it means now, and add a new key/value pair to set message priority. If no key is used, the default 0 is used. Also "2" is emergency priority, which should be included as a valid option.
Setting a new key would prevent this being a breaking change.

from homebridge-pushover.

FSTNDonald avatar FSTNDonald commented on June 23, 2024

Hi, @meg768
not sure, what "master switch" refers to ...? Same what is the intent of priority in current implementation, a master is a master ...?

Let me explain my plan please.
My setup: homebridge (RasPi) with pushover plugin, offering "virtual buttons" to automations (on iOS), which want to signal an event on iOS. The standard iOS sound is tri-cord, which is over-heard, thus pushover app.

My intention is to signal an event such way, that the settings of pushover (in the iOS app) for "alert setting", especially critical alerts und volume (... deafening) apply.

In case a sensor detects such alarm event, it shall trigger the respective message (refer name: ALARM in attached homebridge config file for example) and the iPhone shall play the sound as per setting for alerts.
As the iOS app has 2 sounds only: "default" and "high-priority", and for "high-priority" sound in addition a switch to make it a "critical-alert" with individual volume, there are apparently only 2 alert types in the homebrige config: default and high-priority.
I would of course prefer to have the full manifold of settings available, but that would require to change the iOS app also I think.
BR Donald

current homebridge config, not working as expected:
{
"platform": "Pushover",
"name": "Messages",
"pushover": {
"user": "u.......1c19",
"token": "......."
},
"messages": [
{
"name": "Info 1",
"message": "Information 1"
},
{
"name": "Info 2",
"message": "Information 2"
},
{
"name": "ALARM",
"message": "Security Alarm",
"priority": "high"
}
]
}

from homebridge-pushover.

identd113 avatar identd113 commented on June 23, 2024

Another value needs to get passed in the POST. Pushover should always provide some value, and have a corresponding config line item to set this value.

Lowest Priority (-2)

When the priority parameter is specified with a value of -2, messages will be considered lowest priority and will not generate any notification. On iOS, the application badge number will be increased.

Low Priority (-1)

Messages with a priority parameter of -1 will be considered low priority and will not generate any sound or vibration, but will still generate a popup/scrolling notification depending on the client operating system. Messages delivered during a user's quiet hours are sent as though they had a priority of (-1).

Normal Priority (0)

Messages sent without a priority parameter, or sent with the parameter set to 0, will have the default priority. These messages trigger sound, vibration, and display an alert according to the user's device settings. On iOS, the message will display at the top of the screen or as a modal dialog, as well as in the notification center. On Android, the message will scroll at the top of the screen and appear in the notification center.

If a user has quiet hours set and your message is received during those times, your message will be delivered as though it had a priority of -1.

High Priority (1)

Messages sent with a priority of 1 are high priority messages that bypass a user's quiet hours. These messages will always play a sound and vibrate (if the user's device is configured to) regardless of the delivery time. High-priority should only be used when necessary and appropriate.

High-priority messages are highlighted in red in the device clients.

Emergency Priority (2)

Emergency-priority notifications are similar to high-priority notifications, but they are repeated until the notification is acknowledged by the user. These are designed for dispatching and on-call situations where it is critical that a notification be repeatedly shown to the user (or all users of the group that the message was sent to) until it is acknowledged. The first user in a group to acknowledge a message will cancel retries for all other users in the group.

Applications sending emergency notifications are issued a receipt that can be used to get the status of a notification and find out whether it was acknowledged, or automatically receive a callback when the user has acknowledged the notification.

-https://pushover.net/api

from homebridge-pushover.

Galapgs avatar Galapgs commented on June 23, 2024

You may be right! Make a pull request and I will merge it.

Done ;-) Also included to add a title.
Emergency priority (2) throws an error though: expire must be supplied with priority=2

from homebridge-pushover.

meg768 avatar meg768 commented on June 23, 2024

I will fix it tomorrow, hopefully. 😊

from homebridge-pushover.

meg768 avatar meg768 commented on June 23, 2024

Fixed. Version 1.0.14 on npm. Default is retry:60 and expire:3600

from homebridge-pushover.

Galapgs avatar Galapgs commented on June 23, 2024

Thanks!

from homebridge-pushover.

meg768 avatar meg768 commented on June 23, 2024

Need to update the documentation regarding this...

from homebridge-pushover.

identd113 avatar identd113 commented on June 23, 2024

I believe documentation still needs to be done but otherwise this can be closed as fixed

from homebridge-pushover.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.