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?

  • Clay_pidgin@sh.itjust.worksOP
    link
    fedilink
    English
    arrow-up
    0
    ·
    3 hours ago

    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.

      • Clay_pidgin@sh.itjust.worksOP
        link
        fedilink
        English
        arrow-up
        0
        ·
        3 hours ago

        The second one that I attempted to use as a switch position detector, you mean? Because I think I’d still need the one in the un-switched outlet to turn the lights on and off.

    • eddiereasoner@lemmus.org
      link
      fedilink
      English
      arrow-up
      0
      ·
      3 hours ago

      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