Ok, not totally new with HA but pulling my hairs out to get the following to work:
When I open the following link in my browser:
http://192.168.1.100:8080/jsonrpc?request={“jsonrpc”: “2.0”, “id”: 1, “method”: “Player.GetItem”, “params”: {“properties”: [“file”], “playerid”: 1}}
I’m getting:
{“id”:1,“jsonrpc”:“2.0”,“result”:{“item”:{“file”:“smb://PC/Movies/Moviename (year)/Moviename (year) 1080p DTSHD-MA 235.mkv”,“id”:6612,“label”:“Moviename”,“type”:“movie”}}}
How do I get the “file” value into a sensor.
I know I probably have to use “Rest” and a template but I am searching already for a while and not getting it done. If somebody could help I would be very happy.