Hi, I have a smart light (shelly duo) on my bedside table. I’d like to avoid using the mobile phone or smart button to turn off the light but I also don’t want to “physically” switch off the light (no power off). What I thought is to execute light.turn_off when 2 or 3 power on/off switching is detected in a short time-frame (5-10sec).
Any suggestion
The mobile phone I understand, but why don’t you want a smart button to control the lamp?
Also what you want to do only works with a smart switch, HA can’t detect that you cut power to the bulb 2-3 times in a short time, because after power is cut, it takes some time until the bulb is connected to HA again. Also it’s not a good idea to use smart switches together with smart bulbs as it’s complicated to keep them in sync and requires quite some logic.
It makes sense! The reason was to avoid planty of different devices in the bedroom but I’ll search for some inconspicuous smart button. thank you
Shelly 1. You can connect it behind the real switch. Then in settings, set it to passtrough, so power won’t be cut off. And then set up an automation in which the shelly switch controls the smart bulb.
good idea, unfortunately it is a table lamp with a tiny button on the wire.
Hmm, do you have a physical switch you want to use, or not?
I have a table lamp. Power comes from a “not-smart” power strip and the table lamp has a physical switch on the wire. My initial idea is to use a quick sequence of switches off and on (and finally keep it on) using the physical switch on the wire to intercept this behavior and turn_off the light in HA. But as @Burningstone said, HA is not immediately aware of the off and on sequence. Probably I have to find a physical smart dimmer (Duo is also dimmerable).
How would you connect it behind the real switch? I’m trying to do something similar with a table lamp that has a push thru switch but I don’t know how I would accomplish that since that since the power to the bulb and the physical switch are all tightly connected in the same lamp socket.