A Python library to wakeup PlayStation (ps3, ps4, ps5) on BlueTooth
Project description
PyWakePlaystationX (ps3, ps4, ps5) On BlueTooth
This is a simple Python library to switch on a Sony ps3/ps4/ps5 using Bluetooth. This version extends the previous one developed for PlayStation 4 only.
The main objective is to include it into Home Assistant components to provide a "Wake PsX On Bt" service.
How does it work ?
The Playstation with bluetooth controler can be simply switched on via :
- Spoofing a previously paired controler (SixAxis/DualShock3, DualShock4 or DualSense) BDADDR
- Initiating a HCI connection to the PlayStation BDADDR
Supported Devices
The module tests the adapter support via a hci_read_local_manufacturer
python implementation and read the manufacturer
returned value from OCF_READ_LOCAL_VERSION
Currently supported adapters :
- Broadcom devices (
manufacturer = 15
) - Cypress Semiconductor devices (
manufacturer = 305
) - Intel devices (
manufacturer = 2
)
Get Bluetooth addresses over USB
Plug the DualShock3/4 or DualSense controler on your computer using micro USB cable.
Once pywakepsXonbt
is installed, run the following command from a python shell:
>>> import wakepsXonbt
>>> wakepsXonbt.get_bt_addr()
{'type': 'dualshock3'/'dualshock4'/'dualsense', 'dsbt_address': '00:1F:E2:12:34:56', 'psXbt_address': '90:CD:B6:12:34:56'}
No external dependency
Recent versions (0.7+) do not use external dependencies for bluetooth and HCI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pywakepsXonbt-0.1.2.tar.gz
.
File metadata
- Download URL: pywakepsXonbt-0.1.2.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35e9c13a7ccc241a74ed1a9237330ca07bced930f2b8934e22da5680fd49160a |
|
MD5 | 64b9f8b82ec9df6c258d142d275cfb64 |
|
BLAKE2b-256 | b7ac211a5c7e3eb254aa492cc6e47a637997c0cbbe371a0950961801e20923c5 |
File details
Details for the file pywakepsXonbt-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: pywakepsXonbt-0.1.2-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f67039a6917717b5d832288ed8d54db5d525c26603438aea2bd552efaf139c61 |
|
MD5 | 63c91c25cf26ecd4483344fcd9bb17ed |
|
BLAKE2b-256 | 5f3ce7e3f2c6ff1a1bf6b3fa82e226549efbdc0dff9cf94b818c57ecc7e41ff3 |