4n0nD3v3l0p3r / Home_Assistant_SkyQ_MediaPlayer

Home Assistant SkyQ Media player component
MIT License
20 stars 14 forks source link

Service call to play_media skyq will not change channel by 3 digit number #16

Open gpchampion opened 2 years ago

gpchampion commented 2 years ago

Using this via node Red and I cannot get the call to change the channel by number. It will change single numbers e.g. 1-9, but nothing greater. Example call is below extracted from NR debug log attempting change of channel to 501 Sky News.. The call is accepted into the API via this function:

msg.channel = {"media_content_id": ""+ msg.payload.new.slice(0, -1) +"","media_content_type":"skyq"}

The above is then passed into the service call as an expression.

19/01/2022, 10:36:44node: Set Lounge Sky channel msg : object domain: "media_player" service: "play_media" data: object media_content_id: "5,0,1" media_content_type: "skyq" entity_id: "media_player.sky_q_living_room"

I have tried this manually using "501" "5,0,1" and cannot get it to work.

MadmanMonty commented 2 years ago

Late to reply, I've not used this with node red, did you get this working?

I would check sending the digits as individual strings ie, "5" + "0" + "1"

gpchampion commented 2 years ago

Yes it was fixed. As per documentation it works fine now.

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Christopher Baxter @.> Sent: Saturday, February 26, 2022 8:48:40 PM To: 4n0nD3v3l0p3r/Home_Assistant_SkyQ_MediaPlayer @.> Cc: gpchampion @.>; Author @.> Subject: Re: [4n0nD3v3l0p3r/Home_Assistant_SkyQ_MediaPlayer] Service call to play_media skyq will not change channel by 3 digit number (Issue #16)

Late to reply, I've not used this with node red, did you get this working?

I would check sending the digits as individual strings ie, "5" + "0" + "1"

— Reply to this email directly, view it on GitHubhttps://github.com/4n0nD3v3l0p3r/Home_Assistant_SkyQ_MediaPlayer/issues/16#issuecomment-1052593866, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJBXLBKG5763PYTVNNWSJMDU5E4CRANCNFSM5MJTRGHQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.Message ID: @.***>