Motion Sensor and Automation Component

Hi All,

Need your help please. I am trying to send out the notification on pushbullet if my sensor identifies motion. I can’t configure using the Automation component on HASSIO as it doesn’t show the notification and something is always wrong with my service data field.

I tried copying below code to automation.yaml but I get error when I load the HA dashboard.

action:
data_template:
message: “Motion Detected”
title: “Home Assistant”
service: notify.mypushbullet
alias: “Motion Detected”
trigger:
entity_id: sensor.aeotec_zw100_multisensor_6_burglar_9_10
from: “0”
platform: state
to: “8”

Please help. Also, if possible can someone please guide me with how I can see the humidity and temperature value updated periodically on front page?

Update: Checked the log and it says “Unable to find service notify/mypushbullet”. I am on HASS.io and also tried to copy the pushbullet.py file at below location but still same.

/config/custom_components/notify/pushbullet.py

Thanks in advance

Hi,

even if I could not help, it would be easier for others to help, if you’d

  • use preformatted text
  • post the error message (log)

@periodic update
well, in my case (MQTT sensors), the HA values get updated every time the sensor publishes its values. So this works ootb.

Hi, I’m also on Hassio.i (67.1) and receive same “Unable to find service notify/mypushbullet.”
I too tried adding in /config/custom_components/notify/pushbullet.py to no avail.

I don’t know how to add any custom dependencies – I thought pushbullet was actually built in.

2018-04-23 17:17:18 ERROR (MainThread) [homeassistant.loader] Error loading custom_components.notify.pushbullet. Make sure all dependencies are installed
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/homeassistant/loader.py", line 142, in get_component
    module = importlib.import_module(path)
  File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/config/custom_components/notify/pushbullet.py", line 6, in <module>
    from .device import Device
ModuleNotFoundError: No module named 'custom_components.notify.device'

Were you able to resolve?

~Bryan