Open reboot81 opened 4 months ago
Hi @reboot81 , I have the same problem although connecting over SSH, even passing the password check the login operation does not work, reported here https://github.com/kopiro/homebridge-playstation/issues/72#issuecomment-2229505094
Anyone ever figure out how to get this to work?
EDIT: I’m using the official Homebridge docker image, by the way.
UPDATE: I figured out how to get the homebridge user active in the Homebridge docker container. SSH into the container and edit the /etc/passwd file in nano. Go to the line that starts with “homebridge” and will end with /usr/sbin/nologin, and change that last part to /bin/bash. Then restart the Homebridge container and you will be able to log in at the Homebridge user.
Now for a NEW problem, when you try to run homebridge-playstation-login it gives you this error:
bash: homebridge-playstation-login: command not found
No clue where to go from here. I have the plugin running in a child bridge, I’m going to see if running it on the host bridge is any better. I will report back what I find.
Running this plugin on the host bridge did not work either. I think this plugin is broken for the Homebridge docker container.
Can you try instead node ./dist/cli.js
?
Can you try instead
node ./dist/cli.js
?
Tried to run that as homebridge user and got:
bash: node: command not found
Then tried to run it as normal root user and got this:
node:internal/modules/cjs/loader:1228
throw err;
^
Error: Cannot find module '/homebridge/dist/cli.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
at Module._load (node:internal/modules/cjs/loader:1051:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12)
at node:internal/main/run_main_module:28:49 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v20.17.0
I'm running the official Homebridge docker image, and it's running homebridge v1.8.4.
I found that cli.js script in /homebridge/node_modules/homebridge-playstation/dist/
...should I run it from there?
I was able to run that as a root user, but not as a homebridge user. But when I tried to go to the link, I got this error:
Hey @DasKraut37 I was able to make it work, shared in the comments to the issue I mentioned above https://github.com/kopiro/homebridge-playstation/issues/72#issuecomment-2229619707
Oh awesome! Thanks! I'm going to try this out right now!
Quick Update (have not tried your method yet): So it turns out the problem with going to the link was that uBlock Origin was blocking it. I fixed that and was able to get a successful redirect URL. Only problem now is when I try to authenticate I get this error
Registering with device via Remote Play.
Go to Settings > System > Remote Play > Link Device
Enter PIN here> [redacted]
Registration error: 403: Forbidden: Other Error
Discovering next device...
Did not authenticate to any consoles.
Regarding the 403 Error: I came across this post today and even though I still get the error, for some reason I can control my PS5 in HomeKit now. The trick was adding it to HomeKit first as an accessory. Also...HomeKit makes you define an Input channel for some reason... So I just called mine PS5. No idea what that's about... but I can turn the PS5 on and off now. So... I guess we're good!
Some final wrap-up notes:
homebridge-playstation
child bridge to your HomeKithomebridge-playstation-login
If anyone tries these steps and find that it doesn't work for them, I'd love to know about it since I got there the long way around. I may have left something out, etc.
Never mind to all of the above. It worked once and then never again. ¯_(ツ)_/¯ I’m calling it a day. Been fighting with this for hours and I have other stuff to do. I’ll try the other method later when I’m less frustrated.
Describe Your Problem: Can't switch to homebridge user from Homebridge terminal.
Logs:
Plugin Config:
Screenshots:
Environment: