Home-Assistant

Send a Push-Notification by pushsafer.com out of Home-Assistant to iOS, Android and Windows 10 devices

The Pushsafer service is a platform for the notify component. This allows components to send messages to the user using Pushsafer and their API.

In order to get an private or alias key you need to go to the Pushsafer website and register.

Plugin Page on home-assistant.io: https://home-assistant.io/components/notify.pushsafer/

To use Pushsafer notifications, add the following to your configuration.yamlfile:

# Example configuration.yaml entry
notify:
  - name: NOTIFIER_NAME
    platform: pushsafer
    private_key: ABCDEFGHJKLMNOPQRSTUVXYZ

Configuration variables:

  • name (Optional): Setting the optional parameter name allows multiple notifiers to be created. The default value is notify. The notifier will bind to the service notify.NOTIFIER_NAME.
  • private_key (Required): Your private or alias key. Private key = send the notification to all devices with standard params, alias key send the notification to the devices stored in the alias with predefined params.

To use notifications, please see the getting started with automation page.

from Version 0.62.2, the pushsafer home-assistant plugin supports all pushsafer parameters

Examples

Message to 2 devices with formated text
{
  "title": "Test to 2 devices",
  "message": "Attention [b]bold[/b] text[br][url=https://www.pushsafer.com]Link to Pushsafer[/url]",
  "target": ["1111", "2222"],
  "data": {
    "icon": "2", 
    "iconcolor": "#FF0000",
    "sound": "2",
    "vibration": "1",
    "url": "https://home-assistant.io/",
    "urltitle": "Open Home Assistant",
    "time2live": "0"
  }
}
Message to 1 device with formated text and image from an external URL
{
  "title": "Test to 2 devices",
  "message": "Attention [b]bold[/b] text[br][url=https://www.pushsafer.com]Link to Pushsafer[/url]",
  "target": ["1111", "2222"],
  "data": {
    "icon": "2", 
    "iconcolor": "#FF0000",
    "sound": "2",
    "vibration": "1",
    "url": "https://home-assistant.io/",
    "urltitle": "Open Home Assistant",
    "time2live": "0"
  }
}
Message to 2 devices and 1 device group with formated text and local image
{
  "title": "Test to 3 devices with local image",
  "message": "Attention [i]italic[/i] Text[br][url=https://home-assistant.io/]Testlink[/url]",
  "target": ["1111","2222","gs3333"],
  "data": {
    "icon": "20", 
    "iconcolor": "#FF00FF",
    "sound": "33",
    "vibration": "0",
    "url": "https://home-assistant.io/",
    "urltitle": "Open Home Assistant",
    "time2live": "10",
    "picture1": {
       "path":"C:\\Users\\Kevin\\AppData\\Roaming\\.homeassistant\\image-760-testimage.jpg"
     }
  }
}

For more information about replacing values (title, message, icon, icon color, sound, vibration) in your push notification, check out our API description!


© 2016 - 2024 Pushsafer.com, All rights reserved.