How do I tell Kodi (on Raspberry Pi) to play a STRM file

This is what I’ve come up with so far…

action: media_player.play_media
metadata: {}
data:
  media_content_id: /Media/Movies/DrivewayCamera.strm
  media_content_type: video
target:
  device_id: 5ac90e14ab27e74a62be922d169155a2

yet I get a Kodi error “404”

I know the file is there, I’ve even tried with the http://192.168.1.2:8080/Media/Movies/DrivewayCamera.strm

I can manually play the file and it works, just can’t figure out how to get HA to tell Kodi what I want.

Thanks in Advance!

Hi Calvin,

Your path is wrong. I’m certain media should not be capitalized at least, but it may have other issues, not sure.

I agree, the m in Media should not be capitalized, per WINSCP

action: media_player.play_media
metadata: {}
data:m
  media_content_id: /media/Movies/DrivewayCamera.strm
  media_content_type: video
target:
  device_id: 5ac90e14ab27e74a62be922d169155a2Preformatted text

Changing it still gives me the same Kodi 404 error?

I’ve copied the directory structure from WINSCP.

What have I done wrong?

Thank you,