Echo Dot voice-controlled Christmas tree
By Russell Barnes. Posted
Raspberry Pi and Docker are used alongside an Echo Dot with Amazon Alexa to create a voice-controlled Christmas tree
Advertisement
Get started with Raspberry Pi – everything you need to know to start your journey!
Amazon Alexa is big news to the hacker community, thanks to deep integration with IoT (Internet of Things) projects. This approach makes it easy to hook up cheap hardware, such an Amazon Echo with Raspberry Pi and voice control household items.
And what could be more fun to voice control than your Christmas tree? That's what this Echo Dot Christmas Tree project achieves.
"The Echo Dot is sending messages to an MQTT broker," says maker Alex Ellis. "My Raspberry Pi runs a Docker Python image and listens to the messages then sets the NeoPixel strip up as desired."
More information on the build can be found on Alex's blog.
Building an Echo Dot voice-controlled Christmas tree
The project uses an Amazon Echo Dot to listen to commands. Behind the scenes, a AWS Lambda function is used to create a "skill". Amazon skills are code that enables users to control devices.
"The Alexa Skills Kit is a collection of self-service APIs, tools, documentation and code samples that make it fast and easy for you to add skills to Alexa. You can also use the Smart Home Skill API, a new addition to the Alexa Skills Kit, to easily teach Alexa how to control your cloud-controlled lighting and thermostat devices. All of the code runs in the cloud, and nothing is on any user device," reads Amazon's Developer portal.
The Echo Dot is hooked up to a Raspberry Pi, which controls the NeoPixel strip (wrapped around the Christmas tree).

The result is a voice-controlled Christmas tree. In the video, you can hear Alex say "ask the Christmas Tree to set the lights to blue." The lights change colour accordingly. The brightness and colour of the lights can be changed, and the lights can be turned off.
It's a great Christmassy project. More importantly, it looks like a good introduction to creating voice controlled household devices.
Russell runs Raspberry Pi Press, which includes The MagPi, Hello World, HackSpace magazine, and book projects. He’s a massive sci-fi bore.
Subscribe to Raspberry Pi Official Magazine
Save up to 37% off the cover price and get a FREE Raspberry Pi Pico 2 W with a subscription to Raspberry Pi Official Magazine.
More articles
Get started with Raspberry Pi in Raspberry Pi Official Magazine 161
There’s loads going on in this issue: first of all, how about using a capacitive touch board and Raspberry Pi 5 to turn a quilt into an input device? Nicola King shows you how. If you’re more into sawing and drilling than needlework, Jo Hinchliffe has built an underwater rover out of plastic piping and […]
Read more →
Win one of three DreamHAT+ radars!
That’s right, an actual working radar for your Raspberry Pi. We reviewed it a few months ago and have since been amazed at some of the projects that have used it, like last month’s motion sensor from the movie Aliens. Sound good? Well we have a few to give away, and you can enter below. […]
Read more →
RP2350 Pico W5 review
It’s Raspberry Pi Pico 2, but with a lot more memory
Read more →