stooged / PI-Pwn

pppwn
447 stars 83 forks source link

Add HDMI-CEC to trigger script/check status of PS4 #50

Closed vegedb closed 4 months ago

vegedb commented 4 months ago

https://gist.github.com/rmtsrc/dc35cd1458cd995631a4f041ab11ff74

How it works is raspberry pi hdmi plugged to any port of the TV, even a cheapo $10 hdmi switch will work too.

You can send commands using CEC, Example:

  1. When PS4 CEC "power status:" changes from standby to ON

  2. Run script

  3. When PS4 CEC "power status:" changes from ON to standby

  4. Stop script

This will solve, https://github.com/stooged/PI-Pwn/issues/48 as well

In addition to that, you can turn on PS4 remotely from cold boot (not rest mode). Playstation Portal users want this feature so bad as they are forced to use rest mode to power on their PS5s, chiaki for us I guess.

Kernel Panic

This is extremely helpful if you're using a smart plug to replug PS4 from Kernel Panic since you can add a webhook command to echo cec command to turn on PS4 after smart plug is on (no need to use controller) or (press power button on ps4). An automation using Tasmota "Rules" or home assistant automation.