Start kodi addon from HA

Hello,

i have kodi integrated into HA and it works fine. But now i’m trying to start a kodi addon (the youtube addon from example) i get the error that the method is not found

Run API method media_player.ubuntu.Addons.ExtecuteAddon({‘addonid’: ‘plugin.video.YouTube’, ‘params’: {‘command’: ‘Activate’}}) error: {‘code’: -32601, ‘message’: ‘Method not found.’}

service: kodi.call_method
data:
  entity_id: media_player.ubuntu
  method: Addons.ExtecuteAddon
  addonid: plugin.video.YouTube
  params:
    command: Activate

In an example on the ha website it shows the same method.
So i doen’t understand why it says that the method can’t be found. could it be that there is something worng with the addonid or command?

Did you get this to work?

You spelt execute wrong :slight_smile: this works

service: kodi.call_method
data:
  method: Addons.ExecuteAddon
  addonid: plugin.video.netflix
target:
  entity_id: media_player.kodi