Handle BLE communications for a SUTA bed frame such as the i500 or i800.
Project description
SUTA BLE Bed
BLE handling code for bed frames which use the SUTA app, such as the such as the i500 or i800 (and others)
Supports control of the bed but not access to the current state. Expected to be used as a module to build your own integration with some control system, but ships with a rough CLI to play with directly.
Does device discovery by name because (as far as I could tell) the bed does not support discovery by the typical manufacturer UUID.
Notionally, this should be fine unless your neighbor is actively trying to intercept your bed control.
Free software: MIT license
Documentation: https://suta-ble-bed.readthedocs.io.
Features
TODO
Usage
` device = await suta_scanner.discover()[0] bed = BleSutaBed(device) await bed.raise_feet() `
or
` ./suta_ble_bed_cli.py raise-feet `
Credits
This module would not have been possible without the research done by stevendodd on Github: https://github.com/stevendodd/sleepmotion-ble/blob/main/pi-zero/sleepmotion-ble.py
Code structure inspirired by: https://github.com/sopelj/python-ember-mug/blob/main/ember_mug/mug.py
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.3.0 (2023-030-23)
Change to Controller interface
Fix copy-paste errors
Add “is_connected” helper
0.2.0 (2023-03-21)
Switch to Cookiecutter
0.1.4 (2023-03-20)
Finally correctly packaged with description
0.1.3 (2023-03-08)
Trying to get packaging correct
0.1.2 (2023-03-08)
Trying to get packaging correct
0.1.1 (2023-03-05)
Trying to get packaging correct
0.1 (2023-03-05)
First release on PyPI.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.