ynot123 / LMS_Controls

Control your Logitech / Squeezeserver players from Home Assistant and Google Home
64 stars 16 forks source link

querying local playlist fails #9

Closed jollybully closed 5 years ago

jollybully commented 5 years ago

Phenomenal work on this project! It's been rock solid so far.

Having some issues with the latest release - qry_playlist.sh isn't returning any local playlists

My playlist is called "Im_Feeling_Lucky" in LMS.

bash qry_playlist.sh im_feeling_lucky

lms_username is: null
login is: not required and lms_secure is: 0
HA Token is: ******
My Domain is: ******
My lms_ip: ******
My lms_cli_port: ******

Playlists are:
playlists 0 20 search%3Aim_feeling_lucky tags%3Aa count%3A0

Playlist check zero is: 0

playlist ID is:0
Name of playlist is: null
now Posting results

{"attributes": {}, "context": {"id": "c75e22c1e94d41f2a6d4cf980974ef45", "user_id": "96f034928543421287c9bbfdf97b95d9"}, "entity_id": "sensor.playlist_id", "last_changed": "2019-01-20T23:42:27.065629+00:00", "last_updated": "2019-01-20T23:42:27.065629+00:00", "state": "0"}
{"attributes": {}, "context": {"id": "d810ec86ac2941209417e3a4592569f3", "user_id": "96f034928543421287c9bbfdf97b95d9"}, "entity_id": "input_text.lms_qry_result", "last_changed": "2019-01-20T23:42:27.101862+00:00", "last_updated": "2019-01-20T23:42:27.101862+00:00", "state": "null"}
ynot123 commented 5 years ago

Tried at my end and it seems to work even with the contraction. I'm guessing this is a new playlist and won't be able to be found unless you Rescan your Media Library in Logitech Media Server. Also check your permissions to be sure you can save your playlist (happened to me with my newer NAS).

Will close this issue as well unless you can't make it work.

jollybully commented 5 years ago

this turned out to be user error - I hadn't manually set the source to LMS. Thanks!