I'm using a Shelly plus 1 to allow my light switch to behave like a switch, but controlling the hue programmatically. However I also liked the behavior of power cycling the hue lights to restore full brightness occasionally. This script gives the best of both worlds. It keeps power to the hue lights all the time, and behaves like a normal switch, unless toggled on twice within 15 seconds, in which case it turns the hue lights up to full brightness.
I'm using a Shelly plus 1 to allow my light switch to behave like a switch, but controlling the hue programmatically. However I also liked the behavior of power cycling the hue lights to restore full brightness occasionally. This script gives the best of both worlds. It keeps power to the hue lights all the time, and behaves like a normal switch, unless toggled on twice within 15 seconds, in which case it turns the hue lights up to full brightness.