Thomson smart TV

Sorry for my English.
I have a Thomson Smart TV (QLED Plus 55QG6C14) connected to Home assistant. I found a way to change channels, turn on, open apps. I can’t change the audio output.
Let me explain better. the TV is connected to a Sound Bar via optical cable. To activate the optical output I have to go to the menu in the audio settings and set to optical output. If, however, I no longer want the optical output I have to go into the settings and select the TV speaker output.
I have scenes created for watching films, for music (which modify the lights and other automations) I would also need to implement changing the TV’s audio output in the scenes, I can’t find the solution.
When I go into the settings to choose the output, I have this message on the TV (in the photo).