Remote Control Denon x4200w

Im running volumio on a RPI 4B
I own a Denon Amp x4200w

Via a web interface i can remotely control the denkn (ie turn on/off, switch aufio input channel)

Is there a way to have the volumio turn on the av when i start playing music and turn it off again after i stop playing music for 2-5 minutes or so?

Ill be switching to a nubert nu connect amp soon is there an easier way with this amp maybe?

How can i do it?