I’m almost a complete newbie but normally I can figure things out for myself by looking through the forum, but this time I just can’t figure out why this is not working.
I have a xiaomi motion sensor, connected to HA via Deconz.
I want stuff to happen after 10 minutes of inactivity, so have written this, in a package:
automation:
- alias: no presence in dining room
trigger:
- platform: state
entity_id: binary_sensor.presence_15
to: 'off'
for:
minutes: 10
action:
service: script.no_one_in_dining_room
script:
no_one_in_dining_room:
sequence:
- service: notify.mobile_app_pixel_3
data:
title: "Dining Room Presence"
message: "No one detected in the dining room for a while"
Note that I’ve simplified the automation and the script to the bare bones here, trying to rule out possibilities, once I’ve got this working it will hopefully do a lot more, hence the use of a script.
I’ve confirmed that the sensor has been off for more than 10 minutes:
but nothing is running
What am I missing?