I have an automation set up (below) to run my Roomba vacuums which is mostly working. The condition template was just added from reading another thread so not sure if that part is functional yet. What I really want it to do is more complex then I can manage to come up with though and I’m looking for some assistance. I’ll try my best to explain what I’m trying to do.
Run once a day only
Only start between 09:00-18:00 mon-sat
Only start if the tv is off (harmony integration)
Force start at 17:00 if it hasn’t already run
alias: Vacuum house
description: ''
trigger:
- platform: time
at: '12:00:00'
id: time
- platform: state
to: not_home
from: home
for:
hours: 0
minutes: 15
seconds: 0
entity_id: group.someones_home
condition:
- condition: time
weekday:
- mon
- tue
- wed
- fri
- sat
before: '18:00:00'
after: '09:00:00'
- condition: template
value_template: >-
-{{ state_attr('this.entity_id','last_triggered') | default(today_at(),
true) < today_at('05:00') }}
- condition: state
entity_id: remote.living_room
state: power_off
attribute: current_activity
action:
- scene: scene.vacuum
mode: single
1 post - 1 participant