I’m wondering if this is something I can do. I have lights in my house that HA turns on to 30% half an hour before sunset and turns them off half an hour after sunrise. For the location, having them on at a dim level lights up a large area, but it’s not bright enough to hurt our eyes later at night.
I have 4 way wall switches I use to turn these lights on and off. Currently they’re hooked up with an Insteon Micro Dimmer that can turn them on and off and dim them. When dimmed, the switch can turn them off, but turning them back on again turns them to full brightness.
I’m thinking of several ways I might want to set them up, and I’m wondering if these are possible with HA:
-
At the simplest level, can physically turning the switch on and off be used to trigger an action or Python script in HA?
-
Can I make the lights go on to dim when the light switch is turned on, then off when it’s turned off?
-
A more complex activity: Can I setup HA so when I use the switch once, it turns the lights to 100%, then I use the switch again and they go to 30%, then I use the wall switch again and the lights go off?
-
If I can do #3, can I add one more layer of complexity: During the time they’re normally on, using the wall switch goes through the pattern of on->100%->30%->off. Then, during the time they’re normally off (They go off 1/2 hour after sunrise then on 1/2 hour before sunset), the switch would only turn them on to 100% or off.