- You need to have
nodeandnpmon your machine. - Install homebridge.
- Clone this repo
git clone https://github.com/minikin/VoiceControlledDrumMachine.git - Switch to dir
VoiceControlledDrumMachineand open project with your favorite text editor i.e.atom . - Switch to folder (in terminal emulator)
midi-clockand runnpm i - Connect your usb to midi device or an interface to a computer
- Open new tab in terminal and run
system_profiler SPUSBDataType - Find your device. In my case
Sonic Potions USB MIDIYou should see something like this: - Switch to text editor, in folder
midi-clockopenindex.jsreplace on line #56 name of midi deviceSonic Potions USB MIDIwith your . - Switch to terminal (folder
midi-clock) runnpm start. Set your BPM and keep this tab open and process running! - Switch to text editor, in folder
homebridge-lxrrunnpm i - In text editor find file
machineConfig.json - Modify it for your settings and save.
- Open new terminal tab and run
cd /Users/YourUserName/.homebridge-dev/ - Create empty
config.jsonfile at this folder. - And copy your settings from
machineConfig.json - Open new terminal tab
- Navigate to a root project path
/VoiceControlledDrumMachineto folder/homebridge - Run
DEBUG=* ./bin/homebridge -D -U ~/.homebridge-dev -P ../homebridge-lxr/ - If everything is fine you should see something like this:
- Take your iOS device. Locate and open
Homeapp.

Add Accessory button. You might be asked to turn on Bluetooth.
- In case everything is works fine you should see screen with you device
- Select your device. I'll see notification from Apple. Press
Add anyway.
- Then you need manually enter code (check your terminal)
- After that you'll see a few other screens. The meaning of them is self-explanatory.
Type should be a Switch
- You finally successfully added your device to Home app!
- Now just ask
Siri:Siri turn on drum machine, please😍
Enjoy!
Send me a message @minikin in case you have any questions.









