I'm looking for a single or dual Wi-Fi light switch that I can activate with Linux. It needs to fit a standard 2-gang switch box and/or include a trim plate that covers a 2-gang box. Anyone know of such a thing? I can't tell from the selection on Amazon if any of these work without installing some smartphone app. I'm based in the US.

At this point, I'd settle for a micro-remote controlled switch, if nothing else, and then just wire a Raspberry Pi to the contacts.

The current switches I have in the gang box now are like this one. I suppose there is a little room for a wider switch – like I just found a Z-Wave switch , but they don't list with dimensions of the switch so I don't know it will fit in the box next to the "regular" switch.

  • 3
    Relevant: Is there a way to control my lights from my Linux desktop? (but that question doesn't specifically ask for switches) – Aurora0001 Dec 9 '17 at 15:50
  • For the Z-Wave switch you mentioned, they do list "package dimensions" in the Amazon listing of 5 x 3.8 x 3 inches . What I usually do in a case like that is to find a website for the company making the component, and search for that specific item. You might be able to find a drawing giving exact dimensions. Or send an email or phone call to their support contacts. You could also post a question to those that have purchased one on the Amazon itself, and/or post a question to via the Amazon Innovelli storefront (click on the blue Innovelli link on the ad). – JCDeen Feb 1 at 5:09
  • This link from their site shows actual dimensions of a switch: inovelli.com/shop/smart-light-switches/… Please do your own research to make sure it is the same one or similar enough. – JCDeen Feb 1 at 5:16
  • If you're OK with having to do the initial setup with a phone, then Belkin WeMo Insight switches work with Linux (specifically with Home Assistant running on a Raspberry Pi 3). Not "out of the box" though, unfortunately. – Aaron F May 18 at 8:14
  • Thanks for the tips everyone. @AaronF what is the Home Assistant? A python script? compiled binary? – Will T. Jun 2 at 10:48

paraphrased from my answer here:

You could use the Belkin Wemo Light Switch, if you can find one (apparently Belkin aren't making new ones any more).

The initial configuration has to be done using the Belkin Wemo phone app, but once it's connected to your wireless network then you can forget the app and use Home Assistant instead.

I personally run Home Assistant on a Raspberry Pi 3 and have some Wemo switches and light bulbs. They're automatically detected with no extra configuration required.


Another option, which I saw the other day in this answer, is a batteryless Bluetooth Low Energy wall switch.
I can't find any to actually buy online, at the time of writing this answer, but they appear to be a good generic solution: pressing the switch generates enough power to send a BLE packet.
You'll still need something like Home Assistant to listen out for that event and act upon it, though.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.