Skip to content

aqara D1 开关没有无线开关事件 #958

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
GavinIves opened this issue Apr 3, 2025 · 5 comments
Closed

aqara D1 开关没有无线开关事件 #958

GavinIves opened this issue Apr 3, 2025 · 5 comments
Assignees
Labels
wontfix This will not be worked on

Comments

@GavinIves
Copy link

Describe the Bug / 描述问题

aqara D1 开关没有无线开关事件

How to Reproduce / 复现步骤

涉及型号 lumi.switch.b2nacn02 lumi.switch.b1nacn02 lumi.switch.b3nacn02
他们是有无线开关功能的 但是目前没有这个事件

Image

缺少这一部分

Image

在xiaomigateway这个插件中有这个

Image

Expected Behavior / 预期结果

有无线开关的触发

Reproduce Time / 问题复现的时间点

任何

Home Assistant Logs / 系统日志

No response

Log Timezone / 日志时区

shanghai

Home Assistant Core Version / Home Assistant Core 版本

2025

Home Assistant Operation System Version / Home Assistant Operation System 版本

14

Xiaomi Home Integration Version / 米家集成版本

0.2.4

Additional Context / 其他说明

No response

@SusanPhevos
Copy link
Contributor

您好!请上传一下设备信息页截图,我们看看设备model是什么。

@GavinIves
Copy link
Author

GavinIves commented Apr 3, 2025

Image lumi.switch.b2nacn02 lumi.switch.b1nacn02 lumi.switch.b3nacn02

@HelloZhuz HelloZhuz self-assigned this Apr 3, 2025
@HelloZhuz
Copy link
Contributor

这个设备厂商没有定义spec事件,所以HA不会生成实体。定义链接:http://poc.miot-spec.srv/miot-spec-v2/instance?type=urn:miot-spec-v2:device:switch:0000A003:lumi-b2nacn02:1

@SusanPhevos SusanPhevos added the wontfix This will not be worked on label Apr 5, 2025
@GavinIves
Copy link
Author

GavinIves commented Apr 6, 2025

"lumi.switch.b2nacn02": ["Aqara", "Double Wall Switch D1 (with N)", "QBKG24LM"],
"spec": [
BoolConv("channel_1", "switch", mi="4.1.85"),
BoolConv("channel_2", "switch", mi="4.2.85"),
MathConv("power", "sensor", mi="0.12.85", round=2),
MathConv("energy", "sensor", mi="0.13.85", multiply=0.001, round=2),
BaseConv("action", "sensor"),
ButtonConv("button_1", mi="13.1.85"),
ButtonConv("button_2", mi="13.2.85"),
ButtonConv("button_both", mi="13.5.85"),
BoolConv("wireless_1", "switch", mi="4.10.85"), # config
BoolConv("wireless_2", "switch", mi="4.11.85"), # config
MapConv("power_on_state", "select", mi="8.0.2030", map={0: "off", 1: "previous"}), # config
BoolConv("led", "switch", mi="8.0.2032"), # config
],

事件在这里 他只是没有写在官网上 事实上是存在的
ButtonConv("button_1", mi="13.1.85"),
ButtonConv("button_2", mi="13.2.85"),
ButtonConv("button_both", mi="13.5.85"),

可以特殊额外加一个吗 这个设备市场占有量还是很大的

@SusanPhevos
Copy link
Contributor

"lumi.switch.b2nacn02": ["Aqara", "Double Wall Switch D1 (with N)", "QBKG24LM"], "spec": [ BoolConv("channel_1", "switch", mi="4.1.85"), BoolConv("channel_2", "switch", mi="4.2.85"), MathConv("power", "sensor", mi="0.12.85", round=2), MathConv("energy", "sensor", mi="0.13.85", multiply=0.001, round=2), BaseConv("action", "sensor"), ButtonConv("button_1", mi="13.1.85"), ButtonConv("button_2", mi="13.2.85"), ButtonConv("button_both", mi="13.5.85"), BoolConv("wireless_1", "switch", mi="4.10.85"), # config BoolConv("wireless_2", "switch", mi="4.11.85"), # config MapConv("power_on_state", "select", mi="8.0.2030", map={0: "off", 1: "previous"}), # config BoolConv("led", "switch", mi="8.0.2032"), # config ],

事件在这里 他只是没有写在官网上 事实上是存在的 ButtonConv("button_1", mi="13.1.85"), ButtonConv("button_2", mi="13.2.85"), ButtonConv("button_both", mi="13.5.85"),

可以特殊额外加一个吗 这个设备市场占有量还是很大的

xiaomi_home 所使用的云服务接口与中枢网关严格检查设备的 MIoT-Spec-V2,故 xiaomi_home 无法通过云端或中枢控制未定义的设备属性,也无法通过云端或中枢订阅未定义的设备事件。问题同 #41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants