This has been mentioned/asked before, but with no real solution that I have found…
Want to be able to turn a device on for a “dynamic” period ie turn it on for 10 minutes/30minutes/2 hours etc, but need a popup (slider?) to set the time period. eg want to turn a plug on for 2 hours to charge a phone.
Additional would be good to actually set the device/light, as well!
In the case of charging a phone or simulair.
You can use one of the cheap powerplugs (zigbee for example) that also reports power and let an automation switch it off when the power consumption is below x for say 1 minute.