Smart bulb power-on programmable options

It would require a custom driver.

I’d really like to have the bulb revert to the previous state.

I actually prefer it that way, because in case of an emergency or if your Zigbee network/hub is down, you can still operate the lights manually.

In case of a power outage, my lights are automatically turned off minutes after the power is restored. That’s how I do it: