Ok, this one is probably easy, but I am not thinking clearly this morning. If I have a component that I only want to show for a certain amount of time after a tag changes. How can I set something like this up. Say that I want a label to not be visible 15 minutes after a state change.
perspective or vision ?
If perspective: Bind the display
or visible
property of your component to the tag's timestamp.
Use an expression to calculate the diff between that timestamp and now(10000)
(that would check every 10 seconds, should be accurate enough for a 15 minutes timer, but adjust for your needs).
If that diff is lower than 15 minutes, return true, otherwise return false.
Would look something like
dateDiff({tag_path_timestamp}, now(10000), 'minute') < 15
note: If your tag path is dynamic, you should probably create a custom prop and use an indirect tag binding to bind it to the timestamp, then the expression binding on the display property can reference that custom prop.
It is vision. Sorry. just want the label to not be visible after 15 minutes.
Same approach in Vision. There's no magic wand that "just" does this.