Hi I am new to Home assistant but understand all the basics, I want to create an automation that will when a nfc tag is scanned check if a variable (helper) is true or false. If it is false change it to true and start a timer for 45 minutes then put this countdown in a notification with the ability to cancel it or add 10 more minutes to it. Once the timer finishes I want it to send a notification saying its done. If it is true then i want to cancel the timer.
Things I need:
-Mostly just need a notification that updated every second that will display the timer
-Also the checking if the var is true is not working
Thanks in advanced, any help is great!
alias: Tag Washer is scanned
description: ""
trigger:
- platform: tag
tag_id: 0d83934d-da32-44a4-b702-a4f623
condition: []
action:
- if:
- condition: state
entity_id: automation.tag_washer_is_scanned
state: "off"
then:
- device_id: 872c2fea3eb26cc1fa8ccfa823d1
domain: mobile_app
type: notify
message: Washer timer is set
title: 40 minutes starting now
- service: input_boolean.turn_on
target:
entity_id: input_boolean.washer_timer
data: {}
- delay:
hours: 0
minutes: 40
seconds: 0
milliseconds: 0
- repeat:
sequence:
- device_id: 872c2fea3eb26cc1fa8ccfa823d
domain: mobile_app
type: notify
message: Washer is done
title: Go put it in the dryer
- service: notify.alexa_media_alexa
data:
data:
type: tts
message: Your laundry is done in the washer please go change it over
- delay:
hours: 0
minutes: 10
seconds: 0
milliseconds: 0
until:
- condition: state
entity_id: automation.tag_washer_is_scanned
state: "off"
else:
- device_id: 872c2fea3eb26cc1fa8ccfa823d16
domain: mobile_app
type: notify
message: Washer timer is stopped
- service: input_boolean.toggle
target:
entity_id:
- input_boolean.washer_timer
device_id: []
area_id: []
data: {}
mode: single