I don’t know about the Device Handler, but that’s a pretty simple function if you use Rule Machine.
Beware the ST scheduler issues though if you go the RM route.