How to configure the PSN device
- Install a new PSN device.
- In your web browser, visit the PlayStation homepage, click the “Sign In” button, and log in with a PSN account.
- In the same browser that you used to log in (due to a persisted cookie), visit this page. You will see a JSON response that looks something like:
{ "npsso": "<64 character token>" }
If you see an error response, try using a different browser.
4. Use the <64 character token> on the advanced configuration of the device
Careful
The retrieved npsso token expires after 2 months, the application will try to keep the authentication alive for more times exchanging more tokens (auth and refresh tokens). When the token expires the application will warn you and you can retrieve a new npsso token, hopefully 2 or 3 times a year tops.
How to configure the PlayStation device
- Install a new PlayStation device
- Configure the IP Address of the console in the advanced configuration.
- It’s recommended that you configure a static IP address for your console in your router. The IP address can change on reconnection.
- Configure the Account ID and Pin (see instructions below)
How to retrieve your Account ID
Option 1:
We will be using the official account management website and inspect the network responses. This the fastest and easiest method.
- Go to https://account.sonyentertainmentnetwork.com/ and sign in.
- Open the Network Monitor by pressing Ctrl+Shift+E
- Under PlayStation Network select Profile. (Make sure the Network Monitor is clean before doing this, click on the little trash icon to the left)
- Find a request where the Domain value is https://web.np.playstation.com/api/basicProfile/v1/profile/users/me and File value is me.
- From the request details, select Response.
- The variable accountId will contain your real Account ID.
Option 2:
We will be making a Data Access Request. The request completed in under 12 hours for me.
- Go to https://account.sonyentertainmentnetwork.com/ and sign in.
- Under PlayStation Network, select Privacy Settings.
- Select Data Access Request. You will receive a .zip file which will contain a .xlsx (Excel) file.
- Your Account ID will be in the Account Detail sheet.
Option 3:
- Go to https://psn.flipscreen.games/
- Introduce your online name, not the user name but the nickname your friends see.
- Submit and copy the Account ID (not the encoded one)
How to retrieve your pin
- Go to your console> settings> remote play > enable remote play and click on link new device
- Input the pin in the advanced settings in the PS device in Homey.
- When saving both settings (account id and pin) you will see the linking screen close and now you can use the on/off functionality from Homey
Important
The Account ID and Pin code should be changed and saved together, let the PS on link mode while you save.
Saving this settings can result in timeouts, sometimes you need to wait to the next day to try again, I couldn’t fix that, it seems the console or network keep things sometime alive that on failure keeps us from retrying.
When turning your console on/off from Homey you can get timeouts after 10 seconds, I’m working on a solution for this, the process is slow because it’s a network process. Maybe I can increase the timeout but didn’t find the way yet. For now it still works but you get an annoying timeout message.
Coming soon:
Follow the progress of new features:
Supported languages:
- English
- Dutch
- Spanish
Do you have any ideas or suggestions ? Don’t hesitate to leave a message!
Happy with my work? Your support to continue developing this and new apps is always appreciated.
- Donate with Paypal
- Support me on Patreon
- Cheers! in the morning in the evening, all fueling my enthousiasm: https://www.buymeacoffee.com/emi662002
- Sponsor @emi662002 on GitHub Sponsors · GitHub