Hi everyone, I’ve been working on a smart home automation project that involves my vacuum cleaner. The goal is to have the vacuum start cleaning only after both myself and my partner have been in the shopping mall for at least 10 minutes. This way, we can avoid the vacuum starting if we just pass by the mall quickly.
I’ve set up a basic automation using Home Assistant, but I’m struggling with adding the time delay. Here’s what I have so far:
alias: Staubsaugen Einkaufszentrum
description: “”
mode: single
triggers:
- entity_id: person.xxxx
zone: zone.einkaufszentrum
event: enter
trigger: zone
conditions: - condition: and
conditions:- condition: zone
entity_id: person.yyy
zone: zone.einkaufszentrum
actions:
- condition: zone
- action: notify.mobile_app_minibrick
metadata: {}
data:
message: Staubsauger wird gestartet - action: vacuum.start
metadata: {}
data: {}
target:
device_id: 12345
I’d really appreciate any suggestions on how to modify this code to include the 10-minute delay. I’ve looked into using templates and state variables, but I’m not entirely sure how to integrate them into my existing setup. Any help would be fantastic!
On another note, I’ve been inspired by some of the community projects I’ve seen, like the ones using GitHub code examples for similar automations. It’s amazing how much you can achieve with a bit of research and experimentation. I can’t wait to see how this project turns out and how it can make my daily life a bit easier. Thanks in advance for your insights!