Tag Automation Kodi (osmc) play album - don't work

Hallo folks

since hassio 0.115 (or before) there is the ability to controll kodi and run a mediabrowser just from hassio UI.

I’d like to start playing my favourit Album by home assistant automation.
I run KODI (osmc) on another Raspberry PI
My problem, the TAG fires the automation but KODI does not react.

My Automation:

  • id: ‘1601470539861’
    alias: NFC - CD - Dr. Dre - 2001
    description: ‘’
    trigger:
    • platform: tag
      tag_id: 04-79-07-B2-F3-67-84
      condition:
      action:
    • service: media_player.play_media
      entity_id: media_player.osmc
      data:
      media_content_type: MUSIC
      media_type: ALBUM
      media_name: 2001
      artist_name: Dr. Dre
      mode: single

I’m not shure about using media_id. From controling KODI over http (chorus) I found my Album at http://192.168.178.28:8080/#music/album/21.
Trying media_id: 21 didn’t work

Becouse of the new Media Browser I know hassio can start media from KODI. Butt I just don’t understand how hassio did it and how I can use it for automation.

all of the other guides that I have found unfortunately do not solve my problem. The problems solved are always different

I hope someone can help me
Thank you

1 Like

This was broken on the original 0.115 release but has since been patched, here’s an example of how I’m playing an album

  - service: media_player.play_media
    data:
      entity_id: media_player.kodi
      media_content_id: '182'
      media_content_type: album
2 Likes

Hey camcs1
It works!
Thank you!

1 Like