小米的无线墙壁开关 node-red 中怎么设

墙壁无线开关出发没有反馈,无法做自动化,这个怎么设置??

先拉个调试节点看看输出是什么然后在搞

image
这个后面接你需要,照着抄一个

[{"id":"6b4a7125.bbefe","type":"tab","label":"流程3","disabled":false,"info":""},{"id":"e6b67ea0.b0c71","type":"function","z":"6b4a7125.bbefe","name":"点按方式","func":"if(msg.payload.event.entity_id == \"binary_sensor.switch_158d00025d8031\" && msg.payload.event.click_type == \"single\" ) {\n    msg.payload= \"single\"\n    return [ msg, null, null];\n}\nelse if(msg.payload.event.entity_id == \"binary_sensor.switch_158d00025d8031\" && msg.payload.event.click_type == \"double\") {\n    msg.payload= \"double\"\n    return [ null, msg, null];\n}\nelse if(msg.payload.event.entity_id == \"binary_sensor.switch_158d00025d8031\" && msg.payload.event.click_type == \"long_click_press\") {\n    msg.payload= \"long_click_press\"\n    return [ null, null, msg];\n}\n\nreturn null;\n\n","outputs":3,"noerr":0,"x":525,"y":450,"wires":[[],[],[]],"outputLabels":["单击","双击",""]},{"id":"ed466bd9.a81f68","type":"server-events","z":"6b4a7125.bbefe","name":"小米无线开关","server":"575ece9a.2c82d","event_type":"","exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"waitForRunning":true,"x":355,"y":450,"wires":[["e6b67ea0.b0c71"]]},{"id":"575ece9a.2c82d","type":"server","z":"","name":"Home Assistant","legacy":false,"addon":false,"rejectUnauthorizedCerts":false,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":false,"cacheJson":false}]

谢谢大佬。。。。