esphome / esphome/feature-requests

tuya_light: restore light state from Tuya MCU instead of ESP flash memory

Open
#2,311 3 comments 3 reactions 0 assignees View on GitHub
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**

On Tuya-MCU enabled devices, the second MCU is usually responsible for saving and restoring light state. I suggest to add option to restore light state from it instead of setting some deafult value (restore_mode: ALWAYS_ON ...) or restoring from ESP flash (restore_mode: RESTORE_DEFAULT_ON ...).

**Please describe your use case for this integration and alternatives you've tried:**

**Additional context**

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing Tuya-MCU light-state handling and the existing restore_mode behavior. Determine how the MCU's saved state can be used instead of the ESP flash value or a default, then verify that the new option restores the expected light state on Tuya-MCU devices.

Written by the indexing model from the issue text.

Assessment

Domain
embedded-iot
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.