From 6a42e2a183ca405bcbc0b1f676694cc2b2cd5d79 Mon Sep 17 00:00:00 2001 From: LiShuzhen Date: Tue, 24 Dec 2024 15:38:53 +0800 Subject: [PATCH 1/3] fix: lumi.switch.acn040 identify service translation of zh-Hans --- .../xiaomi_home/miot/specs/multi_lang.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/custom_components/xiaomi_home/miot/specs/multi_lang.json b/custom_components/xiaomi_home/miot/specs/multi_lang.json index 80cb8b8..1594f7a 100644 --- a/custom_components/xiaomi_home/miot/specs/multi_lang.json +++ b/custom_components/xiaomi_home/miot/specs/multi_lang.json @@ -154,5 +154,15 @@ "service:004:event:001": "虛擬事件發生", "service:004:property:001": "事件名稱" } + }, + "urn:miot-spec-v2:device:switch:0000A003:lumi-acn040:1": { + "zh-Hans": { + "service:015": "设备确认", + "service:015:action:001": "左键确认", + "service:016": "设备确认", + "service:016:action:001": "中键确认", + "service:017": "设备确认", + "service:017:action:001": "右键确认" + } } } \ No newline at end of file From be5f802a159316f48a81dbe599bfe405f5edd9f7 Mon Sep 17 00:00:00 2001 From: LiShuzhen Date: Tue, 24 Dec 2024 16:21:50 +0800 Subject: [PATCH 2/3] fix: remove useless part --- custom_components/xiaomi_home/miot/specs/multi_lang.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/custom_components/xiaomi_home/miot/specs/multi_lang.json b/custom_components/xiaomi_home/miot/specs/multi_lang.json index 1594f7a..bee2a73 100644 --- a/custom_components/xiaomi_home/miot/specs/multi_lang.json +++ b/custom_components/xiaomi_home/miot/specs/multi_lang.json @@ -157,11 +157,8 @@ }, "urn:miot-spec-v2:device:switch:0000A003:lumi-acn040:1": { "zh-Hans": { - "service:015": "设备确认", "service:015:action:001": "左键确认", - "service:016": "设备确认", "service:016:action:001": "中键确认", - "service:017": "设备确认", "service:017:action:001": "右键确认" } } From 900cf2ce2b1b0aca920a34cc78fae9f83e765b7d Mon Sep 17 00:00:00 2001 From: LiShuzhen Date: Tue, 24 Dec 2024 21:10:23 +0800 Subject: [PATCH 3/3] fix: lumi.switch.acn040 identify service translation of en --- custom_components/xiaomi_home/miot/specs/multi_lang.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/custom_components/xiaomi_home/miot/specs/multi_lang.json b/custom_components/xiaomi_home/miot/specs/multi_lang.json index bee2a73..5e48bcc 100644 --- a/custom_components/xiaomi_home/miot/specs/multi_lang.json +++ b/custom_components/xiaomi_home/miot/specs/multi_lang.json @@ -156,6 +156,13 @@ } }, "urn:miot-spec-v2:device:switch:0000A003:lumi-acn040:1": { + "en": { + "service:011": "Right Button On and Off", + "service:011:property:001": "Right Button On and Off", + "service:015:action:001": "Left Button Identify", + "service:016:action:001": "Middle Button Identify", + "service:017:action:001": "Right Button Identify" + }, "zh-Hans": { "service:015:action:001": "左键确认", "service:016:action:001": "中键确认",