Hey folks, fairly new to Home Assistant, haven’t coded in 10+ years.
I have a vibration sensor using the Zigbee protocol to alert when it finishes running. And that part works… a little too well, actually. It senses ALL vibration to start the routine., even microscopic movements. Open the door to unload clothes? It goes off. Set the laundry basket on top of the dryer? It goes off.
what I’m looking for is a way to tell it to only run the routine if it initially senses movement for 1 minute. I figure that’s enough time for it to know it’s an actual load, not something small. I’ve looked all over the forum and online for a solution, can’t seem to find any. Would anyone here have a solution?
Here’s the code I have:
alias: Dryer Test
description: ""
trigger:
- type: no_motion
platform: device
device_id: 7ddd7fba1740f89748c500eec13c366a
entity_id: da6372594687264ff85dcefa37d8c466
domain: binary_sensor
for:
hours: 0
minutes: 1
seconds: 0
condition: []
action:
- action: notify.alexa_media_bedroom_alexa
metadata: {}
data:
message: The dryer has finished running.
- action: notify.alexa_media_kitchen_alexa
metadata: {}
data:
message: The dryer has finished running.
- action: notify.alexa_media_living_room_echo_dot
metadata: {}
data:
message: The dryer has finished running.
mode: single
(If this is in the wrong forum, I apologize.)