I was at the same stage one week ago. I could see a small round icon, but there was no cover on the full media card.
Next step is to try using this modified ps4.py component : https://github.com/abdel-elbel/homeassistant-config/blob/master/custom_components/media_player/ps4.py (that solved the issue in my case)
You are right again Thanks! Seems to work now:
As of today my Hassio log is full with these messages, all day long and every minute:
The playstation shows idle:
Anybody an idea what’s going on?
Somehow I was able to resolve this by going to the configuration in docker again, a reboot of hassio and now it seems to work again. Not sure why it was broken.
Have you managed how to get rid of this error?
I have it too.
**Official PS4 Pull request: https://github.com/home-assistant/home-assistant/pull/20007
Native PlayStation 4 Component Discussion
Hi sholofly,
Have you been able to fix this issue? I have the component running just fine. Just struggling with the artwork, like you. Greetz, Roland.
The PS4 component seems to run fine for a couple of days, then it logs this message a couple of times every minute.
Any idea how to avoid and fix this?
Hi Roland,
Unfortunately not. I’ve focussed on other thing last few weeks, so i’ll give it a try soon. Keep you posted!
I am adding the art work manually now, by adding a .jpg picture of a game to the www/games folder in hassio. Works fine for now, automatic art work would be great.
Can you turn on or off the Playstation when you see this error message ?
I have encountered the same issue too. In my case, my router is to blame : my Raspberry Pi can’t discover the PS4. Using the ssh interface, the Raspberry pi couldn’t ping the PS4. I had to manually add an ARP entry in the Raspberry pi, and it fixed the issue.
Can you post a semaple of how you do the local file for the img?
thanks
Does anyone know if there is a way to automatically login with a defined user ? With this custom component, my PS4 turns on but waits on the user selection on the login screen. Is there a way to bypass that ? I don’t need to do that when I manually turn on my PS4 or use the PS4 second screen app.
Google search is your friend:
Thanks for your answer, but my PS4 is already configured to automatically sign me in (only user) when the system is switched on. As said in my previous post, it does sign me in when I manually power on the PS4, or use the PS4 second screen app to turn it on.
However, when I use the HomeAssistant component, the system turns on but it asks me to press the “PS” button of the remote, and then choose the user.
This custom_component is broken in 0.88.
Think you can patch the ps4.py script like that :
Replace this (around line 10 or 11)
from homeassistant.components.media_player import (
ENTITY_IMAGE_URL, MEDIA_TYPE_CHANNEL, MediaPlayerDevice, PLATFORM_SCHEMA,
SUPPORT_SELECT_SOURCE, SUPPORT_STOP, SUPPORT_TURN_OFF, SUPPORT_TURN_ON,
)
with that
from homeassistant.components.media_player import ( DOMAIN,
MediaPlayerDevice, PLATFORM_SCHEMA, ENTITY_IMAGE_URL)
from homeassistant.components.media_player.const import (
MEDIA_TYPE_CHANNEL, SUPPORT_SELECT_SOURCE, SUPPORT_STOP, SUPPORT_TURN_OFF, SUPPORT_TURN_ON
)
Thanks I’ll try and report^
I Changed to:
"""Playstation 4 media_player using ps4-waker."""
import json
import logging
import socket
from datetime import timedelta
import voluptuous as vol
import homeassistant.util as util
from homeassistant.components.media_player
import ( DOMAIN, MediaPlayerDevice, PLATFORM_SCHEMA, ENTITY_IMAGE_URL)
from homeassistant.components.media_player.const import (
MEDIA_TYPE_CHANNEL, SUPPORT_SELECT_SOURCE, SUPPORT_STOP, SUPPORT_TURN_OFF, SUPPORT_TURN_ON )
from homeassistant.const import (
CONF_FILENAME, CONF_HOST, CONF_NAME, STATE_IDLE, STATE_OFF, STATE_PLAYING,
STATE_UNKNOWN,
)
from homeassistant.helpers import config_validation as cv
from homeassistant.util.json import load_json, save_json
That did it!
thanks!
I updated the custom component with the latest ps4.py file but now I get the following error when I do a config check. Any idea where this is coming from?
WARNING:homeassistant.helpers.config_validation:Your configuration contains extra keys that the platform does not support.
Please remove [cmd].
My config looks like:
- platform: ps4
name: ‘Playstation 4’
host: 192.168.1.114
cmd: ‘sudo ps4-waker’
filename: ‘ps4-wake.credentials.json’
games_filename: ‘ps4-games.json’