How to play/pause Kodi with an automation?

Hi,
Very simply, I have a zigbee remote and I want to play/pause my Kodi media player with it. Kodi integration is already added and works, I can play/pause from HA
But in automation, when I want to configure the action and choose my Kodi device, there is nothing. No action:


What am I doing wrong ? What am I supposed to do ?
Thanks in advance for any answer

Look at the media player services. https://www.home-assistant.io/integrations/media_player/

e.g.

action:
  - service: media_player.media_pause
    target: 
      entity_id: media_player.your_kodi_media_player_here
1 Like