Skip to content

Sending SMS through Pushbullet using their Android integration

Notifications You must be signed in to change notification settings

fondberg/hass_pushbullet_sms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Sending SMS through Pushbullet using their Android integration

This script doesn't require your Home-Assistant to be configured with Pushbullet but it is highly recommended because then you can send notifications too, see Pushbullet component for more information.

For more information see the Pushbullet API documentation for SMS

Installation

To install download the script to <home-assistent>:/config/pushbullet_sms.sh and make sure to make it executable (chmod +x pushbullet_sms.sh).

Oneliner install on the home-assistent:

$ cd /config && curl https://raw.githubusercontent.com/fondberg/hass_pushbullet_sms/master/pushbullet_sms.sh > pushbullet_sms.sh && chmod +x pushbullet_sms.sh

Get device iden and other info from pushbullet

$ curl --header 'Access-Token: <your_access_token_here>' https://api.pushbullet.com/v2/devices | jq .

Configuration

  1. Edit these variables in the script for your Pushbullet integration:
# Same as in the normal Hass.io integration
AUTH_TOKEN=''
# The Android device which has SMS integration on 
TARGET_DEVICE_IDEN=''
# This seems it can be whatever but it is required
SOURCE_USER_IDEN='niklas'
# The numbers you want to send SMS to
NUMBERS=( "+46987654321" "+46123456798" )

  1. Add the script to your configuration Add the script to configuration.yaml:
shell_command:
  pushbullet_sms: bash /config/pushbullet_sms.sh "{{message}}"

Use in automation

Example automation

alias: Send pushbullet sms
trigger:
  platform: sun
  event: sunset
action:
  - service: shell_command.pushbullet_sms
    data:
      message: "Sun has set"


MIT License - Copyright (c) 2019 Niklas Fondberg [email protected]

About

Sending SMS through Pushbullet using their Android integration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages