19
submitted 5 days ago* (last edited 5 days ago) by clay_pidgin@sh.itjust.works to c/homeassistant@lemmy.world

My nightstand lights are connected to a surge protector plugged into a Zigbee smart plug plugged into a dumb wall outlet controlled by a single dumb wall switch.

I have the smart plug set to default=On, so the wall switch works fine, and I can also turn the lights off from my phone or via an automation. All good so far.

What I WANT is to be able to turn the lights ON without getting out of bed, and irrespective of the position of the switch.

I tried putting a second smart plug in the switch-controlled outlet and making an automation to toggle the surge protector's smart plug when the switch's empty smart plug powers off/on via the wall switch, but it looks like it's not simple to detect a Zigbee device "disappearing". I found some integrations that detect zigbee devices disappearing, but those seemed more for running health checks to detect and repair moved devices than for live detection.

Any suggestions?

Edit:

Looks like a relay behind the switch will be my best bet. Thank you all!

you are viewing a single comment's thread
view the rest of the comments
[-] Onomatopoeia@lemmy.cafe 9 points 5 days ago* (last edited 5 days ago)

What?

As I read through that Goldbergian stream of connectedness, I'm left wondering:

  1. Whatever you really trying to accomplish that brought this on

  2. Won't that wall switch always be a manual interrupt for the automation

Basically, don't you want to automate the wall switch or lock it to being always on? (There are wall plates for this).

[-] slazer2au@lemmy.world 4 points 5 days ago

Kinda sounds like the setup is

Ac mains -> dumb switch -> ZigBee switch -> power board -> light. 

And they want to turn the light on while the wall switch is off, which sounds like it won't work because the power would be off, also turning power off to the ZigBee switch and the light.

[-] clay_pidgin@sh.itjust.works 2 points 5 days ago

The goal is correct, but the current setup is incorrect. Right now, I have:

AC mains -> dumb switch -> zigbee smart plug

AND

AC mains -> zigbee smart plug -> surge strip with two lights on it

[-] Onomatopoeia@lemmy.cafe 5 points 4 days ago

Just replace the wall switch with a zigbee.

[-] Jason2357@lemmy.ca 2 points 4 days ago

Your idea works in theory, but in practice, using a ZigBee plug as a power sensor -even if you managed to program a way of detecting its online/offline status, will probably have too many issues.

The protocol is designed for low power and so has to be robust to temporary connectivity issues from interference. You would either have too much latency between the switch and the light turning on/off, or you would have phantom switching of the light whenever some other device in your house desides to do its thing.

It is a genuinely neat idea you had though.

[-] clay_pidgin@sh.itjust.works 1 points 4 days ago

Theory is all I have! I'm too new at this. That's part of what makes it fun!

Yeah, it sounds like I want a relay behind the switch.

[-] clay_pidgin@sh.itjust.works 1 points 5 days ago

I want the dumb switch to turn the lights on and off as usual, but I ALSO want to be able to turn them on and off with Home Assistant, irrespective of the dumb switch position.

The dumb switch is an interruption to the one outlet on the wall, sure. That's why I'm trying to do this "Rube Goldberg" setup.

[-] AA5B@lemmy.world 2 points 4 days ago

A smart switch makes all this complexity go away

[-] clay_pidgin@sh.itjust.works 1 points 4 days ago

I didn't think so, not on the physical interface side. The switch in question is in the middle of a 4 gang, so having one be a different shape than the others would be slightly annoying. We can swipe down on the whole row to turn all lights off at the same time, and the switches I see appear to have a form that doesn't visually (physically, not an LED) indicate the switch position.

[-] AA5B@lemmy.world 2 points 3 days ago* (last edited 3 days ago)

True, whatever form a smartswitch is in, they usually are self-centering. The user is protected from appearance of a false state. They can match your other switches closely enough in the same room, but that will stand out in the same switch plate.

Admittedly I was never concerned about that either: even before home automation I installed dimmers and programmable switches that were already visibly different. I’m actually just now getting back to that consistency, after replacing most switches. That’s an expensive way to do it though

this post was submitted on 21 Jul 2026
19 points (100.0% liked)

homeassistant

20115 readers
8 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.

Home Assistant can be self-installed on ProxMox, Raspberry Pi, or even purchased pre-installed: Home Assistant: Installation

Discussion of Home-Assistant adjacent topics is absolutely fine, within reason.
If you're not sure, DM @GreatAlbatross@feddit.uk

founded 3 years ago
MODERATORS