#Check if Scene was manually triggered that day

1 messages · Page 1 of 1 (latest)

digital flower
#

Hello,

I have an automationt that send the reminder to trigger the scene via actionable notification.

However I would like to avoid it running if the scene was already manually triggered that day.

How and what condition can I check?

Please help

native cloud
# digital flower Hello, I have an automationt that send the reminder to trigger the scene via ac...

condition -- template
{{ (states('scene.YOURSCENENAMEHERE')|as_timestamp| timestamp_custom("%Y-%m-%d", True)) != (now()|as_timestamp| timestamp_custom("%Y-%m-%d", True)) }}
obviously replace "scene.YOURSCENENAMEHERE" with your scene

this template will return true if the scene was last actived on a date that is not the current date therefore if it was activated today it will return false and the condition will not be satisfied