PS5-MQTT: Control PlayStation 5 devices using MQTT

Been trying to figure out how to do this with unraid for a while now…

Thanks for taking the time to reply.
I managed to setup it up, but i constantly lose connection with ps5.

image

  • are you turning it fully off?
  • might your network connection be unstable?
  • what value did you set the scan interval to? And have you tried increasing it.
  • No I’m putting it only to sleep mode. (it wakes up and it connects normally from the Remote Play iOS app)
  • do you mean those values?
  • DEVICE_CHECK_INTERVAL=5000
    - DEVICE_DISCOVERY_INTERVAL=60000
    - ACCOUNT_CHECK_INTERVAL=5000

If yes no I haven’t messed with them, what values do you suggest of putting?

Thorn
Above your post created a more complicated method, but it had create an icon from the page https://www.nicepng.com/png/full/10-104138_blue-playstation-logo-png-playstation-logo-no-background.png
How can i implement this into your mushroom card?

just had this notification, do i have to do anything or will it be updated?

Discovered entities with a name that starts with the device name

This stops working in version 2024.2.0. Please address before upgrading.

Some MQTT entities have an entity name that starts with the device name. This is not expected. To avoid a duplicate name the device name prefix is stripped of the entity name as a work-a-round. Please inform the maintainer of the software application that supplies the affected entities to fix this issue.

This requires a change in the add on. Progress can be tracked via this GitHub issue.

Estimated time of delivery: Soon™️

1 Like

Can we also get an unraid docker version in 2024? lol

1 Like

Hi, thanks. Im currently stuck here for some reason, I created the run.sh file but it says doesn’t exist, not sure what I did wrong I put the file in the same folder I made @FunkeyFlo


Any suggestions on those matters?

With regards to your device repeatedly becoming unavailable: this should only happen if the device can no longer be found on the specified network. Hence connectivity issues come to mind. I haven’t had any similar reports.

With regards to the template: I’m not quite sure what your asking. Could you be more specific?

Not sure either. I’m not familiar with unRAID so I can’t help you out with that.

I can tell you that the next update will most likely eliminate the need for the custom run.sh, so that might make things a little easier

1 Like

Sweet! I will wait for the next update then because I think the only problem I have after following the guide you gave is it just can’t find the run.sh file.

I will check the connectivity issues, but I dont think that this is the issue. Thanks for the advice though.

in the Template matter.
following your instructions i have created this:
image
I’m wandering how I can change the Black Circular Icon when the PS is off to show the PS logo instead.

Add a condition to the picture attribute of the card that returns your image if there is no entity picture available. (On my phone right now so can’t really type any (pseudo) code).

1 Like

For future noobs like myself, regarding this, it was easier than I imagine. all it took was to replace it with the mdi:sony.playstation icon

1 Like

I started a little experimenting with this yesterday. I’ve setup a very simple automation triggered by device. The automation:

  • Sets a light scene when the PS5 turns on (before sunset)
  • If before sunset it pulls up the curtains
    When the PS5 turns off:
  • If before sunset the curtains go back up
    The problem is with the second part. The addon is not picking up the PS5 being powered off but in the logs i can see “unavailable”. This is not a state that can be used in this automation so it’s not triggered. Any suggestions how to make the second part work?

Create a template sensor that interprets unavailable as off, etc.