this post was submitted on 09 Feb 2024
13 points (93.3% liked)

homeassistant

12129 readers
15 users here now

Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io

founded 2 years ago
MODERATORS
 

I'm looking for a smart home solution use two switches in my living room (EU), in order to make them just smart enough so I can control some devices. The setup isn't very complex in itself, and I'm pretty sure it's doable - I'm just unsure what I'd need in order to use these switches in a 'smart' capacity...

This is what I had in mind:

  • On-off switch, connected to a single light with three Hue filament bulbs. I'd like this one to always be powered, as to make them always controllable
  • On-off switch, which should be connected to a light which isn't in use at all. Once this one is 'smart', I could control all other smart devices in the living room like a 'turn off everything'-button.

I have a Hue bridge and a Home Assistant instance running in my home.

With regards to wife-approval-factor, I'd rather leave the original switches in place, but I'm open to suggestions. I hope one of you can steer me in the right direction.

Edit: if this isn't the right community for the question, I'd understand, but I wasn't sure where to put it otherwise... I'd be open to suggestions to that too.

top 27 comments
sorted by: hot top controversial new old
[–] [email protected] 6 points 9 months ago (3 children)

I bought Shelly relays. These fit behind existing switches so you can keep the originals. They can tie into Home Assistant.

[–] [email protected] 3 points 9 months ago

+1 for shelly or sonoff

[–] [email protected] 1 points 9 months ago (5 children)

How do you deal with grounding? None of them seem to have ground pins which is rather concerning

[–] [email protected] 2 points 9 months ago (2 children)

May I ask why grounding is concerning? Im not expert, but afaik normal wall switches dont use ground wire and ceiling lights may use one. I thought if wall switch is made of plastic there is no need for grounding. Please correct me if Im wrong, I want to learn. I was looking at sonoff zbmini-l2, but didnt buy any yet

[–] [email protected] 2 points 9 months ago (1 children)

Every normal electrical box in every house ive lived in has a white wire, a black wire, and an exposed copper wire. Every switch has always had a green screw that the copper wire goes around. The zigbee adapters all seem to lack a spot for the copper wire, which is meant to help protect electrical equipment and prevent fires during events like power surges and whatnot.

[–] [email protected] 1 points 9 months ago

@semperverus
In European countries you only have live wire, never the ground, neutral in newer installations.
The switches don’t need ground as there is no exposed metallic component. Ground is needed where a human could be exposed to live (due to a fault) as it would trigger the breaker.

[–] [email protected] 1 points 9 months ago (1 children)

Every wall switch I’ve seen (in US) has an attachment for a ground wire, except really ancient ones, and every “Romex” style wiring includes a ground wire

My house is an older one with steel junction boxes, so those need to be grounded, but plastic boxes obviously do not.

So, my experience may be limited but I’ve always seen switches grounded and always seen everything support grounding.

As someone further up said, it’s the neutral that is the problem. I don’t know if it’s code or convention, but older wiring tends to use “switch loops” without a neutral, while more modern wiring is “pass through” and does. Even before smart switches, this was needed for things like lighted or programmable switches

[–] [email protected] 1 points 9 months ago (1 children)

Current national electrical code in the US (since the 1980s) is a neutral in every switch box. Before then a switch loop was allowed so you see a lot of older construction with those.

You also see newer construction with those where Uncle Dave™ decided it was easier to only have to run a wire down from the light rather than fish it up through the crawlspace, NEC be damned.

[–] [email protected] 2 points 9 months ago* (last edited 9 months ago) (1 children)

It’s also a matter of saving on the wiring. I may not be (quite) that Uncle Dave, but I really regret a few places I pulled wire for a switch loop without the extra conductor for a neutral.

At the time, I rationalized it was already an improvement over what was there and I had no immediate use for the neutral. I believe the neutral wasn’t required by local code, only recommended, or I would have done it

Of course now I’m cursing my choice, trying to decide whether I need to go back and do it over, or whether I even can practically since it’s a two person job and my buddy retired to Florida. Wiring I pulled many years ago was great for dimmers, more convenient switches, and extra three-ways, but not so great for smart switches

Edit: looks like neutral wasn’t required until NEC 2011

[–] [email protected] 1 points 9 months ago

I didn't realize it was that recent of an addition to the NEC. Weve only lived in super old houses where everything was always needing completely redone. I was usually replacing 2 conductor and cloth-jacketed stuff everywhere.

That was around 2012 and I remember the electrician we hired at the time mentioned it being a thing so that makes sense.

[–] [email protected] 2 points 9 months ago

There's nothing for a ground pin to be connected to, the case is plastic.

The bigger issue is that a lot of light switches also lack a neutral connection. They have live, and switched live. You can get devices to allow them to scavenge power, but they can also cause led bulbs to glow dimly.

[–] [email protected] 1 points 9 months ago

You don't need to ground your Shelly if the circuit is otherwise properly grounded. The Shelly will fail open if something internal shorts.

Per the rest of the discussion re: hot wire loops to switches with no neutral or ground, just put the Shelly into the upstream junction box. (Wherever the switch wire branches from the circuit. Usually that's where the light is.)

[–] [email protected] 1 points 9 months ago

Thats interesting. I would assume ground is important for metal devices since they can shock you but what would be the risk of a plastic device without grounding be?

[–] [email protected] 1 points 9 months ago

In the UK most lights don't have a live, neutral and earth wires. Which is a pain when looking for smart switches

[–] [email protected] 1 points 9 months ago (2 children)

I've come across Shelly relays as well, they seem like a viable option to me. I'd probably prefer a separated network like Zigbee, but that should be doable. Thanks!

[–] [email protected] 1 points 9 months ago

You can get zigbee 3.0 relays on aliexpress. I got the GIRIER store ones, but while I've done a test with a bulb and a switch on a board, I haven't gotten them properly installed yet. Seems promising tho.

[–] [email protected] 1 points 9 months ago* (last edited 9 months ago)

You can do this with Shelly Zwave relays.

That would generally preferable to ZigBee for such a system from an RF perspective.

Aeotec or Zooz usb dongle on your server, every Shelly acts as a signal relay.

[–] [email protected] 4 points 9 months ago (1 children)

You don’t say if you have any IoT networks yet, like zwave or zigbee, or if you’re looking for wifi. All have advantages / disadvantages, wifi is cheap and doesn’t use a separate dongle, zigbee devices tend to be cheaper, and a good variety available, Zwave is solid and doesn’t conflict with wifi or zigbee networks.

For the Hue bulbs you want a switch that lets you disconnect the relays from the physical switch. I don’t know what devices to suggest for EU, but my preference is to make the switches smart so they continue to do switch-like-things instead of having to retrain people.

[–] [email protected] 1 points 9 months ago

Well, I did mention the Hue bridge so I've got Zigbee around the house (as well as some other Tuya wifi devices).

I'm currently in the process of converting to an additive setup so my wife and I don't need a smartphone to do smart home stuff. I think I can work with the info, thanks a lot.

[–] [email protected] 2 points 9 months ago* (last edited 9 months ago)

One of the features you might look for is, I don’t remember what it’s called, but direct pairing? I’m a big fan of Inovelli switches here in the US and this is one of the features I love, even though I don’t use it yet. You can configure the switch to always pass power, but act as a Zigbee/zwaveJS button, depending on which switch, then you can set up automation at your hub to take some action. However this goes a step further in that you can directly pair it with the smart bulbs, to control them directly.

[–] [email protected] 1 points 9 months ago (1 children)

Just get a couple Zigbee switches and problem solved.

IIUC.

[–] [email protected] 2 points 9 months ago* (last edited 9 months ago) (2 children)

~~Zigbee switches only tend to be available in north American style, not really compatible with other countries~~

[–] [email protected] 1 points 9 months ago (1 children)

Huh? I'm in the UK and I have a bunch

[–] [email protected] 1 points 9 months ago (1 children)
[–] [email protected] 1 points 9 months ago
[–] [email protected] 1 points 9 months ago (1 children)

Sonoff and shelly are both available in eu, I can buy sonoff from local store in Croatia

[–] [email protected] 1 points 9 months ago

Yeah I don't know what I was talking about to be honest, they're definitely available in eu form factors