Already linked above.
also +1 for this issue. How I imagine this solution would work, is every entity would have a “momentary” service
when triggering a state change, HA would record the current state, apply the new state and then revert back once the desired time expires.
Of course, this can be achieved via automation, the issue is needing to have automation setup for every entity as well as inputs to drive the automation. This should just be native on all entities.
homeassistant.momentary
data: {
entity_id: 'light.study'
state: 'on'
for: '5m'
}