Conversation
aqqkad
force-pushed
the
feat/aircon-remote-control
branch
from
September 17, 2026 05:28
ef09585 to
f1757a9
Compare
BenderBlog
reviewed
Sep 18, 2026
|
|
||
| bool _isReloading = false; | ||
| final session = AirconSession(); | ||
| final _pendingCommands = |
BenderBlog
reviewed
Sep 18, 2026
| if (imei.isEmpty) return; | ||
|
|
||
| _isReloading = true; | ||
| final requestId = ++_energyRequestId; |
BenderBlog
reviewed
Sep 18, 2026
| AirconSession.clearEnergyHistory(); | ||
| energyHistoryInfoList.clear(); | ||
| _lastValidInfo.value = null; | ||
| _energyRequestId++; |
Contributor
Author
There was a problem hiding this comment.
是状态管理的,原来的状态管理确实写的有点乱,已修改
BenderBlog
reviewed
Sep 18, 2026
| final DateTime? timestamp; | ||
| final String? errorCode; | ||
|
|
||
| factory AirconState.fromJson(Map<String, dynamic> json) { |
Owner
|
另请提供截图,主页卡片和内部样式 |
Owner
|
另提供 Codex AI 分析的问题,尤其关注 P2,这是我分析该功能的核心:
|
Contributor
Author
Owner
|
明天晚上再看,问题应该都不大了 |
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.


此 Pull Request 为空调(aircon)遥控控制和设备状态管理提供了全面支持。主要改动包括对
AirconController的大幅增强,以及将空调设备状态刷新集成到首页控制器中。空调遥控与设备状态管理
对
AirconController进行了大规模重构和扩展,支持设备状态获取、控制指令发送(电源、温度、模式、风速等)、乐观 UI 更新以及指令排队。同时新增了用于设备状态和控制状态的 Signal,以便 UI 能够及时响应状态变化。 [1] [2] [3] [4] [5]将空调设备状态刷新纳入首页的重新加载逻辑,确保 UI 显示最新的设备状态。 [1] [2]
设置与配置
这些改动为空调遥控功能提供了更加完整的设备控制和状态管理能力,并提升了整体的可靠性和响应性。