Skip to content

Latest commit

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

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
importtimeimportpigpiofromdy05importDY05pi=pigpio.pi()
dy05=DY05(pi, 17)
address=42socket=1whileTrue:
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

About

Python library for controlling Solight DY05 sockets from Raspberry Pi

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages