Skip to main content

Control Solight DY05 sockets

Project description

Python Solight DY05 library for Raspberry Pi

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

How to use it

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

sudo apt-get install pigpio
sudo pip3 install solight-dy05
sudo pigpiod
import time
import pigpio
from dy05 import DY05

pi = pigpio.pi()
dy05 = DY05(pi, 17)
address = 42
socket = 1

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

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

License

MITNFA

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

solight-dy05-1.0.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

solight_dy05-1.0.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file solight-dy05-1.0.0.tar.gz.

File metadata

  • Download URL: solight-dy05-1.0.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for solight-dy05-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ba35fc3edf845cc621b9483cb3e1b1b2cc59640a970a5acfec970627c4671d3a
MD5 71840df16c9e069579f9db4267fe2fc5
BLAKE2b-256 7a6e89d89090a783bd882b2cc2854287128121fc44b463cfd42d4c303549258c

See more details on using hashes here.

File details

Details for the file solight_dy05-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: solight_dy05-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for solight_dy05-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3a622000cac232da4d7121cf012d7d119408f03803513e89a137fcb729a98d79
MD5 5e184bb7c2d6fda094fae80e098d56be
BLAKE2b-256 b49abcaa300b96609ccdb0e90d01649b7ea9d30e64a777640c9289e674ae76e7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page