Play music without monitor/TV

Hello,

I have a Raspberry PI3 with latest OSMC and have been using it to watch movies/TV by connecting it to my television that supports CEC via HDMI. Therefore the television switches on and off automatically whenever I select a movie via my mobile phone on which I have installed Kore.

Now I want to connect a soundbar (Canton DM 55) directly via optical link to the raspberry PI3 Digi+. The reason I dont want it to be connected to the television, is that when I select to listen to music via the remote app “Kore” on Android, then I dont want the television to turn on automatically, so Kodi should not send a signal via CEC whenever it starts to play music.
Instead Kodi should output the audio directly to the soundbar via the optical connection by Digi+, which is the case for all media, while Kodi should also signal to turn on the television via CEC when a movie/video is played.

Is there a way to achieve this?