#Door contact sensor alert not firing

6 messages · Page 1 of 1 (latest)

deep edge
#

Hello,

I'd like to have an automation that alerts me after the back door has been left open for longer than a minute and persistently alerts me as long as it is still open. The use case is sometimes the door doesn't get shut all the way and can blow wide open if left alone.

The alerts integration seems perfect for this, however, I can't get it to work on my contact sensors. I'm using the IKEA contact sensors on zigbee. I've verified that the binary sensor is the one that is changing when I open and shut the door, but no alert occurs. Log files seem silent on the alerts, but maybe I'm looking in the wrong log.

What dumb thing am I overlooking?

Code:

back_door:
  name: Back Door is open
  done_message: clear_notification
  entity_id: binary_sensor.back_door_contact_sensor
  state: "open"
  repeat:
    - 1
    - 2
  can_acknowledge: true
  skip_first: true
  notifiers:
    - mobile_app_zero
  data:
    tag: back_door_open_alert

I'm following the in app notification settings from this article under the "additional parameters for notifiers" settings
https://www.home-assistant.io/integrations/alert/

I tried this on my office lights and it works perfectly:

office_lights:
  name: Office Lights On
  done_message: clear_notification
  entity_id: light.office_main_lights
  state: "on"
  repeat:
    - 1
    - 2
  can_acknowledge: true
  skip_first: true
  notifiers:
    - mobile_app_zero
  data:
    tag: office_lights_on_test

in my config file I have:
alert: !include alert.yaml

Home Assistant

Instructions on how to setup automatic alerts within Home Assistant.

latent bloom
#

binary_sensor entities are on or off

#

Review the state in devtools -> States

lean grail
#

this automation triggers when a door has been open for 5 minutes. it then checks if temp is below 16 (C) and sends a notification to my cell phone.

replace with your devices and entities

alias: Door is open and it is cold
description: ""
mode: single
triggers:
  - type: opened
    device_id: <door sensor device>
    entity_id: <door sensor entity>
    domain: binary_sensor
    for:
      hours: 0
      minutes: 5
      seconds: 0
    trigger: device
conditions:
  - type: is_temperature
    condition: device
    device_id: <temp sensor device>
    entity_id: <temp sensor entity>
    domain: sensor
    below: 16
actions:
  - data:
      message: Door is open and it is cold
    action: notify.mobile_app_sm_g991b
deep edge
latent bloom
#

Yes it is translated