Power-on behavior

Also known as: power-on state

On this page 7

Power-on behavior, also called the power-on state, is the setting that determines what a connected light does the moment mains power returns after a wall switch is flipped or the grid recovers from an outage. In smart lighting, it decides whether a bulb comes on at full brightness, stays off, or restores its previous state, and it is one of the most consequential and least visible settings in a smart home.

The setting matters because smart bulbs lose all power when a conventional switch cuts the circuit. A well-chosen power-on behavior keeps the ordinary wall switch useful as a fallback, while a poor one can leave every lamp in the house switching on at 3 a.m. after a brief outage.

How power-on behavior works inside a smart bulb

When a smart bulb receives power, its microcontroller boots before the LED driver is allowed to emit light. During this short window, typically 0.3 to 1.5 seconds, the firmware reads a stored preference from non-volatile memory and drives the LEDs accordingly, long before the radio has rejoined the network or contacted a hub.

Because the decision happens locally in firmware, it works without a hub, internet connection or app. That independence is the point: the bulb must behave sensibly even when the rest of the system is still starting. Restoring a previous state requires the bulb to write its last state to flash memory, which manufacturers throttle to limit wear, so very recent changes may not survive a sudden power cut.

The table below lists the standard options found in most ecosystems and their effect after power returns.

OptionLight after power returnsTypical use
On (default)Full brightness, default warm whiteBulbs used with ordinary wall switches
OffStays dark until commandedBedrooms, outdoor fixtures, rentals
Previous state (restore)Last on/off, brightness and colorRooms controlled mainly by apps or automations
Custom presetChosen brightness and color temperatureHallways, safety-critical areas
Standard power-on behavior options

Power-on behavior across protocols and ecosystems

Support for configurable power-on behavior varies by protocol and vendor. Zigbee formalized it in the StartUpOnOff attribute of the On/Off cluster, along with related start-up attributes for level and color temperature, and Matter inherited the same model. Wi-Fi bulbs rely on vendor-specific settings in their own apps.

EcosystemSetting mechanismConfigurable attributes
Zigbee 3.0StartUpOnOff, StartUpCurrentLevelOn/off, level, color temperature
MatterSame cluster attributes as ZigbeeOn/off, level, color temperature
Philips HuePower-on behavior menu in the appDefault, previous, custom
Wi-Fi bulbs (various)Vendor app or local APIOften on, off or restore only
Z-Wave dimmersConfiguration parametersRestore level after power failure
Where the setting lives in common ecosystems

Older or budget bulbs frequently ignore the start-up attributes or reset them after a firmware update. Integrations such as Zigbee2MQTT expose the attributes directly, which makes it possible to verify the stored value rather than trust an app label.

Choosing the right power-on behavior

The best choice depends on how the light is normally operated and what happens if power returns unexpectedly. Rooms where people still use the wall switch need the light to come on; rooms where automations dominate benefit from restoring the last state.

SituationRecommended settingReason
Wall switch is the main controlOn at a fixed presetSwitch behaves like a normal light
Bedroom or nurseryOff or previous stateAvoids waking occupants after outages
Stairs and hallwaysOn at safe brightnessGuarantees light for movement
Vacation home or rentalOffPrevents lights burning for days
Smart switch with detached relayPrevious state or onRelay rarely cuts power to the bulb
Decision guide for typical rooms

A more robust approach avoids cutting bulb power altogether. A smart switch in detached mode or a battery wall remote keeps the bulb permanently powered and sends commands instead, so power-on behavior then matters only during genuine grid outages.

Power-on behavior is often confused with default color or scene settings, but it applies only to the instant of power restoration. Other features, such as adaptive lighting or a light group, operate once the bulb is online and connected.

  • Adaptive lighting changes color temperature over the day, but only after the bulb rejoins the network.
  • Default on-level in a dimmer applies to commands, not to power loss.
  • Light group settings never affect a bulb that has just booted without a connection.
  • Relay restore settings in a smart switch decide whether the circuit itself is re-energized.

The last item creates a two-layer interaction: a smart switch with relay restore set to off will keep the bulb unpowered, so the bulb’s own power-on behavior never runs. Both layers must be configured consistently to achieve the intended result.

Common problems and misconceptions

The most frequent complaint is all lights turning on after an outage, usually in the middle of the night. This happens because most bulbs ship with the factory default of on, chosen so that new owners see light when they first install the bulb.

Other issues include settings that reset after firmware updates, bulbs that restore on/off state but not color, and short flicker or flash at full brightness before the stored level is applied. The flash comes from a driver that energizes the LEDs before firmware has finished reading memory, and it cannot be fixed by configuration; only a different bulb model resolves it.

A common misconception is that the hub restores lights after an outage. In reality, the hub reboots later than the bulbs and has no reliable record of the intended state, so the bulb firmware setting is decisive. Testing each room by switching the breaker off for ten seconds is the only dependable way to confirm the configuration.

Understanding it simply

Power-on behavior is the bulb’s answer to a simple question: what should I do when the electricity comes back? It can switch on, stay off, or go back to how it was before.

Picture a radio that remembers its volume after being unplugged, compared with one that always starts loud. Setting the right option means your lights act predictably after an outage and the old wall switch still works the way people expect.

Applied in practice

A homeowner with 18 Zigbee bulbs experiences a two-second grid dip at 2:40 a.m., and every bulb in the house, including those in two children’s bedrooms, lights up at full brightness. The bulbs were still on their factory default of on.

Using Zigbee2MQTT, the homeowner sets StartUpOnOff to previous state for bedrooms and living areas, to off for the garden lights, and to on at 40 percent and 2700 K for the stairwell. After the next storm-related outage, the bedrooms stay dark, the stairwell provides safe orientation light, and no one in the household wakes up.