feat: support remote program selection for dryers via drycycle select - #285
Merged
Conversation
Dryer firmware accepts writes to the drycycle attribute (declared read-only in the cloud spec, same as runningmode). Add it to _control_attrs so a writable Select entity is generated with all 24 programs, including OneKeyDry (一键智烘). Verified on HGY100-F376WU1: power on -> drycycle=43 (一键智烘) -> runningMode=启动 starts the smart-dry cycle.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Add
drycycleto_control_attrs, so dryers get an extra writable Select entity for 干燨程序 (dry cycle) — the same mechanism already used for washer/dishwasher wash modes (washprog,partitionwashstatus,runningmode).Why
The cloud spec declares
dryCycleread-only, but dryer firmware actually accepts writes — exactly likerunningMode. Verified end-to-end on HGY100-F376WU1 (干衣机):drycycle=43) →localProgName1=OneKeyDry,dryCyclesensor reports 一键智烘, value retained (no rollback)runningMode) → cycle starts,cyclePhase=自动判断负载中This enables full remote/voice program selection (all 24 programs incl. OneKeyDry), instead of only switching
programClass.Notes
data_keyremainsdrycycle.