2 Likes
update trying to make a second one but seem to not be gettiing past the condition and i am unsure what it wrong?
here is what i have
alias: NEW CHANGE FLEECE REMINDER
description: ""
trigger:
- platform: time
at: "11:00:00"
condition:
- alias: Check if tag has not been scanned today
condition: template
value_template: >
{{ today_at() >
states('sensor.change_fleece_tag_last_scan')|as_datetime|as_local }}
action:
- choose:
- conditions:
- condition: time
weekday:
- tue
- sat
after: "10:59:00"
before: "11:01:00"
sequence:
- repeat:
sequence:
- service: notify.craigs_pc
metadata: {}
data:
message: clean chin cage mon,tues,sat,sun
- service: notify.alexa_media_craigs_dot_bedside
metadata: {}
data:
message: clean chin cage mon,tues,sat,sun
- delay:
hours: 0
minutes: 3
seconds: 0
milliseconds: 0
until:
- condition: template
value_template: >
{{ today_at() <
states('sensor.change_fleece_tag_last_scan')|as_datetime|as_local
}}
mode: single
Just and idea: you can also use the Calendar - Home Assistant to trigger automations and either use the local calendar or link it to another calendar.
Another way to setup from a dashboard can be: GitHub - nielsfaber/scheduler-component: Custom component for HA that enables the creation of scheduler entities
1 Like