Scene on media_player sometimes doesn't work correctly

hi,

I’ve made some scene with media_player.
the scene turn on the tv and select the source.

sometimes it’s work correctly
sometimes it’s turning on the tv, but didn’t set the good source

I don’t understand why ?

have you an idea ?