esphome / esphome/feature-requests
Default color of light on power loss
- Dominant language
- No language data
- Stars
- 450
- Forks
- 29
- PR merge metrics
- No merged PRs in 30d
Description
# Feature Request: Add Default State Configuration for CCT Lights After Power Loss
---
## Describe the problem you have/What new integration you would like:
Currently, ESPHome does not allow configuring a specific default state (brightness and color temperature) for CCT lights that applies only after a power loss. Existing methods, such as using `on_boot`, execute during all reboots, including firmware updates, which can lead to undesired behavior.
I am requesting an enhancement to support setting a specific default state (e.g., brightness and color temperature) for lights that is applied **only** after a power loss. This would prevent unwanted behavior, such as lights turning on unexpectedly during firmware updates or manual restarts.
---
## Please describe your use case for this integration and alternatives you've tried:
When power is restored after an outage, I want my CCT lights to turn on with a predefined brightness and color temperature, such as 50% brightness and warm white (2700K). However, I want this behavior to occur **only** after a power outage. During firmware updates or manual restarts, the lights should remain in their previous state or turn off, depending on configuration.
Currently, there is no native way to achieve this. Using `on_boot` applies the configuration during all reboots, which can result in lights remaining on after a firmware update, even if no one is home. This is both inconvenient and energy inefficient.
---
## Additional context:
- The feature could be implemented as an extension of the `restore_mode` setting, with an option to define a specific state for power-loss recovery.
- An example YAML configuration could look like:
```yaml
light:
- platform: cct
name: "Living Room Light"
restore_mode:
power_loss:
brightness: 50%
color_temperature: 2700K
firmware_update: restore_previous
```
- The implementation should ensure that the device can differentiate between power-loss recovery and other types of reboots (e.g., firmware updates, manual restarts).
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.