Native PlayStation 4 Component Discussion

There is a bug with state reporting. Fixes proposed but awaiting approval. https://github.com/home-assistant/home-assistant/pull/28897

The issue is with the lovelace media player card. You can still use turn_on service.

All good. I donā€™t have any automations for controlling it yet just something I noticed and wanted to make sure it wasnā€™t on my end. Flipped through a couple recent pages of comments and didnā€™t see anything.

Thank you

I had a problem with my network and ps stopped responding to commands. How do I reset the integration?
In mobile application does not appear home assistant

Is there an easy way to turn off the ps4 completely? Ie. not just rest mode?

I donā€™t think we have any functionality via HA that isnā€™t in the PS4 companion app, and I donā€™t believe the companion app has any way to turn it right off? Soā€¦ No, I donā€™t think so?

@Courtenay_Watson @ryan6061 I donā€™t believe there is a way to turn off completely from the companion app. I donā€™t think remote play can do that either .

As far as features go, if any of the official Playstation apps has the ability to perform a feature, we may be able to add it. However, if they donā€™t then weā€™re pretty much out of luck.

1 Like

Looking if anyone else is having this issue.
Iā€™ve been using the component successfully for quite some time now. Recently however Iā€™ve gotten an invalid config notification on restart. and get this error in the log

2020-01-08 22:40:18 ERROR (MainThread) [homeassistant.setup] Error during setup of component ps4
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 172, in _async_setup_component
    hass, processed_config
  File "/usr/src/homeassistant/homeassistant/components/ps4/__init__.py", line 56, in async_setup
    transport, protocol = await async_create_ddp_endpoint()
  File "/usr/local/lib/python3.7/site-packages/pyps4_2ndscreen/ddp.py", line 130, in async_create_ddp_endpoint
    transport, protocol = await loop.create_task(connect)
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 1211, in create_datagram_endpoint
    raise ValueError("Passing `reuse_address=True` is no "
ValueError: Passing `reuse_address=True` is no longer supported, as the usage of SO_REUSEPORT in UDP poses a significant security concern.

I tried removing and recreating the integration. It doesnā€™t give me any error. But it doesnā€™t create any entities. Just says ā€˜integration has no devices.ā€™ I have a feeling it has something to do with the 'reuse_address=true being some update somewhere that broke this. But just want to make sure Iā€™m not missing anything.

Iā€™m running the hassio supervisor via docker on ubuntu 18.04 lts.

1 Like

Same thing happening to me on hassio 103.6 on an RPi. I tried the same steps as you.

This should be fixed in 104.0. It was caused by an update to python 3.7.6.

1 Like

Hi that sound good but when will 104 be released?

Should be next wednesday.

1 Like

I can confirm this fixed the issue!

My ps4 switch is shown as on in HomeKit when itā€™s in Standby mode, any idea how to fix this?

I apologize for this bug. There seems to be no progress for resolving this. All proposed fixes including a revert of the change have been disapproved or have been ignored unfortunately.

2 Likes

Hi Guys, First time posting here.
Newbie in Home Assistant. I was able to already do some funky stuff with hass.
Itā€™s runnung as container on my Rasbian/PI4 install.
Now I try to add my PS4. And I canā€™t seem to do anything.
The PS4 integrations partis turning around and after some time
and as far as i know hass, the only log I see is :

[pyps4_2ndscreen.credential] Credential service has timed out with no response.

And nothing more. Can one of you guide/help me on settings this ?
For info, the PS4 is on static IP and is connecter to the same network obviously.

@EkielZan Welcome to HA. Have you by chance followed the instructions in the docs? https://www.home-assistant.io/integrations/ps4/ You will need to use the Sony PS4 2nd Screen app and tap on the Home-assistant device when the wheel is spinning.

I canā€™t get the power off function to work. But if pushing pause it works perfect and after some button mashing on pause the power off works too. Har tried to delete it and set it up as new again. Same problem. Everything else works just fine.

Update 0.105.4 Problem python 3.8.1

2020-02-15 16:54:14 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/mnt/mmc0/work/homeassistant/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 418, in start resp = await task File "/mnt/mmc0/work/homeassistant/lib/python3.8/site-packages/aiohttp/web_app.py", line 458, in _handle resp = await handler(request) File "/mnt/mmc0/work/homeassistant/lib/python3.8/site-packages/aiohttp/web_middlewares.py", line 119, in impl return await handler(request) File "/mnt/mmc0/work/homeassistant/lib/python3.8/site-packages/homeassistant/components/http/real_ip.py", line 39, in real_ip_middleware return await handler(request) File "/mnt/mmc0/work/homeassistant/lib/python3.8/site-packages/homeassistant/components/http/ban.py", line 72, in ban_middleware return await handler(request) File "/mnt/mmc0/work/homeassistant/lib/python3.8/site-packages/homeassistant/components/http/auth.py", line 135, in auth_middleware return await handler(request) File "/mnt/mmc0/work/homeassistant/lib/python3.8/site-packages/homeassistant/components/http/view.py", line 123, in handle result = await result File "/mnt/mmc0/work/homeassistant/lib/python3.8/site-packages/homeassistant/components/config/config_entries.py", line 160, in post return await super().post(request, flow_id) File "/mnt/mmc0/work/homeassistant/lib/python3.8/site-packages/homeassistant/components/http/data_validator.py", line 50, in wrapper result = await method(view, request, *args, **kwargs) File "/mnt/mmc0/work/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/data_entry_flow.py", line 89, in post result = await self._flow_mgr.async_configure(flow_id, data) File "/mnt/mmc0/work/homeassistant/lib/python3.8/site-packages/homeassistant/data_entry_flow.py", line 130, in async_configure result = await self._async_handle_step(flow, cur_step["step_id"], user_input) File "/mnt/mmc0/work/homeassistant/lib/python3.8/site-packages/homeassistant/data_entry_flow.py", line 172, in _async_handle_step result: Dict = await getattr(flow, method)(user_input) File "/mnt/mmc0/work/homeassistant/lib/python3.8/site-packages/homeassistant/components/ps4/config_flow.py", line 70, in async_step_creds self.creds = await self.hass.async_add_executor_job( File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/mnt/mmc0/work/homeassistant/lib/python3.8/site-packages/pyps4_2ndscreen/helpers.py", line 79, in get_creds credentials = Credentials(device_name) File "/mnt/mmc0/work/homeassistant/lib/python3.8/site-packages/pyps4_2ndscreen/credential.py", line 43, in __init__ self.start() File "/mnt/mmc0/work/homeassistant/lib/python3.8/site-packages/pyps4_2ndscreen/credential.py", line 54, in start sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1) OSError: [Errno 92] Protocol not available

do you think it will be fixed in the future?

Hi allā€¦ yesterday i have configured my PS4 with the native component and now my log is full of thousands of messages like this ā€˜2020-02-26 21:25:45 ERROR (MainThread) [homeassistant.components.ps4] Games file was not parsed correctlyā€™ what does it mean? In the ā€˜statesā€™ section there is the media_player.playstation_4 entity so I think the integration worksā€¦

1 Like