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 but any other messaging platform can be easily added.
A message triggered by the simple_alarm component is shown by PushBullet on the Moto360.
Read on to learn how to enable the notify component and integrate it with other components.
To enable the new notify component, add the following to your
[notify] platform=pushbullet api_key=ABCDEFGHJKLMNOPQRSTUVXYZ
You can get your api key from your account page on PushBullet.com.
To be able to send messages, the notify component has to be loaded and initialized successfully.
import homeassistant.loader as loader def setup(hass, config): notify = loader.get_component('notify') notify.send_message(hass, "Hello from my component!")