Repository: Few addons

@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.

  1. 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.
  2. After this I got the ~/.ps4-wake-credentials.json file and I copied the value for the "credentials": "…" property.
  3. I installed the addon for hassio provided in your repo.
  4. Pasted the credentials value into the options on the add-on page in Hassio. The port is set to 3031 in the options
  5. 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
  1. Restarted homeassistant just to be sure.
  2. The api is visitable at http://hassio.local:3031 and I can get the info by going to /ps4/192.168.x.x/info
  3. Trying to do anything else just results in a "status": "unable to…"" error.
  4. Going back to my MacBook I can use ps4-waker standby or ps4-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?

1 Like

I managed to get the PS4-Waker stuff working, here’s what I did:

  1. SSHed onto the host OS on the Pi
  2. Connected to the ps4-waker docker image
    a. docker ps
    b. docker exec -it [id for ps4-waker container] /bin/bash
  3. Install ps4-waker: npm install -g ps4-waker
  4. Delete the ps4-creds.json for now: rm /data/ps4-creds.json
  5. Run ps4-waker and setup again: ps4-waker -c /data/ps4-creds.json
  6. 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 the options.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 !

3 Likes

That sounds like an approach that should indeed work but unfortunately the docker cli is not available in hassio on Raspberry Pi :confused:

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. :star_struck:

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>

Hass.io and HADashboard setup - Java error>

HADashboard>

1 Like

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?

Can someone tell me how exactly to use the ps4 waker thing? I want to turn my ps4 on and start a game (for instance fifa17).

Any current tutorials?

I’ve tryed many times with ps4 addon without success.
In order to have credentials I’ve installed nodejs on a windows PC and then installed ps4-waker trought cmd
I’ve followed ps4-waker instructions and i succeed getting credentials from the mobile APP.
With ps4-waker i’m able to turn the ps4 on and off
Then i’ve added the plugin, started with right credentials and putted the ps4.py file on the new folder. (i’ve hass.io on a raspberry pi 3)
Now the situation is this one:

  • i can see the playstation state on homassistant (idle or off)
  • if i try to turn it on and off it doesn’t work (in the log i find Login error: PASSCODE_IS_NEEDED)
  • if i go to http://HA_IP:3031/ i get Cannot GET /
  • if i go to http://HA_IP:3031/ps4/PS4_IP/info i can get all correct PS4 info

I really don’t know what to do now. What could be the problem?