NXY

Results 12 comments of NXY

> 该设备的[MIoT-Spec-V2](https://home.miot-spec.com/spec/linp.sensor_ht.ks1bp)显示,该设备的mode不可写,因此无法配置。事件详情里,会显示产生事件的是哪一个按键。 ### 从HA的编辑器视角 ![image](https://github.com/user-attachments/assets/a7b02e81-05e5-463a-9994-56ebf7022c83) 我在home Assistant的日志中看到的只有detected an event。 ![image](https://github.com/user-attachments/assets/3638ed6e-f4e0-478a-bf0a-b2c44c767c49) 在automation中设置它的状态变化时,“按键类型”也没有可选项,是哪里出问题了吗? ![image](https://github.com/user-attachments/assets/f5aee801-6c09-4d0e-819f-0f858f73f7e6) 如果不选attribute,那么只能选any、unavailable、unknown,显然也没有意义。 ### 在miot-spec.org查询 我看了一下[单击事件](https://miot-spec.org/miot-spec-v2/spec/property?type=urn:miot-spec-v2:event:click:00005007),内容如下: ``` {"arguments":[],"type":"urn:miot-spec-v2:event:click:00005007","description":"Click"} ``` 看起来这个事件并没有详情内容? ![image](https://github.com/user-attachments/assets/873aee4e-261c-48f2-a765-ccc65d4fa871) 在实体中,我没有看到和“urn:miot-spec-v2:property:button-type:0000011F”相关的东西。 ---- 上面是我目前查到的东西,因为我也是第一次接触HA,不太清楚上面这些意味着什么,请帮我看看,谢谢!

它的按键类型似乎是一个“number”,意味着我不能用字符串的比较来判断它。 现在我换成使用“大于2且小于4”条件,它可以正常触发。