Skip to main content

pymagicstrip

Purpose

Minimal python library for controlling LED controllers that use the MagicStrip iOS/Android app. These are inexpensive, white labeled controllers available on Amazon, AliExpress, etc.

The firmware on these devices is terrible so feature support is spotty.

Device Support

This library only supports RGB LED strips that appear in the MagicStrip app under the name "HTZM". RGBW, RGBWW, etc. devices are not currently supported.

Feature Support

Feature Read Property Set Property Notes
Power ✅ ⚠️ Device firmware does not have discrete on and off commands. This library can only toggle state.
Brightness ✅ ✅
Color 🚫 ✅
Effects 🚫 ✅ We technically can read this property, but the device does not report whether it is in solid color mode or effect mode, so the report is useless.
Effect Speed 🚫 ✅ (See above.)
Sound / Music Mode 🚫 🚫

Use

This library is based on the python bleak library and does not abstract/wrap all features. You must use bleak directly alongside pymagicstrip.

For usage examples, see https://github.com/elahd/ha-magicstrip. (Apologies for the lack of clear examples here.)

Credit

Pymagicstrip is heavily based on elupus' Fjäråskupan Bluetooth Control library.

MIT License

Copyright (c) 2022 Elahd Bar-Shai

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Metadata

Release files for pymagicstrip 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pymagicstrip 0.1.0
File Size Uploaded
pymagicstrip-0.1.0.tar.gz 9.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pymagicstrip 0.1.0
File Interpreter ABI Platform
pymagicstrip-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 17.5 kB

Release files / pymagicstrip-0.1.0.tar.gz

Download URL pymagicstrip-0.1.0.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
9ab4e9a7beea143457ee76036b2228c7c485b21e4384e50aaa0bef6d9e6e3650
BLAKE2b-256 checksum
How to use checksums
2abf3d4bf163bc4c6404741ecad64fceb114e9d9569d3372db39a917ba3c9fdb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

Release files / pymagicstrip-0.1.0-py3-none-any.whl

Download URL pymagicstrip-0.1.0-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
be1601ae4ea3ea7da901e92adfda9b34abfa1771e35c65c1c741843796b14028
BLAKE2b-256 checksum
How to use checksums
345a98590b1de93e050db98072f2d4b7f0f240d316a035426edac4cd6643fd4f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page