Hi there,
I am trying to get this up and running. This will make my life so much easier! Thanks for the good work!
I installed nodejs and ps4-waker got everything working. ps4-waker can see my ps4 and control it. I added the custom component, configured the following:
media_player:
- platform: ps4
host: 192.168.88.196
name: Playstation
and it popped up in my home assistant. The problem is, I cant control the ps4 from HA. The media player sits in off state permanently. I think I have done something wrong around the credentials files. I copied the the .ps4-wake.credentials.json
credentials file from /root/ to my home-assistant config directory and the contents of the file seem to be good.
I then tried the following config:
media_player:
- platform: ps4
host: 192.168.88.196
filename: /root/.ps4-wake.credentials.json
name: Playstation
I just get a bunch of permissions issues in the log and errors that the json file could not be read.
I then tried this one:
media_player:
- platform: ps4
host: 192.168.88.196
filename: /home/homeassistant/.homeassistant/.ps4-wake.credentials.json
name: Playstation
but this just pops up a configurator card in home assistant. entering the same file name does not work.
with the first set of config and the actual credential file in the home assistant configuration directory, I also get the following in the log file:
2018-08-05 10:10:40 ERROR (Thread-3) [pyps4.ddp] failed to send data using socket, timed out
2018-08-05 10:10:49 WARNING (Thread-4) [netdisco.ssdp] Found malformed XML at http://192.168.88.198:59215:
invalid request
2018-08-05 10:10:53 ERROR (Thread-6) [pyps4.ddp] failed to send data using socket, timed out
2018-08-05 10:11:15 ERROR (Thread-3) [pyps4.ddp] failed to send data using socket, timed out
2018-08-05 10:11:37 ERROR (Thread-22) [pyps4.ddp] failed to send data using socket, timed out
I tried everything here. even creating the credentials file in the home-assistant user’s directory. The log reports no errors apart from
[netdisco.ssdp] Found malformed XML at http://192.168.88.198:59215:
invalid request
but the media player does not do anything!
Cant wait to get this running!!!