Raspbian Blueman Audio Receiver as an Media player?


I have external soundcard with two active speakers connected to Raspberry PI where Hassio is running. For Kodi, Raspotify and Mopidy I run the automation to switch the power plug of the speakers On or Off based on playback.

I would like to automate the same also when somebody is ussing the Raspberry PI as an bluetooth receiver through blueman. Is there any possibility how to do that?