pywakepsXonbt


NamepywakepsXonbt JSON
Version 0.1.1 PyPI version JSON
download
home_pagehttps://github.com/FreeTHX/pywakepsXonbt
SummaryA Python library to wakeup PlayStation (ps3, ps4, ps5) on BlueTooth
upload_time2022-12-18 23:51:15
maintainer
docs_urlNone
authorFreeTHX
requires_python
licenseApache License 2.0
keywords wake playstation (ps3 ps4 ps5) on bt home assistant
VCS
bugtrack_url
requirements pybluez pyusb
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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](https://github.com/FreeTHX/pywakeps4onbt).

The main objective is to include it into [Home Assistant](https://www.home-assistant.io/ "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:
```python
>>> 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.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/FreeTHX/pywakepsXonbt",
    "name": "pywakepsXonbt",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "wake playstation (ps3,ps4,ps5) on bt home assistant",
    "author": "FreeTHX",
    "author_email": "freethx.dev@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/5d/b1/506bf58494e54ddd4d74b9da87654798df671aa253abe1f99b74254f30b0/pywakepsXonbt-0.1.1.tar.gz",
    "platform": null,
    "description": "# PyWakePlaystationX (ps3, ps4, ps5) On BlueTooth\nThis 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](https://github.com/FreeTHX/pywakeps4onbt).\n\nThe main objective is to include it into [Home Assistant](https://www.home-assistant.io/ \"Home Assistant\") components to provide a \"Wake PsX On Bt\" service.\n\n## How does it work ?\nThe Playstation with bluetooth controler can be simply switched on via :\n- Spoofing a previously paired controler (SixAxis/DualShock3, DualShock4 or DualSense) BDADDR\n- Initiating a HCI connection to the PlayStation BDADDR\n\n## Supported Devices\nThe module tests the adapter support via a ```hci_read_local_manufacturer``` python implementation and read the ```manufacturer``` returned value from ```OCF_READ_LOCAL_VERSION```  \nCurrently supported adapters :\n- Broadcom devices (```manufacturer = 15```)\n- Cypress Semiconductor devices (```manufacturer = 305```)\n\n## Get Bluetooth addresses over USB\nPlug the DualShock3/4 or DualSense controler on your computer using micro USB cable.  \nOnce ```pywakepsXonbt``` is installed, run the following command from a python shell:\n```python\n>>> import wakepsXonbt\n>>> wakepsXonbt.get_bt_addr()\n{'type': 'dualshock3'/'dualshock4'/'dualsense', 'dsbt_address': '00:1F:E2:12:34:56', 'psXbt_address': '90:CD:B6:12:34:56'}\n```\n\n## No external dependency\nRecent versions (0.7+) do not use external dependencies for bluetooth and HCI.\n",
    "bugtrack_url": null,
    "license": "Apache License 2.0",
    "summary": "A Python library to wakeup PlayStation (ps3, ps4, ps5) on BlueTooth",
    "version": "0.1.1",
    "split_keywords": [
        "wake playstation (ps3",
        "ps4",
        "ps5) on bt home assistant"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "acfa3f4e03d008d24e92b2cb3146224a",
                "sha256": "93f2f0214fb9861e2434bcded51a8c62dc24ecaf496cd0df2ebe6a576f843cbd"
            },
            "downloads": -1,
            "filename": "pywakepsXonbt-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "acfa3f4e03d008d24e92b2cb3146224a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 9218,
            "upload_time": "2022-12-18T23:51:12",
            "upload_time_iso_8601": "2022-12-18T23:51:12.859657Z",
            "url": "https://files.pythonhosted.org/packages/05/22/0c05a2aedd77883122e77e4674793e10820f20950828168d6ecfa017be44/pywakepsXonbt-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "c3d21f4f3413acf73cdd7178841d1146",
                "sha256": "2c307e1de82414f79257e32489c5bb89cc2bfef84a3130b92fae67cddd6fb157"
            },
            "downloads": -1,
            "filename": "pywakepsXonbt-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "c3d21f4f3413acf73cdd7178841d1146",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 8997,
            "upload_time": "2022-12-18T23:51:15",
            "upload_time_iso_8601": "2022-12-18T23:51:15.094699Z",
            "url": "https://files.pythonhosted.org/packages/5d/b1/506bf58494e54ddd4d74b9da87654798df671aa253abe1f99b74254f30b0/pywakepsXonbt-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-18 23:51:15",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "FreeTHX",
    "github_project": "pywakepsXonbt",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "pybluez",
            "specs": []
        },
        {
            "name": "pyusb",
            "specs": []
        }
    ],
    "lcname": "pywakepsxonbt"
}
        
Elapsed time: 0.04961s