Hi there. I have my LIFX bulb installed in a desk lamp with an inline switch on the power cord. I use the inline physical switch to turn the bulb on and off, and my phone to control the brightness and color.
The problem I have (frustration, really) is that when switched off and then back on, the bulb always resumes the previous settings it had, and forces the phone app to update to those settings. This means that when I turn the desk lamp off during the middle of the day it retains its ultra bright day settings and when I flick it back on again in the night my eyeballs get blasted.
I want to be able to set the bulbs brightness and color before the lamp turns on. Is this possible? I am developing with my own webserver so I can send webhooks (I am currently using the maker channel on IFTTT). I thought of detecting when the bulb is off and then spamming it with brightness settings to try and catch it when it turns on, but that’s just a bad idea.
Is there a way to force my settings onto the bulb before it starts up from being totally powered off at the switch?