First let me explain why this is in my opinion necessary.
Imagine you have a power outage during the night.
Your internet goes down and so your power.
After the power returns, you still have no internet, so even if your lamp works with cloud it could take a minute or so before the light turns off.
This would be extremely annoying, if the lamp is in your bedroom.
The solution I would propose, is to include this as a part of "save default state" command.
Simply allow the safe default api command to save on/off state along with color temperature, brightness etc.