@Gleno0h said in ps4 waker how to:
my conclusion was that ps4-waker depends on node 7.
hm … the package.json says node >0.8
https://github.com/jannispl/pimatic-ps4waker/blob/master/package.json#L26
ps4 waker how to
@Gleno0h said in ps4 waker how to:
my conclusion was that ps4-waker depends on node 7.
hm … the package.json says node >0.8
https://github.com/jannispl/pimatic-ps4waker/blob/master/package.json#L26
pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebook
make it so !
@leader21 in order to get the credential file you have to run ps4-waker from terminal and pair through your phone.
NPM page of this plugin states it has ps4-waker as a dependencie.
Tried to use the official ps4-waker which results in an unexpected token error, and according to the github, this is because of a too low version of node.
Quote from dev of ps4-waker;
dhleong
commented about 1 month ago
Released 1.3.3; please give it a shot and let me know if there're any other problems for you.
I'd love to just support 7, but since Node6 is still LTS until like October, I feel I should support it.
OK, i see. hm … actually we’re not yet working on node 6 / 7 compatibility but guess we need to do our homework soon.
pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebook
make it so !
I have it working but it was a bit complicated.
Sadly I don’t exactly remember how I did it.
I remember looking at the code to grasp how it works.
I think I did the following (playstation must be on):
pimatic-app/node_modules/pimatic-ps4waker node_modules/ps4-waker/bin/
foldernode cmd.js
@thex i was indeed looking through the cmd.js file this morning and i figured it out.
After running node cmd.js it booted my ps4 without any credential file… Think thats weird but meh… After that i tried node cmd.js standby
which just said that my ps4 was on instead of turning it off.
So the fix for this is to remove the (default?) credential file:
sudo rm -r ~/.ps4-wake.credentials.json
After that, ive ran node cmd.js again which now finally gave me instructions.
So, after going through that, the standby command worked and put it into standby.
If you want to use the pimatic plugin you need to move the credentials file:
sudo cp -r ~/.ps4-wake.credentials.json /home/pi/credentials.json
And add it in the plugin configuration + the ps4 ip. Credential path is /home/pi/credentials.json
Downside though, pimatic keeps telling “switching on…” until a time out, then it switches to on.
Another great feature is to start a app from pimatic. For this you need to make a button device and attach to following rule:
WHEN COD-IW is pressed THEN
execute "sudo /home/pi/pimatic-app/node_modules/pimatic-ps4waker/node_modules/ps4-waker/bin/cmd.js start CUSA05282"
Or, for mediaplayer:
WHEN Mediaplayer is pressed THEN
execute "sudo /home/pi/pimatic-app/node_modules/pimatic-ps4waker/node_modules/ps4-waker/bin/cmd.js start CUSA02012"
In order to find the correct TitleID you can use this command after you launched the app from the ps4:
sudo /home/pi/pimatic-app/node_modules/pimatic-ps4waker/node_modules/ps4-waker/bin/cmd.js search
Then look for running-app-titleid
These only work if the ps4 is on so you could combine them if you want:
WHEN Mediaplayer is pressed THEN switch playstation4 on and after 5 seconds execute "sudo /home/pi/pimatic-app/node_modules/pimatic-ps4waker/node_modules/ps4-waker/bin/cmd.js start CUSA05282"
Also have a shell sensor that filters the app name
@suchalaugh said in ps4 waker how to:
Just give the PS a switch. That’s what I did to mine. I created a ping device in pimatic for my TV, whenever it turns on and connects to the wifi, the 433mhz switch for the PS turns on. You wouldn’t believe how much energy the playstation consumes in standby
But my PS4 does not boot when power returns (or a switch is turned on). What am I missing?
@gleno0h said in ps4 waker how to:
Also have a shell sensor that filters the app name
How did you implement that shell sensor?
Hi there,
can you please confirm this is not working anymore after some PS4 firmware update? … meanwhile tried everything out, “CUSA commands” are working like a charme while PS4 is switched on BUT no startup switch indeed since the/an firmware update…
These only work if the ps4 is on so you could combine them if you want:
WHEN Mediaplayer is pressed THEN switch playstation4 on and after 5 seconds execute "sudo /home/pi/pimatic-app/node_modules/pimatic-ps4waker/node_modules/ps4-waker/bin/cmd.js start CUSA05282"
I set up pimatic-ps4-waker yesterday with recent PS4 firmware and it works well. Wake up of PS4 works only if enabled in standby-mode.
@arthurdent said in ps4 waker how to:
I set up pimatic-ps4-waker yesterday with recent PS4 firmware and it works well. Wake up of PS4 works only if enabled in standby-mode.
ahhhh, thanks a lot man! --> error [pimatic]: Device didn’t wake in time!
@arthurdent as it apears i have removed them from my system.
I believe i used the search function to get the title.
See what ps4-waker search
outputs. If it is in JSON format, you can filter with the app JQ. Otherwise you could grep it.
Feel free to post the output so i can help you out if needed.
@gleno0h I think I know how to get the title or the app name and while I am writing this I understand that you used shell sensor. I am quite familiar with bash and should be able to manage it by myself. But I won’t forget that you offered assistance