I have a button that triggers a script for bedtime to turn off all lights, and, if pressed again, checks to see if all lights are off and if so, turns a few (like the bathroom light) on.

My problem is one or two of the lights (connected via Zigbee2Mqtt) are often powered off at the switch on the lamp, meaning HA still sees them as “on” until the power is restored and they can be turned “off” via the app. The lights cannot be turned “off” (in HA) manually.

Is there any good solution for detecting when a light goes missing and turning it “off” in HA?

  • SolidGrue@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    1 day ago

    As it happens I’m actually looking for a smart lamp switch if anyone knows of any options

    I was doing the same myself earlier this year. I’d found a European product that was an inline smart switch, like one of those rocker switches they put on the wire for those decorative canister uplights. The switches were out of stock on all the sites that listed it, and the manufacturer website didn’t seem to indicate they’d be producing more any time soon.

    Eventually I just settled on using an inexpensive smart button (Tuya TS0041/TZ300 over ZHA) to control a smart bulb or a smart plug on the “dumb” fixtures. It wasn’t exactly what I wanted, but nobody seems to make a smart inline switch anymore. As a bonus, the switch supports double-tap and long press gestures so I was able to program the bedside button with a few functions to toggle the bedside lamp on a short press, and turn off all the lights in the house on a double tap.

    It uses a coin battery that lasts a few months. I think I’ve changed it maybe once since I got it.

    • thehatfox@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 day ago

      So far the only inline option I’ve found is this dimmable switch from Samotech. I haven’t tried one yet myself, and there’s mixed reviews online. For the lamps I have I only want an on-off switch though, not a dimmer.

      Making due with plugging them into smart plugs for now, but an inline option would be much neater.