mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 07:17:14 +00:00
Added blog post about PushBullet
This commit is contained in:
parent
07e481707e
commit
9f201c0b2d
@ -5,7 +5,7 @@ description: "Overview of how the internet of things relates to home control, ho
|
|||||||
date: 2014-12-26 10:23:13 -0800
|
date: 2014-12-26 10:23:13 -0800
|
||||||
date_formatted: December 26, 2014
|
date_formatted: December 26, 2014
|
||||||
comments: true
|
comments: true
|
||||||
categories:
|
categories: architecture
|
||||||
---
|
---
|
||||||
|
|
||||||
The internet has been buzzing over the last year about home automation. A lot of different terms fly around like the internet of things, home automation and the smart home.
|
The internet has been buzzing over the last year about home automation. A lot of different terms fly around like the internet of things, home automation and the smart home.
|
||||||
|
@ -0,0 +1,46 @@
|
|||||||
|
---
|
||||||
|
layout: post
|
||||||
|
title: "Hello PushBullet, nice talking to you"
|
||||||
|
description: "Introducing the new notify component and PushBullet platform"
|
||||||
|
date: 2015-01-04 13:29:07 -0800
|
||||||
|
date_formatted: January 4, 2015
|
||||||
|
comments: true
|
||||||
|
categories: component
|
||||||
|
---
|
||||||
|
|
||||||
|
One of the things that was missing in Home Assistant for a while was a way to communicate with users. Wouldn't it be nice to get a message when important events happen like the lights being turned on while no one is home? Since the Home Assistant frontend runs as a web application on the phone, we have no way to bring ourselves to the front. This is where the new notify component comes in, powered by PushBullet.
|
||||||
|
|
||||||
|
The new notify component will take in messages and tells them to the user. For now this will be powered by the very awesome [PushBullet](https://www.pushbullet.com/) but any other messaging platform can be easily added.
|
||||||
|
|
||||||
|
<p class='img'>
|
||||||
|
<img src='{{site_root}}/images/screenshots/pushbullet_moto360.png' />
|
||||||
|
A message triggered by the simple_alarm component is shown by PushBullet on the Moto360.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
Read on to learn how to enable the notify component and integrate it with other components.
|
||||||
|
|
||||||
|
<!--more-->
|
||||||
|
|
||||||
|
### Enabling the notify component
|
||||||
|
|
||||||
|
To enable the new notify component, add the following to your `home-assistant.conf`:
|
||||||
|
|
||||||
|
```
|
||||||
|
[notify]
|
||||||
|
platform=pushbullet
|
||||||
|
api_key=ABCDEFGHJKLMNOPQRSTUVXYZ
|
||||||
|
```
|
||||||
|
|
||||||
|
You can get your api key from [your account page on PushBullet.com](https://www.pushbullet.com/account).
|
||||||
|
|
||||||
|
### Sending messages from your component
|
||||||
|
|
||||||
|
To be able to send messages, the notify component has to be loaded and initialized successfully.
|
||||||
|
|
||||||
|
```python
|
||||||
|
import homeassistant.loader as loader
|
||||||
|
|
||||||
|
def setup(hass, config):
|
||||||
|
notify = loader.get_component('notify')
|
||||||
|
notify.send_message(hass, "Hello from my component!")
|
||||||
|
```
|
BIN
source/images/screenshots/pushbullet_moto360.png
Normal file
BIN
source/images/screenshots/pushbullet_moto360.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 48 KiB |
Loading…
x
Reference in New Issue
Block a user