I have a remote to control my kodi that can call HA entities.
Now I have a left and right button on this remote. During navigation I like to use the buttons for left and right as normal.
But during video playback I like to use the left and right button to skip back or forward.
So I have a script asking first the GUI.GetProperties of the current kodi instance. If I get a value back of 12005 I know that a video is playing.
The “wait for a trigger” does not fire probably since it is already too late to receive something over kodi_call_method_result?
thx for the input.
however the video is able to play in the background while you might navigate the menu that’s why I’m looking for the currentwindow.id
And sorry about the two media players I fixed this now.
hmm I might have found a solution… Since I’m using HA just for 4 days I’m not sure if this is a “good” way to do it…
The problem was that the when I run the whole script in sequence the kodi_call_method_result is to late to capture the info from kodi.