I use the Monoprice Media_player component and have it plugged into a power point that i can control. reason for this is because the unit itself uses quite alot a standby power and i wanted a way to turn it off and on.
So if i have the monoprice amp on as homeassistant starts it will populate what it needs OK. then if i switch the unit off the populated items disappear from the front end.
My question, is there a way that i can put into an automation to say if the power to the amp is on to manually refresh the media_player component to repopulate the front end?