#Door left open notification?

11 messages · Page 1 of 1 (latest)

narrow jay
#

I tried setting a notification for when i leave the garage door open, instead it just tells me the door was opened 30min ago. What did i do wrong? I just want to know if after Xminutes of binary_sensor being on, send notification.

alias: Garage Door notification
description: ""
trigger:
  - platform: state
    entity_id:
      - binary_sensor.shelly1_98cdac0ce253_input
    from: "off"
    to: "on"
    for:
      hours: 0
      minutes: 30
      seconds: 0
condition: []
action:
  - metadata: {}
    data:
      message: Garage door is open
    action: notify.notify
mode: single
indigo summit
#

You need a condition that the door is in the “open” state. Everything else looks fine.

true zephyr
#

Isn't that implied by the state change to "on"?

indigo summit
#

Shoot yes. You’re right— I double checked against my garage automation and it’s essentially the same except for the notification section. What does the notification itself say when fired?

sequence:
- metadata: {}
data:
title: Garage
message: Garage open for 1 hour.
action: notify.mobile_app_enders_iphone

#

I get the specific message line listed.

narrow jay
#

the notification works just fine, it reads "garage door is open"

#

but it fires it off 30min after i've opened the door, every time. Rather than when the door remains open for 30min

timid wasp
#

You can use repeat action and count conditions,...

shy cipher
#

Are you certain binary_sensor.shelly1_98cdac0ce253_input is in the state you expect it to be when you expect it? This automation shouldn't be triggered if you open the door (from off->on) and then close it (on->off) in under 30 minutes.

stuck jungle
narrow jay
#

this makes me think i'm watching the switch rather than the door sensor? for comparison, here's the button that controls it. When the door is open the icon changes and the color changes, when its closed it goes back to default, it uses the same binary sensor to check.

type: custom:button-card
show_entity_picture: true
entity: binary_sensor.shelly1_98cdac0ce253_input
name: Garage Door
state:
  - value: 'off'
    icon: mdi:garage-open
    color: rgba(146,107,199,255)
  - value: 'on'
    icon: mdi:garage
    color: rgba(68,115,158,255)
tap_action:
  action: call-service
  service: switch.toggle
  service_data:
    entity_id: switch.shelly1_98cdac0ce253
show_state: false