kopiro / homebridge-playstation

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

Second screen unable to see PlayActor w/ Homebridge running in Docker #30

Closed bjoernmayer closed 2 years ago

bjoernmayer commented 2 years ago

Describe Your Problem: I am running homebridge in a Docker container. The second screen app cannot see any device called PlayActor and hence I cannot continue with the setup.

Logs:

Nothing of importance

Plugin Config:

Nothing of importance as I fail to setup the plugin

Environment:

mesoblaste commented 2 years ago

I was having the same problem. I found a way to go over it : I installed ps4-waker

sudo npm i ps4-waker -g

And then connect my PS4 with 2nd screen app using this in the terminal :

ps4-waker

Which register the credentials in homebridge.

Then when you log in homebridge-playstation, with :

homebridge-playstation-login

It works.

bjoernmayer commented 2 years ago

@mesoblaste worked like a charm. Do I have to redo these steps after I pull a newer docker image version?

mesoblaste commented 2 years ago

I think so, I think it just save the credentials in a file, using ps4-waker, that it also used by homebridge-playstation. I can't say why the process doesn't work directly with homebridge-playstation with the PS4, the process is different for the PS5 but works fine. So far all my PlayStations appears and respond good in Apple home app and that is all I need, thanks to the developers :)

bjoernmayer commented 2 years ago

I played around with it some more. I deleted both credential files of ps4-waker (~/.ps4-wake.credentials.json) and playactor (~/.config/playactor/credentials.json).

With playactor login no device appears in second screen app. With ps4-waker a PS4-Waker device appears and I am able to connect. While ps4-waker already exits, the second-screen app continues to try to connect to this fake device. At the same time I once again executed playactor login, which then immediately succeeds.

bjoernmayer commented 2 years ago

Closing as this should be a playactor issue