Hi,
I’m using HA for a couple of month now, but always as a normal user. As I use the integration with Kodi, I liketo manage my media player through home assistant. Unfortunately, I couldn’t find any card displaying the playlist, which is important to me as I use an auto generated playlist. That’s why I decided to create my own one
Using the developer tool, I can use the kodi.call_method to get the entries of the playlist:
entity_id: media_player.kodi
method: Playlist.GetItems
playlistid: 0
properties:
- title
limits:
start: 0
But the thing is that the response comes back with an event called kodi_call_method_result
(cfr: https://www.home-assistant.io/integrations/kodi/).
I created a custom card and could send the same request :
this._hass.callService("kodi", "call_method", { entity_id: this.entityId, method: "Playlist.GetItems", playlistid: 0, properties: ["title"], limits: { start: 0 } });
But I can’t catch events in the card.
Does anybody have an idea? I suppose I can catch those events via a pyhton script, but no idea of how to interact between the script and the card.
Gautier