Skip to main content

Python Solight DY01 library for Raspberry Pi

This library allows you to control Solight DY01 sockets from Raspberry Pi.

How to use it

Connect a cheap 433 MHz transmitter to any GPIO pin (e.g. 17)

sudo apt-get install pigpio
sudo pip3 install solight-dy01
sudo pigpiod
import time
import pigpio
from dy01 import DY01

pi = pigpio.pi()
dy01 = DY01(pi, 17)
address = 1007 # Default address of socket A

while True:
	dy01.send(address, 1)
	time.sleep(1)
	dy01.send(address, 0)
	time.sleep(1)

After running this script, you should see the socket turning on and off every second.

License

MIT

Metadata

Release files for solight-dy01 1.0.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 solight-dy01 1.0.0
File Size Uploaded Provenance Actions
solight-dy01-1.0.0.tar.gz 2.9 kB Without provenance Details for solight-dy01-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for solight-dy01 1.0.0
File Interpreter ABI Platform Actions
solight_dy01-1.0.0-py3-none-any.whl Python 3 none any Details for solight_dy01-1.0.0-py3-none-any.whl

Total release size: 6.4 kB

Release files / solight-dy01-1.0.0.tar.gz

Download URL solight-dy01-1.0.0.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
09a00060f465dacd1b54fc3fbc1659946332d852f578e73188d9d24c96e16028
BLAKE2b-256 checksum
How to use checksums
fdc2004b4aa7c24869d67377f0ff7fb448f4a66be148ed35cfc11b46188ba8b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.3

Release files / solight_dy01-1.0.0-py3-none-any.whl

Download URL solight_dy01-1.0.0-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8f76561046481ef5c68bafe9d9464bffbbe4576ab4609137141aac7daf8379e3
BLAKE2b-256 checksum
How to use checksums
766f0939579bf5c46e310980a6a7a5784564aad888bdd0dc815f540668ff70e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.3

Security for solight-dy01 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

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