You should run the command on /usr/bin/pythong3.6 then but be careful with the type of quotes. You have “curly” quotes there and you need straight ones. Having curly quotes will lead to the error you see.
I’m not that familiar with doing things like that sorry.
Something like this would be fine. Just something to show that the PS4 is actually turned on. I use mini-media-player, and it looks the same when idle as it does when off.
Thanks for the tip!
Will look into it.
But I have no python3.6 in my usr/bin, only a python3.4
I use a virtual environment in which a python3.6 is active.
Should I use the python3.4? Or the one in my virt env.
Still a bit puzzled about how this works with the virt env
try running that in your venv to see where Python is. If it’s a real binary in your venv and not a symlink then, yes, use setcap on that. Otherwise, use it on wherever python is actually installed.
Yup. Got some good feedback on using scripts and wait_template(state) so I’ve closed the PR. Will post the full solution here when I got the time to finish up the script and automation.
The switch turns on my media centre plug (tv, speakers, backlights), and the remote command sets the source for the PS4. You may not want/need these. I found the PS4 can take some time to wake up so the 12 second delay wait template gives it enough time from being turned on to getting to the “press ps button” screen. I habitually quit games after playing them as I played Elite Dangerous a lot which had a habit of crashing if you didn’t quit it before putting the PS4 into rest mode. You may want a further delay and then a ps4.send_command: enter if you don’t do this.
From scenes.yaml;
- name: Football
entities:
script.fifa18:
state: on
Then I just say “echo, turn on football”.
Hmm, I’m getting mixed results for the ps command. I’m sure this will work itself out.
Yeah as I mentioned I was having mixed results last night. However this morning it worked perfectly for RDR2. The ps command should actually be “enter”; this is only needed if you are starting a different game to the one you had running before you went into rest mode.
First, thanks for this awesome component! Does anyone know how to disable the endless stream of Companion App connected/disconnected notifications on the PS4 side? Is this a configuration issue on my end?
Tip for anyone creating switches or commands to run a game, if the game title has a : in it change the game name in the file .ps4-games.json in config folder as HA does not like the colon! i.e. Call of duty: Modern Warfare change to Call of duty Modern Warfare