Trigger when an item is in state for certain time

The answer to your specific question is no. There is no trigger for a rule when an Item is in the same state for a certain time.

However, what you are after can be achieved with rules. If you don’t really want to mess with coding it, see Open Reminder which is a rule template that you can install and configure. It will call a rule of your choice when an Item is in the OPEN state for a configured amount of time. You can even set do not disturb periods and repeat the call to the rule until the window is CLOSED.

Or if you want to code it yourself for some reason, see [Deprecated] Design Patterns: Generic Is Alive and [Deprecated] Design Pattern: Motion Sensor Timer for different ways to code this using Expire and/or Timers.