How to read out shairport state

Hello everybody,

i am controlling my volumio players with my home automation ( Play, Pause. Vol+/- works nice via CLI commands. But i would like to automatically turn on and of my amplifier as soon as something is being played on volumio. with regular files, this is rather easy via _player_engine.php. Unfortunately a playback via shairport is not reflected there. Is there any way to find out if there is something playing that i can read out via http?

THank you in advance!

nobody knows how to do that?