I have an automation set up for my August lock, where any time the lock is unlocked, it will auto-lock after 5 min (assuming that the door is closed). Is there any way to have a card on a dashboard that shows this countdown?
Here’s the code for the automation:
- id: '1663519627976'
alias: Auto Lock
description: after 3 min
trigger:
- platform: state
entity_id:
- lock.front_door
from: locked
to: unlocked
for:
hours: 0
minutes: 5
seconds: 0
condition:
- type: is_not_open
condition: device
device_id: 9fea02f11dd228e405a496bbbfcd865c
entity_id: binary_sensor.front_door_open
domain: binary_sensor
action:
- device_id: 9fea02f11dd228e405a496bbbfcd865c
domain: lock
entity_id: lock.front_door
type: lock
- if:
- condition: state
entity_id: lock.front_door
state: unlocked
for:
hours: 0
minutes: 0
seconds: 30
then:
- service: notify.mobile_app_pixel_6
data:
message: Failed to lock Front door
title: Automation Error
mode: single