I have a method which will allow you to use an Amazon Dash as a light switch. These buttons will not order things when used as a light switch and can be very cheap as they are normally on deal but will also pay you back the same price you paid for it so it is technically free! (This will work with or without a raspberry pi, read on for more details) anything you don’t understand or have a question, just leave a comment and I will be quick to respond.
Things you will need:
raspberry pi (set up with wifi connection)
Yeelight
Amazon Dash button (any design will work)
Set up homebridge:
You will first need your raspberry pi setup to the homebridge app as a server so can control the lights, in the future you will not need to do this as Yeelight maybe compatible with homebridge already. Then follow the instructions made by @weiwei they are already good instruction so no point re explaing them.
Set up your dash button: Make sure that in set up you exit when it comes up with
The screen to select your product*
Simply follow the video instructions (NOT made by me)
this should not take long and will be really easy. I would recommend though that you hold your finger down on the dash button and wait for it to flash blue, then connect to the wifi connection it creates and head to this link; http://192.168.0.1
This will save you a lot of time when looking for the MAC address.
I think I have, I have followed the youtube tutorial, where guy does voice over with goo.gl links, it all goes fine but at the end it doesnt start the accessory, so don’t know what I am missing?
On your raspberry pi go into terminal,
Enter this code: sudo npm install -g --unsafe-perm homebridge
Then go to this site and click clone or download (on your raspberry pi)
Once you have that downloaded, close the internet tab and go back into your terminal. Enter this code; npm install -g homebridge-yeelight
Once that is done close the terminal and open it back up again.
This time enter: homebridge
It should then be up and running. Go onto your iOS device and head to the homebridge app. Click add accessories and then don’t have a code or can’t scan. Then under manual code click enter code. The code is then; 031-45-154
Then click the server you made. This will have an icon which is green dots connected with lines. It should the show your light bulbs.
Then test it out. Your bulbs should turn on and off when clicking them. We can then begin setting up your dash button. (Leave a message once your at this point) @bednim
The best thing is that Dash buttons go on sale for $0.99 on Prime Day! I have 10 dash buttons in my house all set up to activate scenes and turn on/off my yeelight bulbs and lamps.