Logbook Card Visibility Based on Historical State Changes

Hi everyone, I’m trying to set up my Logbook Card to show events only if a device has been in a certain state within the last 12 hours. Right now, it only shows the current state, which isn’t quite what I need. For example, I want the card to display if my motion sensor has been triggered at any point in the last 12 hours, not just if it’s active right now.

I’ve been playing around with the visibility settings, but I can’t seem to get it to look back in time. I’ve attached a screenshot of my current setup for reference. Does anyone have any tips or workarounds for this? I’d really appreciate any help or suggestions you might have. Thanks in advance! :blush: