Get Siri to Control Your Dyson Fan (without Dyson Link) in Under 30 Minutes

Get Siri to Control Your Dyson Fan (without Dyson Link) in Under 30 Minutes

3 635 views | 21 Jan. 2020

Control your Dyson fan with Siri with these two small programmable devices from Amazon. This walkthrough shows you how to set everything up and includes all set up code and a downloadable config file below.

This walkthrough is for Dyson fans that don't have Dyson Link - just the normal ones with the small remote controls.

Links:

Download Pi Lite software from https://www.raspberrypi.org/downloads/raspbian/

Download Etcher from https://www.balena.io/etcher/

Raspberry Pi Zero W https://amzn.to/2RB3KJc

Broadlink RM Mini 3 https://amzn.to/2RDs4Kw

Config file (Dyson Pure Cool Me): http://benvallack.com/downloads/config.json

Config file (Dyson AM06): http://benvallack.com/downloads/config.json-am06 (Rename to config.json after downloading)

Here is the cheatsheet used in the video. Unless the line is in brackets it is to be entered into Terminal on your Mac as a complete command. Lines starting with # are just headings.

# Setup Raspberry Pi Zero

cd /Volumes/boot

touch ssh

touch wpa_supplicant.conf

vim wpa_supplicant.conf

(Paste in the following, see video for process: )

country=gb

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev

update_config=1

network={

ssid="YOUR-WIFI-NAME"

scan_ssid=1

psk="YOUR-WIFI-PASS"

key_mgmt=WPA-PSK

}

(Hit escape)

(Connect over SSH:)

ssh [email protected]

(type yes to verify)

(password raspberry)

(type passwd as prompted to choose a new password)

# Install and setup Homebridge and homebridge-broadlink-rm plugin

sudo apt-get update

sudo apt-get install vim

sudo apt-get install git make

(type Y and enter)

wget https://nodejs.org/dist/v10.15.3/node-v10.15.3-linux-armv6l.tar.xz

sudo mkdir -p /opt/node

tar xJvf node-v10.15.3-linux-armv6l.tar.xz

sudo mv node-v10.15.3-linux-armv6l/* /opt/node/

sudo update-alternatives --install "/usr/bin/node" "node" "/opt/node/bin/node" 1

sudo update-alternatives --install "/usr/bin/npm" "npm" "/opt/node/bin/npm" 1

sudo apt-get install libavahi-compat-libdnssd-dev

(type Y and enter)

mkdir ~/.npm-global

npm config set prefix '~/.npm-global'

vim ~/.profile

(enter the following at the end of the file:

export PATH=~/.npm-global/bin:$PATH

)

source ~/.profile

npm install -g homebridge

npm install -g [email protected]

npm install

sudo vim /etc/default/homebridge

(paste in from https://gist.github.com/johannrichard/0ad0de1feb6adb9eb61a/ )

sudo vim /etc/systemd/system/homebridge.service

(paste in from: https://gist.github.com/johannrichard/0ad0de1feb6adb9eb61a/ )

(replace url with: /home/pi/.npm-global/bin/homebridge )

sudo useradd -M --system homebridge

sudo mkdir /home/homebridge

sudo chown homebridge /home/homebridge

sudo mkdir /var/lib/homebridge

sudo chown homebridge /var/lib/homebridge

# Editing the config

(Download the config.json file linked at the top of the description and save to your Mac's desktop)

(On mac, in Terminal)

cd ~/Desktop

scp config.json [email protected]:

(enter password)

(Connect to pi if you don't already still have that tab open:)

ssh [email protected]

(enter password)

sudo mv config.json /var/lib/homebridge/.

(moves the file into place)

sudo systemctl daemon-reload

sudo systemctl enable homebridge

sudo systemctl start homebridge

# checking the status at any time

journalctl -u homebridge -f

--------------------------------------------------------------------------

Charles SAP

Great video! I have a Dyson Hot+Cool and this will help me get it working with Homekit “easily”!

Alex Lacey

Could you do this for Alexa?

Daniel Bailey

Great video but I don’t seem to be getting the same feedback messages from the terminal.

From the first step, it says boot “myname”$

When i indent and enter the wifi password it also looks different.

Result is, when i plug the pi into power, i cant access it with the terminal.

SamBent

Very interesting and qualitative !
you should definitively have plenty of subscribers

Jan Schulze

Haha, found it! That Sounds actually really fun to play around with! Thanks Mate!

Oliver Banks

I’m really shocked this has so few views, fun project