this post was submitted on 21 Jul 2026
18 points (90.9% liked)

homeassistant

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

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
 

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
[–] eddiereasoner@lemmus.org 3 points 5 days ago* (last edited 5 days ago) (14 children)

Assuming technically possible, this solution requires no other hardware:

Is it possible to make the smart plug default to the opposite of the last state? You could use the wall switch like a pushbutton (cut and restore power) and it would toggle, then maintain control from HASS. You might be able to save the last state of the smart plug, detect when it comes online after a power failure (theoretically), and set it to the opposite of the previous state in an automation.

[–] clay_pidgin@sh.itjust.works 2 points 5 days ago (13 children)

That's probably possible, but doesn't solve my problem. That said, some commentors found my explanation confusing.

When the switch is toggled ON, I want the lights to go ON.

When the switch is toggled OFF, I want the lights to go OFF.

Irrespective of the switch position, I want to be able to turn the lights ON or OFF with Home Assistant.

It sounds like a zigbee relay behind the switch will be the way to detect the switch position.

[–] eddiereasoner@lemmus.org 2 points 5 days ago (2 children)

My point is, you would keep the switch on no matter what and flick it off and on again when switching the lights on/off

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

Maybe? I'll think about that.

[–] Galapagon@sh.itjust.works 2 points 5 days ago

Isn't the default unavailable timeout like 5 minutes though?

load more comments (10 replies)
load more comments (10 replies)