esphome / esphome/feature-requests
Add restore_mode DISABLED option in Light component
- Dominant language
- No language data
- Stars
- 450
- Forks
- 29
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the problem you have/What new integration you would like**
Add restore_mode DISABLED option in Light component
**Please describe your use case for this integration and alternatives you've tried:**
I have an ESP32 with ESPHOME, it works well but it restarts sometimes. I have some Light with binary components configured on it that send RF codes. My problem is that every time it restarts, it tries to recover the state, but since those lights can also be manually turned on, it would be preferable if it didn’t try to recover any state.
ALTERNATIVES I HAVE TRIED
Use restore_from_flash to avoid restoring it but it is not for ESP32 so it does not work
**Additional context**
The SWITCH component does have this functionality as described in the restore_mode section of https://esphome.io/components/switch/index.html
I could try to replicate the functionality of the Switch in the light component but my C++ skills are between scarce and none.
Thank you, and sorry for my english
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reading the Light component's restore_mode documentation and comparing it with the restore_mode section for the Switch component at the linked ESPHome documentation page. Check how the requested DISABLED option would apply to Light components, and consider the work complete when a Light configured with it does not restore state after an ESP32 restart.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- embedded-iot
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100