Giter Site home page Giter Site logo

pywakepsxonbt's Introduction

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.

pywakepsxonbt's People

Contributors

freethx avatar ericma15 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.