Yeelight switch with Amazon Dash (almost free)


#1

Hi,

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.

http://forum.yeelight.com/t/homebridge-plugin/83

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.

https://m.youtube.com/watch?v=x8mIGvoodDk

Without a raspberry pi;

There is a method for if you have not got a raspberry pi but will take longer to turn on and will be harder to set up. Follow this link,

https://m.youtube.com/watch?v=qZpJ9W0wCks

Hope this has helped everyone. Any problems leave a comment and I will be happy to help! :slight_smile:


#2

Nice ~


#3

Cool


#4

Hi Thomas,

Thank you for posting this.

Can you share step by step how have you achieved this?

I am having hard time and came across difficulties to control bulbs with dash button and raspi.

Would really appreciate if you can make a tutorial.

Thank you


#6

Have you got your homebridge server set up and running on raspberry pi


#7

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?

edit: when have you set up yours?


#8

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


#9

Sorry forgot to say before you do all that, enter this code into the terminal;

sudo apt-get install nodejs npm


#10

@Tom1221

Do I understand correctly that I need ios device for this to when? I don’t have any.

Also, I have got homebridge and yeelight installed. Nodejs and npm too.


#11

Yes, an iOS device is needed. I will private message you for getting it set up without this.


#12

The best thing is that Dash buttons go on sale for $0.99 on Prime Day! :wink: I have 10 dash buttons in my house all set up to activate scenes and turn on/off my yeelight bulbs and lamps.