Automation with Media players

A few threads you may want to read first as someone would have solved this. And then post there perhaps. Also you need to format your yaml