feat(socket): update smart socket defaults #12

Merged
KremeCN merged 1 commits from feat/update-smart-socket into main 2026-08-28 07:07:22 +08:00
Owner

Summary

  • change the default socket device name from Zigbee插座控制器 to 智能插座
  • update new default scenes, in-memory defaults, and Local Experience simulation data to use the new gateway name
  • remove the duplicated Direct control section from the smart socket detail screen, keeping the main power control
  • remove the unused direct-control strings

Data behavior

  • existing configured devices are not renamed
  • existing persisted scenes are not migrated
  • only newly created default content uses 智能插座

Verification

  • ./gradlew.bat :android:app:assembleDebug --no-daemon
  • installed on mulator-5554
  • confirmed the Local Experience device card shows 智能插座
  • confirmed the socket detail screen has no Direct control section or duplicate ON/OFF buttons

Automated tests were not run.

## Summary - change the default socket device name from Zigbee插座控制器 to 智能插座 - update new default scenes, in-memory defaults, and Local Experience simulation data to use the new gateway name - remove the duplicated Direct control section from the smart socket detail screen, keeping the main power control - remove the unused direct-control strings ## Data behavior - existing configured devices are not renamed - existing persisted scenes are not migrated - only newly created default content uses 智能插座 ## Verification - ./gradlew.bat :android:app:assembleDebug --no-daemon - installed on mulator-5554 - confirmed the Local Experience device card shows 智能插座 - confirmed the socket detail screen has no Direct control section or duplicate ON/OFF buttons Automated tests were not run.
KremeCN added 1 commit 2026-08-28 07:06:14 +08:00
pr-agent-bot bot reviewed 2026-08-28 07:07:12 +08:00
pr-agent-bot bot left a comment

Inline comment

Inline comment
@@ -29,9 +29,9 @@ class SimulationDeviceCatalog : DeviceCatalog {
private fun defaultDevices(profileId: ProviderProfileId): List<DeviceDescriptor> = listOf(
DeviceDescriptor(
id = DeviceId("${profileId.value}:Zigbee插座控制器"),

场景失效

本地体验的设备目录在进程重建后只会生成名为 智能插座 的设备,但已有持久化场景不会迁移,仍通过 DeviceName("Zigbee插座控制器") 定位设备。用户升级并重启后,原有回家、离家及高温降温场景将无法匹配模拟插座。需要迁移旧场景,或为模拟设备保留旧名称的兼容映射。

**场景失效** 本地体验的设备目录在进程重建后只会生成名为 `智能插座` 的设备,但已有持久化场景不会迁移,仍通过 `DeviceName("Zigbee插座控制器")` 定位设备。用户升级并重启后,原有回家、离家及高温降温场景将无法匹配模拟插座。需要迁移旧场景,或为模拟设备保留旧名称的兼容映射。 <!-- pr-agent-dedup: d017d6d80c2d --> <!-- pr-agent-key-issue-location: abe40af512a4 -->
Author
Owner

预期行为

预期行为
KremeCN marked this conversation as resolved
pr-agent-bot bot reviewed 2026-08-28 07:07:13 +08:00
pr-agent-bot bot left a comment

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
## PR Reviewer Guide 🔍 Here are some key observations to aid the review process: <table> <tr><td>⏱️&nbsp;<strong>Estimated effort to review</strong>: 2 🔵🔵⚪⚪⚪</td></tr> <tr><td>🧪&nbsp;<strong>No relevant tests</strong></td></tr> <tr><td>🔒&nbsp;<strong>No security concerns identified</strong></td></tr> </table>
KremeCN merged commit 387ecacef5 into main 2026-08-28 07:07:22 +08:00
KremeCN deleted branch feat/update-smart-socket 2026-08-28 07:07:22 +08:00
Sign in to join this conversation.
No Reviewers
No labels
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Flagship/abox-mgr#12