How do I turn off something after 5 minutes of running? Rule Machine? If Rule Machine - share some example please.
Your options depend a bit on what the device is, and how it gets turned on in the first place, but basically something like this would work in RM
basically each potentially cost more system resources as they are more complex/advanced
start with
Simple Automations
it that doesn't do what you want
Basic Rule / Motion and Mode Lighting
Rule Machine.
moving up in complexity
there are lots to community apps which may have been made to cover specific jobs like averaging light levels/temperatures, combining switch's together (mirroring) controlling switch's/fans based on humidity levels