ZigBee White Color Temperature Bulb offline help

OK here is my setup, and what I need to do.

  1. ZigBee White Color Temperature Bulb installed in Bathroom with a normal switch.
    a. The switch is turned off by accident often, and then goes offline.
    b. The lamp goes on when the switch is turned back on.

Now the question. In my IOS app I am able to open the lamp properties and use the color temp slider and the lamp goes online. Is there a way to create a rule to do this for me every few minutes, to avoid the offline warning? I would like to do these adjustments to prevent the device going offline.

Why not stop people switching if off?

Easier said than done. For years I impressed family members to turn off lights when they leave the room, so it is so ingrained that it will be impossible to stop them. Also, we are not allowed to block off a light switch, as it is a local code. Something about automations not working during a fire.

You could try guards (This is what I use https://www.amazon.com/dp/B000NCV1SK/)

Switches can still be cut off. You just have to work to do it by reaching inside the guard.

No that defeats the local code, all switches must be available at all times, and if not insurance coverage is void. I would have removed them already if I was able. When I moved into this home, I had to repair a violation, of a split receptacle not being attached to the switch as they way the house was built and the certificate of occupancy was approved.

Ok, it is actually fully available Even though the description says “locked”. It is more like a dust cover. The side is fully open and the switch moves freely underneath. You just have to stick your finger under the lip to flip the switch. Will get a picture of the side when I get home to show you. It just prevents you from reach up and smacking it off out of habit.

Good for a toggle, not a paddle. My switch plates are custom, so I would need one for a paddle switch. I can look, but I would prefer a CoRE piston or something. Not sure what would work. I will ask in CoRE .

I put blue painters tape over one of my light switches since it was such a habit to turn it off when I left the room. The switch is still accessible if needed. The color and the texture of the tape reminded me to use the app instead of the switch.

In a normal home that would be great, as well as the other suggestions. But when we bought this home, and I wanted to make it a Smart Home, my wife was very resistant. The agreement we made was that nothing would be evasive, or stick out like a sore thumb. So in my wifes eyes, that tape would be sacrilege. I need a software fix, not a hardware fix.