kopiro / homebridge-playstation

Playstation integration for Homebridge / HOOBS.
Apache License 2.0
97 stars 9 forks source link

added PS5 as an accessory - Unable to request credentials error #50

Open morningla opened 1 year ago

morningla commented 1 year ago

Describe Your Problem: command not being accepted by ps5 when attempting to turn ON/OFF in Home app

Logs:

[10/17/2022, 9:59:00 PM] [playstation] Unable to request credentials

Plugin Config:

 "pollInterval": 5000,
            "platform": "playstation"

Environment:

--


Robin-MR commented 1 year ago

I have the same problem. @morningla Do you already have a solution?

morningla commented 1 year ago

playactor commands all work in command prompt to put system on standby and power on. ON/OFF status is showing properly, but powering on and off is not working in the Home App. must be a permission issue but cannot figure it out.

Resstrictionss commented 1 year ago

I have the same problem @morningla Please let me know when you have find a solution.

Jennis1408 commented 1 year ago

Same here.

BensimonSamy commented 1 year ago

Same here

sterumbelow commented 1 year ago

Same here. Extremely frustrating because it seems like it would be an easy thing to fix!

kopiro commented 1 year ago

Hello - Can you check that the homebridge user has access to the directory /home/homebridge/.config/playactor ?

morningla commented 1 year ago

i am on windows11, my admin/user and system accounts all have full access to this folder

User/.config/playactor

homebridge services is ran using local service, do you want me to try switching to my admin user account? not sure if it'll affect anything else?


From: Flavio De Stefano @.> Sent: April 17, 2023 5:46 AM To: kopiro/homebridge-playstation @.> Cc: morningla @.>; Mention @.> Subject: Re: [kopiro/homebridge-playstation] added PS5 as an accessory - Unable to request credentials error (Issue #50)

Hello - Can you check that the homebridge user has access to the directory /home/homebridge/.config/playactor ?

— Reply to this email directly, view it on GitHubhttps://github.com/kopiro/homebridge-playstation/issues/50#issuecomment-1511190198, or unsubscribehttps://github.com/notifications/unsubscribe-auth/APQUPQH677BOXRUYN7Y7TZ3XBUURTANCNFSM6AAAAAARHVKTAY. You are receiving this because you were mentioned.Message ID: @.***>

and43a commented 1 year ago

Hello - Can you check that the homebridge user has access to the directory /home/homebridge/.config/playactor ?

hello KOpiro, reading on the site looking for the problem, I saw this answer, I wanted to tell you that perhaps the problem is just this, i.e. that the user does not have access to the home/homebridge/.config/playactor folder. also because if I go to this directory I can't find anything to do with playactor. Screenshot 2023-04-18 alle 17 19 57

morningla commented 1 year ago

This is correct,

The only playactor folder on windows is the configuration files in this folder. C:\Users\User.config\playactorC:\Users***.config\playactor There is not playactor folder anywhere else in the homebridge folders, but neither does any other plug-ins I think?

C:\Users\User .homebridge

From: @.> Sent: April 18, 2023 9:21 AM To: @.> Cc: @.>; @.> Subject: Re: [kopiro/homebridge-playstation] added PS5 as an accessory - Unable to request credentials error (Issue #50)

Hello - Can you check that the homebridge user has access to the directory /home/homebridge/.config/playactor ?

hello KOpiro, reading on the site looking for the problem, I saw this answer, I wanted to tell you that perhaps the problem is just this, i.e. that the user does not have access to the home/homebridge/.config/playactor folder. also because if I go to this directory I can't find anything to do with playactor. [Screenshot 2023-04-18 alle 17 19 57]https://user-images.githubusercontent.com/123098088/232824349-e5cf21ae-7d55-4c02-a7f4-6b988629a37c.png

— Reply to this email directly, view it on GitHubhttps://github.com/kopiro/homebridge-playstation/issues/50#issuecomment-1513352636, or unsubscribehttps://github.com/notifications/unsubscribe-auth/APQUPQC5NSMODDEF6A23JSLXB2WQZANCNFSM6AAAAAARHVKTAY. You are receiving this because you were mentioned.Message ID: @.***>

travischapman commented 1 year ago

Hello - Can you check that the homebridge user has access to the directory /home/homebridge/.config/playactor ?

@kopiro I also encounter the Unable to request credentials error. The Home app accurately shows if the PS5 is in standby or not, but it logs the error message whenever attempting to toggle within the Home app.

I did confirm the permissions are set appropriately for the homebridge user (see screenshot).

image

I am happy to help with a PR if needed. Do you have any good leads on what is causing the error?

TJKanarek commented 1 year ago

Has this issue ever been resolved. Having same error unable to request credentials

dpamping commented 8 months ago

Same here

robi-van-kenobi commented 5 months ago

I solved it the following way:

Step 1: sudo addgroup pi homebridge Where "pi" is your current username. Step 2: sudo chmod 0760 /home/homebridge/ && sudo chmod 0760 /home/homebridge/.config/ && sudo chmod 0760 /home/homebridge/.config/playactor/

Step 3: sudo chmod 0644 /home/homebridge/.config/playactor/credentials.json

Step 4: ln -s /home/homebridge/.config/playactor /home/pi/.config/playactor

Step 2 &3 fix the access rights to the config file. Step 4 links the file to my current home. For some reason it tries to find the file here. Works like a charm now

and43a commented 5 months ago

Hi and thanks for your reply, much appreciated. I tried your solution but already at the beginning something was wrong. my username is "andrea". gives me this answer. can you help me? thank you for your time.

Il giorno 15 feb 2024, alle ore 14:01, Robert Hänsel @.***> ha scritto:

I solved it the following way:

Step 1: sudo addgroup pi homebridge Where "pi" is your current username. Step 2: sudo chmod 0760 /home/homebridge/ && sudo chmod 0760 /home/homebridge/.config/ && sudo chmod 0760 /home/homebridge/.config/playactor/

Step 3: sudo chmod 0644 /home/homebridge/.config/playactor/credentials.json

Step 4: ln -s /home/homebridge/.config/playactor /home/pi/.config/playactor

Step 2 &3 fix the access rights to the config file. Step 4 links the file to my current home. For some reason it tries to find the file here. Works like a charm now

— Reply to this email directly, view it on GitHub https://github.com/kopiro/homebridge-playstation/issues/50#issuecomment-1946054820, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5LFH2EC7X6RTZSN5PFGQJLYTYBL3AVCNFSM6AAAAAARHVKTA2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBWGA2TIOBSGA. You are receiving this because you commented.

morningla commented 5 months ago

In windows, the folder is here? local system runs homebridge, and has access to this folder. I can try changing???

C:\Users\ ***\AppData\Roaming\npm\node_modules\playactor