Kodi automate change of channel

Hi,
I have created a script to automate a change of channel of a Kodi media player for live TV. What is confusing me is the media_content_id isn’t consistent. Ie. The first time I run the script it selects a channel, the second time it is a different channel. Should I be doing something differently?


alias: "TV: Change channel 7"
sequence:
  - service: media_player.play_media
    data:
      media_content_type: CHANNEL
      media_content_id: 6
    target:
      entity_id: media_player.libreelec
mode: single

1 Like