The Pushover Driver is now included as part of the Hubitat Firmware. The Hubitat team included a version of the driver below to simplify the process for setting this up. You do NOT need to add the custom Pushover Driver below. Just be sure your Hubitat hub's firmware is up to date.
UPDATE: IF you want to use some of the enhanced features (since September 2020) of the Pushover driver described below, you will need to use my community driver from me GitHub repository below.
My wife really likes to get a notification whenever the washer or dryer finishes a cycle, and on a busy day, that can mean quite a few messages. I also use notifications to let us know if a door has been left open for too long.
So, based on a tip from @Jonovan.Boutte , I discovered Pushover. I grabbed the ST DTH and cleaned it up a bit for use as a Hubitat Driver. I also simplified it for my needs. One significant addition I made to this version was to add the 'Speech Systhesis' Capability. This allows Rule Machine to 'Speak' a notification via this Pushover Driver. Credit for this idea goes to @mattw! (Note: If you use the 'Speech Synthesis' Capability of this driver, you will still simply get a push notification on your phone/tablet. This driver has nothing to do with Text To Speech (TTS).)
[UPDATE] Rule Machine now has the option to 'Send notification to device(s)?' This is probably the best way to send a request to your Pushover Device(s).
To use this, you'll need a Pushover Account (https://pushover.net) and Mobile App installed on your phones/tablets. You use the same account to sign into the mobile app on all devices. At https://pushover.net, you'll need to 'Create an Application/API Token' which is used to configure the Hubitat Pushover Device's Preferences.
From your account at https://pushover.net
And here is the Pushover Device configuration screen where you will paste in your tokens from your Pushover account.
[Update] I have added an updated screenshot showing all of the new user preferences added by @stephack. Stephan has made some great additions to this driver, exposing many of the Pushover API's options. You can create multiple Pushover devices on your Hubitat hub, each using the same Keys, but with unique options. For example, you could create a Pushover Device for each of your family members' phones, thereby allowing you to select which user(s) get each message.
And finally, here is the Pushover Driver for Hubitat [UPDATE - Driver is now included in the Hubitat firmware. No need to add this to your custom drivers any longer.]
Documentation of available prefix options thanks to @stephack :
- You can now set the default priority of your Pushover Notification in the preferences of the driver. With the Pushover app you can set up different notification sounds and visuals based on the priority of the message. You can create a separate virtual device for each priority level and route notifications accordingly...
- If you are like me and don't want to dig through a stack of virtual devices...you can now also add a prefix to the message you send that would override the default priority to one of your choosing.
[L] - Low
[N] - Normal
[H] - High
E.g.. Message "[H]This is a test" will send "This is a test" with High Priority to your mobile app.
[E] prefix is now used for emergency notifications and requires the following parameters
retry - how often to resend notification until it is acknowledged (in seconds with a minimum of 30 seconds)
expire - timeout for resending notifications if they are never acknowledged (in seconds with a maximum of 10800)
Note: The following features are not included in Hubitat’s built-in driver.
Recent Additions - September 23, 2020
Much thanks to @TMLeafs for the following 3 additions
Added custom title in message by encasing it in ^^
- example ^This is my title^
Added choose sound from message by encasing it in ##
- example #bike#
Added Default title in preferences
An example message:
"[H]^My Title^ My Message #bike#"
The title & sound can go anywhere and in any order in the message except before priority if it used
And, per a request from @jpoeppelman1, I have added the ability to use HTML formatted messaging by adding [HTML] in the message, which can go anywhere and in any order in the message except before priority if it used.
An few example messages (remove the double quotes):
"[M][HTML]This is a <b>BOLD</b> example" "[HTML]<a href="http://example.com/">word</a>"
Recent Addition - September 27, 2020
Much thanks to @s1godfrey for the following addition
- Added ability to send the Pushover Device Name in message by encasing it in **
- example My-iPhone
- or, simply adding "**" to the message will send to all Pushover Devices on the account.
An example message:
"[L]*My-iPhone* My Message" - sends only to "My-iPhone" "[L]** My Broadcast Message" - sends to all registered Pushover devices on the account
Update 11/16/2021 - @tsaaek added ability to change the supplementary URL and URL-Title with prefix/suffiix combinations.
Example: "§[http://example.com](http://example.com/)§ ¤Example¤"
See Pushover: API for more details around the html formatting.