Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

Help with automation - alert when no motion detected

$
0
0

@beeper wrote:

Hello All - I’m very new to Home Assistant, and trying to produce an automation that will trigger a pushbullet alert after a period of time when no motion is detected.
I’ve successfully managed to trigger the alert on motion detection, but really struggling with firing the alert after no motion.

- id: 'xxxx'
  alias: Alert when no motion detected
  description: ''
  trigger:
  - device_id: xxxx
    domain: binary_sensor
    entity_id: binary_sensor.tradfri_motion_sensor
    for:
      hours: 0
      minutes: 0
      seconds: 0
    platform: device
    type: no_motion
  condition: []
  action:
  service: notify.mypushbullet
  data:
    title: "Inactivity Alert"
    message: "No motion detected"

The log is pointing to a config error:

Invalid config for [automation]: [service] is an invalid option for [automation]. Check: automation->service. (See /config/configuration.yaml, line 13).

Can anyone advise me? Is it possible to do what I want to do? Thanks for any help!

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles