Would appreciate help with two Kodi commands

Hello,
Just started migrating my home theatre remotes from iRule, as they went dark last month…
and I realise the backups from iRule are encoded or encrypted and can not be used AFAIK :frowning:

So it wouId appear I need to re-work it all and HA seems like the way to go at this point.
I am up and running with most of it but some commands seem more difficult to re-do.

Specifically if anyone has as source, link or have examples for these two:

  1. sending single letters and single numbers to Kodi. Mostly for SMS Jump command for list navigation.
  2. doing percentage and timed player.seek commands. ie. forward 1 min, 10 minutes, 50% etc.
    I had it all working in iRule in JSON so I know it can be done, at least in JSON so surely do-able in HA…

Any hints much appreciated. Many thanks.

  1. you want the input send text method. See: Kodi Remote - #85 by MaestroMetty
  2. I’ve only ever used the player.seek method to jump smallforwad/backward and bigforward/backward predefined steps. But there are links to the API in that topic that may help.

Many thanks @tom_l
I am aware of that thread, as I am in it and it is useful.
Still struggling to get the send text/digits, keyboard command scripts working.

… but here are the scripts for seek if anybody needs them:

alias: kodi seek 900 sec FWD
sequence:
  - service: kodi.call_method
    data:
      method: Player.Seek
      value:
        seconds: 900
      playerid: 1
      entity_id: media_player.kodi

alias: kodi seek 900 sec back
sequence:
  - service: kodi.call_method
    data:
      method: Player.Seek
      value:
        seconds: -900
      playerid: 1
      entity_id: media_player.kodi

alias: kodi seek 50%
sequence:
  - service: kodi.call_method
    data:
      method: Player.Seek
      value:
        percentage: 50
      playerid: 1
      entity_id: media_player.kodi

deleted wrong place