Skip to main content

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)

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pywakepsXonbt-0.1.1.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

pywakepsXonbt-0.1.1-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file pywakepsXonbt-0.1.1.tar.gz.

File metadata

  • Download URL: pywakepsXonbt-0.1.1.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for pywakepsXonbt-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2c307e1de82414f79257e32489c5bb89cc2bfef84a3130b92fae67cddd6fb157
MD5 c3d21f4f3413acf73cdd7178841d1146
BLAKE2b-256 5db1506bf58494e54ddd4d74b9da87654798df671aa253abe1f99b74254f30b0

See more details on using hashes here.

File details

Details for the file pywakepsXonbt-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pywakepsXonbt-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 93f2f0214fb9861e2434bcded51a8c62dc24ecaf496cd0df2ebe6a576f843cbd
MD5 acfa3f4e03d008d24e92b2cb3146224a
BLAKE2b-256 05220c05a2aedd77883122e77e4674793e10820f20950828168d6ecfa017be44

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page