PS5-MQTT: Control PlayStation 5 devices using MQTT

It might be worth checking out the playactor GitHub, which is the underlying library being used, for similar reports.

I checked but there don’t seem to be similar reports at this time.

someone can help me with this?

Hi,
I’ve installed HA OS and I’ve added the add-on for this but doesn’t work. Always when I boot the add-on gives this error:

[13:31:04] ERROR: Got unexpected response from the API: Service not enabled
Starting PS5-MQTT…
node:internal/process/promises:279
triggerUncaughtException(err, true /* fromPromise */);
^
Error: getaddrinfo ENOTFOUND null
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:26) {
errno: -3008,
code: ‘ENOTFOUND’,
syscall: ‘getaddrinfo’,
hostname: ‘null’
}

QQ: The documentation says that the PSN login expires after two months.

npsso: '!secret my_npsso' # NPSSO token (expires after two months 😢)

I assume this token needs to be retrieved manually somewhere. Which functionality of the addon is tied to this token? I’m looking for a way to tell when I’m playing a game on my PS5, so that I can have my home react to that fact, but I really don’t want to have to manually fiddle around with updating SSO tokens every two months.

Thank you!

Échec du redémarrage de PS5 MQTT

Can’t create container from addon_df2164f9_ps5_mqtt: 409 Client Error for http+docker://localhost/v1.41/containers/create?name=addon_df2164f9_ps5_mqtt: Conflict (“Conflict. The container name “/addon_df2164f9_ps5_mqtt” is already in use by container “eb86104415d30f76e25c3eaed568f5de91fc0aae8af83249cc408c1f792febc3”. You have to remove (or rename) that container to be able to reuse that name.”)

OK

And what do you need? Is this a question? did you do as suggested?

Hello, I have this error message but I don’t know what I should do!!

so maybe it is very hard to help you when you provide no information at all. What are you doing, is this your first install, what happened to the previous installation? What kind of HA are you running?

1 Like

Hi cracking plugin, I’ve got it all working including the active game in the dashboard.

Is the Discord still active, if so could someone share the link?

I have one thing I’d like to check. Im using the addon to run automations: If kids chores not done, turn off the PS5 (I know - bad Dad!). On that basis is there a way to confirm who the current active PS5 user is from the PSN name?

1 Like

Is the Discord still active, if so could someone share the link?

Discord is still active, you can find the link through the GitHub repo.

is there a way to confirm who the current active PS5 user is from the PSN name?

Yes, you can use the players attribute of the device’s activity entity to see which users are playing on the device. The names will be the usernames you register with the npsso values. If no username was provided the user’s PSN name will be used.

1 Like

Has someone a pragmatic idea how to get a reminder to renew and update the configuration with the new NPSSO token once it becomes obsolete?
Currently I need to detect that the dashboard is showing idle instead of the actual active game.

1 Like

I haven’t got power off to work, turning on works, the sensor for activity works and the power switch correctly responds to the power status of the PS5. How do I solve this? Thanks!

  • Did you follow all the steps described in the docs?
  • Did you search the discord/this post for similar issues?

So to see which active game is being played, do I have to create the PSN token? Otherwise it’s not possible right? It is difficult for me to understand how to create the token. Can someone describe this in an easy way?

What don’t you understand from the already available manual? On which step are you getting lost?

Hoi Martijn, eigenlijk alles :-). Ik heb die 64 cijferige code maar hoe zet ik die om naar de juiste code?

Hello,

I’m a little bit confuse, i use HA in docker version, i see in your documentation that we can a have a standalone docker with it, but don’t understanf if after that i can use it in my HA docker ?

have some one try this ?

Not sure what you mean by this. If you mean can I use it as an add-on in the docker version of HA the answer is no. To use add-ons you need supervisor, which is not included in HA docker afaik.

Yes that’s what i mean, sad to read this :stuck_out_tongue: i will find another solution, thanks for your respons

[Edit] got it working via Stacks option in portainer, getting this error now, but seems to work:

2023-04-16T21:59:39.146Z @ha:ps5:error config could not be read from 'undefined'

2023-04-16T22:00:41.975Z @ha:ps5:error SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at /app/server/dist/redux/sagas/check-devices-state.js:78: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)

previous errors:

Hello again, I can’t make it work (and it used to)… tried ghcr.io/funkeyflo/ps5-mqtt/aarch64:latest and ghcr.io/funkeyflo/ps5-mqtt/aarch64:edge docker images, here’s what I get:

16/04/2023 23:43:40
curl: (6) Could not resolve host: supervisor
16/04/2023 23:43:40
[21:43:40] ERROR: Something went wrong contacting the API
16/04/2023 23:43:46
curl: (6) Could not resolve host: supervisor
16/04/2023 23:43:46
[21:43:46] ERROR: Something went wrong contacting the API
16/04/2023 23:43:52
curl: (6) Could not resolve host: supervisor
16/04/2023 23:43:52
[21:43:52] ERROR: Something went wrong contacting the API
16/04/2023 23:43:53
jq: error (at <stdin>:1): null (null) has no keys
16/04/2023 23:43:53
Starting PS5-MQTT...
16/04/2023 23:43:55
undefined:1
16/04/2023 23:43:55
]
16/04/2023 23:43:55
^
16/04/2023 23:43:55
16/04/2023 23:43:55
SyntaxError: Unexpected token ] in JSON at position 0
16/04/2023 23:43:55
    at JSON.parse (<anonymous>)
16/04/2023 23:43:55
    at Object.<anonymous> (/app/server/dist/index.js:81:25)
16/04/2023 23:43:55
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
16/04/2023 23:43:55
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
16/04/2023 23:43:55
    at Module.load (node:internal/modules/cjs/loader:981:32)
16/04/2023 23:43:55
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
16/04/2023 23:43:55
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
16/04/2023 23:43:55
    at node:internal/main/run_main_module:17:47
16/04/2023 23:43:58
jq: error (at <stdin>:1): null (null) has no keys
16/04/2023 23:43:58
Starting PS5-MQTT...
16/04/2023 23:44:00
undefined:1
16/04/2023 23:44:00
]
16/04/2023 23:44:00
^

just did: GitHub · Where software is built