A simple program to control smart bulb using Minecraft. I use this program for one of my video on Youtube.
Hardware:
- Yeelight Smart Bulb - Color W3
- Smartphone (to connect smart bulb to Wi-Fi)
Software:
- Minecraft server
- Python 3
- Python Library:
mcpi
,yeelight
- Minecraft Plugin:
Raspberry Juice
Just follow the installation process through Yeelight app. Write down the IP of the smart bulb shown in the app.
pip install mcpi
pip install yeelight
- Setup a minecraft server (I use Spigot version 1.16.5)
- Drag
Raspberry Juice
to plugin folder
- Create a set of blocks with different color for trigger. Here I use
redstone block
for red, lapislazuli block
for blue,grass block
for green, andsand block
for yellow. - Specify the smart bulb's IP in line 9 of
main.py
- Specify Minecraft server's IP and port in line 10 of
main.py
- Activate the program with
python main.py
- Program with brightness control can be used with
python brightness.py
- It should work