PlayStation binding

I use this binding to shutdown my sons PS4 to manage his screen time. I have Alexa sending a voice message X minutes before it does it to let him know but often he has his cans on and doesnt hear it. Any way to send a message to the screen with this binding to I can visually indicate it?

There is no “toast” functionality that I know of, the only alert is when the binding connects and disconnects. Now you can actually do that without sending any commands, maybe that can get his attention?

Better than nothing - just a disconnect and reconnect?

The text in that message - is that not controllable through some smoke and mirrors? A string parameter that could be injected in?

It tells the name from the time openHAB paired to the PS4, this is today hardcoded in the binding and the only time it’s updated is when you do the pairing. :confused:

Hi there.
I’d love to be able to use my step sons playstation as an audio sink to tell him supper’s ready :grin:. Can you add this to the binding if not yet possible?
Anyone else interested?

Can anyone tell me when I should be able to control power on off? I have the binding configure to log on the the PS as one user but the main user logs on and seems to need to connect a controller and put in their pin before the binding “kicks in”?

I fixed the log on issue, will release a 2.5 version after the plug-in is approved.

1 Like

New version which hopefully fixes the log-in at power on. Also added possibility to populate the application-id state with the last x number of applications used (as long as openHAB is running), will add some kind storing of the values later on.

2 Likes

Hi, I am really excited about your binding and implementing my playstation into openhab.

Unfortunatly I have some trouble. I set up the binding and I can connect to my playstation, which the console also confirms with the message in the top left corner and I can see it in the openhab logs.

2020-12-20 00:16:41.204 [hingStatusInfoChangedEvent] - 'playstation:PS4:417281a0' changed from OFFLINE (COMMUNICATION_ERROR): Receive timed out to ONLINE: Status OK.

2020-12-20 00:16:41.897 [DEBUG] [ding.playstation.internal.PS4Handler] - Resp; size:12, command:SERVER_STATUS_RSP, statValue:9, data:[12, 0, 0, 0, 18, 0, 0, 0, 9, 0, 0, 0].

2020-12-20 00:16:41.897 [DEBUG] [ding.playstation.internal.PS4Handler] - Server status value:9

2020-12-20 00:16:41.898 [DEBUG] [ding.playstation.internal.PS4Handler] - Sending STATUS_REQ packet.

2020-12-20 00:16:51.887 [DEBUG] [ding.playstation.internal.PS4Handler] - Resp; size:12, command:SERVER_STATUS_RSP, statValue:9, data:[12, 0, 0, 0, 18, 0, 0, 0, 9, 0, 0, 0].

2020-12-20 00:16:51.887 [DEBUG] [ding.playstation.internal.PS4Handler] - Server status value:9

2020-12-20 00:16:51.888 [DEBUG] [ding.playstation.internal.PS4Handler] - Sending STATUS_REQ packet.

2020-12-20 00:16:52.665 [hingStatusInfoChangedEvent] - 'playstation:PS4:417281a0' changed from ONLINE: Status OK. to OFFLINE (COMMUNICATION_ERROR): Receive timed out

However, shortly after the connection is established I get the receive timed out message. In general I can wake the console from standby and shut it off to standby. So there definetly at least seem to be commands received by the console. But I cannot send keys, application IDs, or receive app or artwork data. Despite, if I read the logs correctly, there seems to be some kind of exchange between opnehab and my console even after the time out message:

2020-12-20 00:16:41.204 [hingStatusInfoChangedEvent] - 'playstation:PS4:417281a0' changed from OFFLINE (COMMUNICATION_ERROR): Receive timed out to ONLINE: Status OK.

2020-12-20 00:16:41.897 [DEBUG] [ding.playstation.internal.PS4Handler] - Resp; size:12, command:SERVER_STATUS_RSP, statValue:9, data:[12, 0, 0, 0, 18, 0, 0, 0, 9, 0, 0, 0].

2020-12-20 00:16:41.897 [DEBUG] [ding.playstation.internal.PS4Handler] - Server status value:9

2020-12-20 00:16:41.898 [DEBUG] [ding.playstation.internal.PS4Handler] - Sending STATUS_REQ packet.

2020-12-20 00:16:51.887 [DEBUG] [ding.playstation.internal.PS4Handler] - Resp; size:12, command:SERVER_STATUS_RSP, statValue:9, data:[12, 0, 0, 0, 18, 0, 0, 0, 9, 0, 0, 0].

2020-12-20 00:16:51.887 [DEBUG] [ding.playstation.internal.PS4Handler] - Server status value:9

2020-12-20 00:16:51.888 [DEBUG] [ding.playstation.internal.PS4Handler] - Sending STATUS_REQ packet.

2020-12-20 00:16:52.665 [hingStatusInfoChangedEvent] - 'playstation:PS4:417281a0' changed from ONLINE: Status OK. to OFFLINE (COMMUNICATION_ERROR): Receive timed out

2020-12-20 00:17:01.877 [DEBUG] [ding.playstation.internal.PS4Handler] - Resp; size:12, command:SERVER_STATUS_RSP, statValue:9, data:[12, 0, 0, 0, 18, 0, 0, 0, 9, 0, 0, 0].

2020-12-20 00:17:01.878 [DEBUG] [ding.playstation.internal.PS4Handler] - Server status value:9

2020-12-20 00:17:01.878 [DEBUG] [ding.playstation.internal.PS4Handler] - Sending STATUS_REQ packet.

2020-12-20 00:17:11.943 [DEBUG] [ding.playstation.internal.PS4Handler] - Resp; size:12, command:SERVER_STATUS_RSP, statValue:9, data:[12, 0, 0, 0, 18, 0, 0, 0, 9, 0, 0, 0].

2020-12-20 00:17:11.944 [DEBUG] [ding.playstation.internal.PS4Handler] - Server status value:9

2020-12-20 00:17:11.944 [DEBUG] [ding.playstation.internal.PS4Handler] - Sending STATUS_REQ packet.

2020-12-20 00:17:21.929 [DEBUG] [ding.playstation.internal.PS4Handler] - Resp; size:12, command:SERVER_STATUS_RSP, statValue:9, data:[12, 0, 0, 0, 18, 0, 0, 0, 9, 0, 0, 0].

2020-12-20 00:17:21.929 [DEBUG] [ding.playstation.internal.PS4Handler] - Server status value:9

2020-12-20 00:17:21.930 [DEBUG] [ding.playstation.internal.PS4Handler] - Sending STATUS_REQ packet.

2020-12-20 00:17:32.020 [DEBUG] [ding.playstation.internal.PS4Handler] - Resp; size:12, command:SERVER_STATUS_RSP, statValue:9, data:[12, 0, 0, 0, 18, 0, 0, 0, 9, 0, 0, 0].

2020-12-20 00:17:32.020 [DEBUG] [ding.playstation.internal.PS4Handler] - Server status value:9

2020-12-20 00:17:32.020 [DEBUG] [ding.playstation.internal.PS4Handler] - Sending STATUS_REQ packet.

2020-12-20 00:17:42.004 [DEBUG] [ding.playstation.internal.PS4Handler] - Resp; size:12, command:SERVER_STATUS_RSP, statValue:9, data:[12, 0, 0, 0, 18, 0, 0, 0, 9, 0, 0, 0].

2020-12-20 00:17:42.004 [DEBUG] [ding.playstation.internal.PS4Handler] - Server status value:9

2020-12-20 00:17:42.004 [DEBUG] [ding.playstation.internal.PS4Handler] - Sending STATUS_REQ packet.

2020-12-20 00:17:51.997 [DEBUG] [ding.playstation.internal.PS4Handler] - Resp; size:12, command:SERVER_STATUS_RSP, statValue:9, data:[12, 0, 0, 0, 18, 0, 0, 0, 9, 0, 0, 0].

I am running OH 2.5.10 and the 2.5.9 version of your binding.

I did not see any comments in the forum with the same problem I am experiencing. Would be great if you could help me out. Thanks in advance

A small update:

After a general cleanup of my OH installation, I cleared the temp and cache files and restarted everything. The Playstation binding is now working better. I see the same Log messages as mentioned above, but I can despite the timed out status send Keys to the console. What is still not working is OH receiving info from the console (e.g. App ID or Cover). It seems to be a ownway street right now. My PS4 is updated to the lastest firmware (8.03), maybe that has something to do with the problem, as the update is rather new and some changes were introduced with the release of the PS5.

Did you use Paper UI to discover the PS4 or did you edit everything yourself?
Does PS4 waker print out the app-id & app-name?
I can probably change the timeout but I’m not sure that’s the problem here.

I used Paper UI to set up the PS4 not a thing file based approach. A little more detail: The auto discovery did not work for me. PS4 was turned on while I tried. I added a PS4 console manually in Paper UI with the IP adress (from FritzBox) and the user credentials (from PS4 waker). Then went into the Mobile App Connection menu in the PS4’s settings to get the Pairing Code. Which worked as the Console displayed a remote app connection called openhab.

When I use the check option via PS4 waker I can see the full info, meaning (I put in * for some fields):

{
"type": "device",
"statusLine": "200 Ok",
"statusCode": "200",
"status": "Ok",
"host-id": "*************",
"host-type": "PS4",
"host-name": "PS4-*******",
"host-request-port": "997",
"device-discovery-protocol-version": "00020020",
"system-version": "08030001",
"running-app-name": "STAR WARS Jedi",
"running-app-titleid": "CUSA12529",
"address": "***.***.***.**"
}

Have you configured the ip address openhab should use? Which platform are you running on?

I‘m running openhab as a Docker container on a Synology Diskstation. Openhab is reached via the Diskstation‘s IP plus port (for me: 192.168.178.23:16080). The PS4 is in the same network (192.168.178.32). For the PS4 Thing I have only configured the „IP Adresse“ but not the „Outbound IP“, because they are in the same network as I understand it. Should the Outbound IP also be set?

In PaperUI there is a Network Setting under Configuration->System, have you setup that?

1 Like

Ah! I did not make a selection there. Until now I guess it did not interefere with my other stuff. Anyway, it’s working like a charm. Thank you very much!

Hi all, I still didn’t get this work :-/ I’m to simple minded to get after PS4 waker procedure :-/ Anyone who can help me with it?

:sleepy:

What seems to be the issue your experiencing?

Look at this tutorial https://www.youtube.com/watch?v=hCXOFkOtYn8
Although it is in german, you should get on with it