Control USB lamp with voice using Siri Shortcuts and Raspberry Pi



  1. Connect LED strip to Raspberry Pi USB port and control the powering of the USB port via SSH.


  • Raspberry Pi 4
  • iPhone with Siri Shortcuts
  • USB LED strip


  1. Connect LED strip to Raspberry Pi USB port
  2. Connect both devices to the same wireless network
  3. Enable SSH
  4. Run commands on Raspberry Pi in order to install the software needed for controlling power of USB ports:
sudo apt-get install libusb-1.0–0-dev
git clone
cd uhubctl
chmod +x uhubctl
sudo ./uhubctl/uhubctl -l 1–1 -p 4 -a 1
sudo ./uhubctl/uhubctl -l 1–1 -p 4 -a 0


If you got so far, you probably found something useful. Please consider supporting me :D




Software Engineer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Optimize Laravel with Redis, Caching Made Easy.

Java 8 Stream API

CSS 3d Transform

Intermediate: How to Integrate Huawei kits (Remote Configuration and Crash Kit) into Unity

*#/SR — Shopping Guide

Week 3: Google Summer of Code

Top 3 Coding Forums in 2022

Raspberry Pi Course

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ljubiša Moćić

Ljubiša Moćić

Software Engineer

More from Medium

Simple Raspberry Pi Lite setup with SSH and VS Code from Linux Mint

My ultimate guide to the Raspberry pi audio server I wanted — Apple AirPlay

First Impressions Manjaro 21.2

Fingerprint Scanner Fun For Kids.