Hello
I have all my media - Movies, Music & Photos stored on a separate NAS. Typically I would access it via Kodi from an Android Box. Can anyone recommend how I could do this from Home Assistant? What Add-on is recommended?
Thanks in advance for any help that can be provided.
I use both the kodi integration and the media player integration. I also have a daphile music server which has an http interface that I can access through lovelace. I control my A/V components via IR with global cache GC-100-12. This gives me control over all the disparate components.
Hope this gives you the direction you were looking for.
this is the thread that closely what i need. Following the latest media player enhancement in HA, i have successfully created an automation to start my htpc which includes turning on my amplifier andf other functionalities… great.
my objective is to have my wakeup playlist (built in kodi) to play when kodi start in the morning.
I can get a song to play no issue, however i cannot find a way to invoke a kodi playlist within the automation.
Did you see this in the KODI documentation? It’s a script to play a smart playlist. I think you would just replace the entities and the media_content_id.
script:
play_kodi_smp:
alias: "Turn on the silly box with random Firefighter Sam episode"
sequence:
- alias: "TV on"
service: media_player.turn_on
target:
entity_id: media_player.kodi
- service: media_player.play_media
target:
entity_id: media_player.kodi
data:
media_content_type: DIRECTORY
media_content_id: special://profile/playlists/video/feuerwehrmann_sam.xsp
Thank you for your prompt reply. your scripts looks very interesting. I will try it. I know i can insert this in the configuration.yaml however i see many solution using such scripts. Is it better to have a script.yaml for all the scripts and then referencing the automation?
Because i can see me using this script in to play a playlist for time of day or event
I would just have to change the alias and the media_content_id for each playlist to be played
In this instance i will move my playlist from my local machine to my servere
example special://my server/kodi/playlist/file.m3u
Correct?
once again tank you for your help
I use a scripts.yaml simply because I have scripts that control my IR and there are alot of them. I would think you could create an input list via an input select and this would allow you to have multiple playlists available and easy to change. You could then have a template in the script to reflect your choice without changing the configuration. I would also think that the playlists would be kept on your kodi server but I don’t know this for a fact.
Also you may need this plugin as discussed in KODI:
This example and the following requires to have the script.json-cec plugin installed on your Kodi player. It’ll also expose the endpoints standby, toggle and activate without authentication on your Kodi player. Use this with caution.
I don’t use KODI to support my music so I can’t comment on the exact syntax. The example looks correct to me.
Hi guys, it’s a bit of a late reaction but regarding starting a playlist in kodi via HA there is an easy way.
I use the “party mode autostart playlist” addon in kodi which runs each time kodi starts. The playlist is within kodi and i just trigger kodi start via HA and it plays automatically.
Controlling can be done via an automation and a remote card. https://kodi.wiki/view/Add-on:Partymode_autostart