I recently created a Home Assistant add-on that lets you control your PlayStation 5 devices using MQTT. You can check out the add-on here.
The add-on currently supports:
Auto discovery of PlayStation 4/5 devices.
Toggeling power mode: Standy (rest) / Awake
Tracking PSN activity and matching it to PS4/PS5 devices.
A web-ui for easy authenticating and getting insights on device information.
I created the add-on because I wanted to (obviously) integrate my PS5 with Home Assistant. I found a thread that showed how to use the awesome playactor library, in combination with a Command Line Sensor to integrate your PS5. However, I felt like an add-on would be easier to use and maintain!
Any kind of feedback, suggestions for new features, or improvements is welcome!
If you like the add-on, please the Github repo. Thanks!
And if youâre really feeling generous, help me and my family stay warm this winter by donating so I can keep paying my gas bill, whilst working on this project!
When the add-on is running in HA OS/supervised, which it is telling from the screenshot the âmanualâ MQTT config is optional. If you leave it empty â{}â in yaml view. HA wil configure the connection for you.
Config is complicated and requires loads of stuff like custom theme, multiple CBC templates, and Iâm not willing to share/support those as theyâre not really suitable for sharing.
Your best bet is creating a CBC (custom button card) yourself. Or asking for help with a new thread.
It wonât literally be called sensor.my_playstation_activity but the name of your playstation +_activity.
If youâve done all the setup correctly (config add-on properly and have a MQTT broker installed) the best way to find your entities is to search HAâs devices using the name you gave your playstation. By default something LIKE: PS5-067.
As someone who doesnât really know how to install and run code is anyone able to walk me through how to get the access token? Iâve gotten my npsso token but not sure how to install and run the code necessary to get the access and refresh codes
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.