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)
	dy05.send(address, socket, 0)

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



Project details

Download files

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

Files for solight-dy05, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size solight_dy05-1.0.0-py3-none-any.whl (3.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size solight-dy05-1.0.0.tar.gz (3.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page