Native PlayStation 4 Component Discussion

Thanks @SeanM, that makes sense.

I was half-way into that approach as I’m setting up Harmony activities for various different PS4 apps and selecting the ‘source’ depending on what activity my harmony sensor indicates is currently running. Basically, HA follows Harmony in a similar fashion to your setup.

I was trying to keep the PS4 as part of the Harmony activities in order to make use of the PS4 controls supported by Harmony, but as they don’t work in every PS4 App, I may follow your route and break the physical links between Harmony and PS4.

Hello,
I just set up this component. I can turn PS off and i can see the title i’m playing but turn on doesn;t work. Any ideas? Running Home Assistant on a RPi 3. Do i have to do the port thing? IF yes how?

Can you turn on from the PS4 2nd Screen App?

I used to be able to turn on my Gen1 PS4 from the app, yes. I am not able to turn on my PS4 Pro though. And sometimes my PS4 intermittently goes into “Unknown” state for some strange reason. So… not always reliable in standby mode it seems?

image

Had a power outage that also took out my ISP modem. Got a tech out today who swapped the modem. (My belief is that the hardware is different, but somehow it had my old SSID and pass.?)

Looks like my hass install made it through except the PS4 integrtation shows my PS4 state as ‘unknown’… I’ve tried multiple Hass restarts, booting the PS4 from various states as well as attempting to use the integration wizard to re-add a new PS4 integration (seems to see the PS4 during auto-discovery, I see home Assistant in the 2nd Screen app, input the PS4 PIN but the integration wizard fails saying it doesn’t see the PS4 on the network?

Help?

Hi. does any one here have a nice piece of code to import the data in the .ps4-games.jaml into one or more HA entities with either node red or with a template

sinsearly
Fredrik

hi,
i can see the ps4 running and the name of the game but i cant see the image
any help?

“CUSA11599”: {
“locked”: false,
“media_content_type”: null,
“media_image_url”: null,
“media_title”: “FIFA 19”

Hi everyone

I’m pretty new to this Hass.io thing and I got a question about the PS4 component.
How do you activate a game through google home?
I tried “Play Apex Legends on Playstation 4”, but she doesn’t find it or it’s not available at the moment.

Do I have to add those games to some config myself?
Or do I say it the wrong way?
Can’t seem to find the correct info or maybe I don’t understand it correctly.
I run Hass.io on a raspberry pi 3+, not as docker container.

Thanks in advance

Kind regards

thx this helps a lot, but i am riddling to start amazon prime video, which is not working for me as expected, when running the script it will stay in the start menu and not starting the amazon video app.

alias: amazon
  sequence:
  - service: media_player.turn_on
    entity_id: media_player.playstation_4
  - wait_template: "{{ is_state('media_player.playstation_4', 'idle') }}"
  - service: ps4.send_command
    data:
      entity_id: media_player.playstation_4
      command: ps
  - service: media_player.select_source
    data:
      entity_id: media_player.playstation_4
      source: "CUSA00126"

You should be able to just use this:

- service: media_player.select_source
    data:
      entity_id: media_player.playstation_4
      source: "CUSA00126"

The service should turn on the ps4 and then start the app. There will be some delay after turn on.

Amazon Prime Video won’t start :frowning:

edit:
also tried it with NETFLIX but won’t work, too. If I run that service when in Menu, NETFLIX starts immediately, but not as expected within the script. Any help, please?!

Try using the media_title from your .ps4-games.json file in source rather than the CUSA Id.

I am sure that I already tried it and won’t work, but will give a try once more.

You could also try adding a small delay in between the instructions you are sending to the PS4.

@reclusivemonkey is correct. You will need a delay. When the screen changes from the startup screen to the user menu that is when you should call select_source. In HA 103 all you should have to do is call select_source

Hello @SeanM can you please share what kind of device you use to send the button commands to the Playstation? A Bluetooth transmitter maybe? The native PS4 integration has ps4.send_command service but it doesn’t include triangle and square buttons commands.

Thanks!
Tales

I use Logitech Harmony hub for my PS4 and most of my entertainment devices. Harmony supports most of the PS4 controller buttons - definitely the triangle/square/cross/circle buttons, the share button, media playback controls, and PS button. (I am not 100% sure off the top of my head if it can do the triggers and touch pad.)

You can often get the hub brand new for $50-60 USD on sale.

1 Like

What delay are you talking about appr.?

Anyone else recognized that if the PS4 is in Standby mode, it will be shown as ON in HomeKit since the changes in the PlayStation integration l?!

A brief delay in the commands you are sending to the PS4. The PS4 can’t keep up with instructions sent as fast as HA can send them. So between each command set a delay in the script;

- delay: '00:00:03'

You can read more about the delay command here; https://www.home-assistant.io/docs/scripts/

Missed out on a chunk of HA updates (since 0.8x.0-ish?) and am trying to wrap my head around some things that seem to have changed…

…previously- I was able to use the power icon in the PlayStation4 pane to bring the PS4 out of ‘Rest’ and load up the main menu, then select the game from ‘Source’ to have that game load- but I don’t think HA would power the Pi if I just selected the game without using the power icon first… but now the power icon has no effect on my PS4 in ‘Rest’, but will power the PS4 by selecting just the source… but it doesn’t load the game unless I wait for it to get to the PS4 main menu before selecting the game from ‘Source’ a second time.

Was this an intended change or has something changed with my configuration? …or…? …or?