Find out what was up with this?
I got the same things as @febba
2017-08-15 11:05:36 ERROR (SyncWorker_16) [custom_components.media_player.ps4] Failed to call info:
HTTPConnectionPool(host='hassio.local', port=3031): Max retries exceeded with url: /ps4/192.168.x.x/info
(Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x73f09650>: Failed to establish a new connection: [Errno -2] Name does not resolve',))
When curling or visiting the api url (http://hassio.local:3031/ps4/192.168.x.x/info) through a browser it works though:
{
"type": "device",
"statusLine": "200 Ok",
"statusCode": "200",
"status": "Ok",
"host-id": "xxxxxxx",
"host-type": "PS4",
"host-name": "xxxxxx",
"host-request-port": "997",
"device-discovery-protocol-version": "00020020",
"system-version": "04730001",
"address": "192.168.x.x",
"port": "997"
}
EDIT: Seems as if Hassio is unable to network with .local addresses where Hassbian could (possible due to being full-fledged Debian instance). Working with localhost:3031
instead of hassio.local:3031
at least made that log go away. Can’t seem to turn on PS4 though…
@danrspencer, please check docker logs, there should be some error.
@thibmaek, what do you have in ps4 media player config in host
? I assume hassio.local? Change to IP instead
Just changed it to:
host: http://localhost:3031
ps4_ip: 192.168.x.x
and that seemed to get rid of the log. When trying to visit the /on /off api pages I keep getting:
"status": "Unable to go standby:11"
I also tried to reconfigure my credentials by pairing it on my MacBook locally and then after setting it up there, copying my credentials: 56Ghdhd…
from ~/.ps4-wake-credentials.json
to the PS4WakerBridge add-on.
Are you able to go into standby mode using regular ps4waker cli? Wrapper is essentially calling same methods. There was some OS update for ps4 recently, not sure if it’s related.
@vkorn
So this might be a more lengthy reply, I’ll outline the process.
- Using my MacBook I installed ps4waker. Using that computer I went through the pairing process via my phone and the pin code on the PS4.
- After this I got the
~/.ps4-wake-credentials.json
file and I copied the value for the"credentials": "…"
property. - I installed the addon for hassio provided in your repo.
- Pasted the credentials value into the options on the add-on page in Hassio. The port is set to 3031 in the options
- Started the service and added the following component:
media:
- platform: ps4
host: http://localhost:3031
ps4_ip: 192.168.x.x
name: "Playstation 4"
local_store: games
- Restarted homeassistant just to be sure.
- The api is visitable at http://hassio.local:3031 and I can get the info by going to /ps4/192.168.x.x/info
- Trying to do anything else just results in a
"status": "unable to…""
error. - Going back to my MacBook I can use
ps4-waker standby
orps4-waker on
to toggle power on my PS4.
What I find curious, why don’t I have to provide the PIN in the add-on, but I do on my MacBook?
I’m getting similar issues. I can see the current activity on the PS4 but can’t turn on / off or change the activity. I also can’t see the album art.
Thanks to @thibmaek, your last post helped me get up and running this far at least.
Has anyone progressed any further with this issue recently?
I managed to get the PS4-Waker stuff working, here’s what I did:
- SSHed onto the host OS on the Pi
- Connected to the ps4-waker docker image
a.docker ps
b.docker exec -it [id for ps4-waker container] /bin/bash
- Install ps4-waker:
npm install -g ps4-waker
- Delete the
ps4-creds.json
for now:rm /data/ps4-creds.json
- Run ps4-waker and setup again:
ps4-waker -c /data/ps4-creds.json
- The
ps4-creds.json
should get re-created after you’ve gone through the setup. My creds were the same as previously so I didn’t have to do anything else such as update theoptions.json
That was it, after that I can turn the PS4 on and off and start activities. Although I’m still not seeing any game box art?
My hypothesis is that the PS4 validates the mac address of the “app” calling it, so having set it up on another machine the mac address won’t match.
Hopefully this works for you too @thibmaek !
That sounds like an approach that should indeed work but unfortunately the docker cli is not available in hassio on Raspberry Pi
Probably means using this SSH method:
Trying to use the SmartThings-Mqqt bridge Add-on and I’m getting an error. Let me know if I’m missing something:
On my HA States screen I get this error:
Invalid Config
The following components and platforms could not be set up:
mqtt
light.mqtt
Please check your config
Here is my config:
light:
- platform: mqtt
name: "Back Hallway Light"
state_topic: "smartthings/Back Hallway Light/switch"
command_topic: smartthings/Back Hallway Light/switch"
payload_on: "on"
payload_off: "off"
retain: true
Is this supposed to go in my main HA configuration.yaml file?
Do I need something else in my config file that I’m missing?
Do I need “mqtt:” in there or is that handled by the add-on’s config?
How can I double check my “bridge_port” in Hassio?
Yep, I did mean the debug method. I’ve updated my wording to be slightly clearer.
The addon only creates the bridge. You still need to setup an mqtt server for the bridge to connect with.
Yeah, I have the Mosquitto Broker installed via Hassio
Hey @vkorn, first of all - great work! I’m trying to setup HADashboard, and even managed to get the AppDaemon’s welcome UI once, but getting no response now. Any advice on troubleshooting, please?
My appdaemon.yaml:
HASS:
ha_url: http://172.17.0.1:8123
ha_key: xxx
HADashboard:
dash_url: http://192.168.1.40:3030
dash_dir: /config/hadaemon/dashboards
And options:
{
“domain”: “192.168.1.40”
}
When opening http://192.168.1.40:3030/ - “192.168.1.40 refused to connect.”
Many thanks
I resolved my issue. I was trying to get my Pi’s MAC address by doing ifconfig
in the SSH and it was returning the Docker MAC address. I was unaware of this until @dale3h figured out that was the issue. We pulled the Pi’s MAC address off of the router and it started working.
Is there any way to get the PS4 credential if I am on Hassio and i haven’t used PS4 waker before?
@vkorn do you have working dashboards in hassio which also makes use of nginx? Because the forum (hassio section) is full of confusion and failures on this topic.
My continuous struggle with HADashboard>
I also have never used ps4waker before. Is it possible to get new credentials on Hassio ?
Any plan to update appdaemon to the latest build?