Automation when aqara door sensor is open for x seconds

I’ve got an Aqara door sensor and would like to get a notification when the door of my fridge is open for a period of time.

I created the following automation, but no email is send :frowning:

alias: Gefrierschrank
description: ""
  - platform: state
      - binary_sensor.lumi_lumi_sensor_magnet_aq2_opening
      hours: 0
      minutes: 0
      seconds: 5
    to: "On"
condition: []
  - service: notify.gmail_info
      message: Gefrierschrank offen
mode: single
to: "on"

Home Assistant is case sensitive. And you can’t rely on what is shown in the Dashboard (these are translated states to make them look pretty). Always check Developer Tools - > States for the actual state.

c’mon - such as easy as that :sweat_smile:

running like a charm, now

thanks mate

1 Like

Bring on 2022.9!

There’s a PR that addresses this?

1 Like

Very nice improvements. The beta opens tonight too. Can’t wait to try the schedule helper for my irrigation and climate control. Goodbye complicated template sensors and input datetime helpers.

1 Like

New to HA. Is the notification something that can be redirected to a text message or an alexa notification instead of an email?