Hi, Thank you for the plugin. I’m using HA in docker, have mqtt installed and tried to set up your plugin via docker container. All runs well, PS5 is recognised in your app (Web UI), but I can’t authenticate the console. I’m following the instructions but as soon as I hit authenticate button the screen with code displayed on my PS5 screen disappears and nothing happens or shows in te Web UI… any idea what’s happening? Am I doing anything wrong?
[EDIT] forgot to mention that before or after I try to authenticate I can see two entities in HA as below:
There are (unfortunately) two types of authentication.
The first one (which you performed) is “remote play” authentication which allows you to turn the PlayStation on/off.
If you didn’t receive any errors + the log is clear, the scenario that you described means it was succesful.
The second is acquiring an npsso (see docs) for tracking PSN account activity.
I’m not sure what you’re trying to do, but I’m going to guess you’re trying to set up the add-on in HA (supervised)?
If so:
The app handles acquiring access/refresh token for you using the NPSSO.
So just configuring the app like described in the docs and performing subsequent authentication per Playstation device using the web-ui should do the trick.
2022-08-31T20:42:07.628Z @ha:ps5:error SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at /app/server/dist/redux/sagas/check-devices-state.js:75:38
at step (/app/server/dist/redux/sagas/check-devices-state.js:35:23)
at Object.next (/app/server/dist/redux/sagas/check-devices-state.js:16:53)
at next (/app/node_modules/@redux-saga/core/dist/redux-saga-core.dev.cjs.js:1161:27)
at currCb (/app/node_modules/@redux-saga/core/dist/redux-saga-core.dev.cjs.js:1255:7)
at runSelectEffect (/app/node_modules/@redux-saga/core/dist/redux-saga-core.dev.cjs.js:735:5)
at runEffect (/app/node_modules/@redux-saga/core/dist/redux-saga-core.dev.cjs.js:1208:7)
at digestEffect (/app/node_modules/@redux-saga/core/dist/redux-saga-core.dev.cjs.js:1275:5)
at next (/app/node_modules/@redux-saga/core/dist/redux-saga-core.dev.cjs.js:1165:9)
Got it, I thought we had to run the code on the psn-api site to get the access/refresh code. My activity wasn’t showing initially however after deleting from mqtt and readding it is now showing thanks!
For activity:
Check that your privacy settings aren’t too strict, I think you have to set Game activity or something to public. Someone ran into this issue on the GitHub issues/discord. Can’t quite remember.
For turning on:
Check that all required remote play features are enabled as mentioned in the Docs.
As for the error:
the error you’re receiving occasionally occurs when checking device state and should recover automatically. A device scan interval of at least 3000ms is recommended as it will limit the chance of this error occuring.
This isn’t related to the issues mentioned above.
I changed game activity to public (everyone) but still no luck in getting the status. I only have the same two sensors and no info on games that are being played.
Hello, thanks for the integration of the PS5. It runs so far everything wonderfully only I hang a little on the CustomCard to display the current games. Has anyone had any success here and likes to share their code?
I also had problems between idle and playing, you have to be displayed on the PS5 as online or busy, then the display also changes from idle to playing. If you are displayed as offline, this does not work.
the only last thing I noticed is that when I turn the console via the button, the console turns on but the TV does not (I have LG TV). If I press a button on the controller - the TV turns on. Weird.
Hi! I have configurated it correctly (I think), copied even the npsso code. But when I add the addon on my dashboard, there are no entity i can use, except for the update.ps5_mqtt_update
What I have to do now to add more entity? (the image, the turn on/off button and so on).