刚整了个Z2M的网关,然后接了个无线双开,在NR里面填了一个测试,咋戳都没反应,把自己写的流拿出来请大佬们看看
我的网关接入方式是,docker跑了个zigbeemqtt,然后NR里面用节点找设备,然后HA的mqtt自动发现,我感觉接法肯定走弯路了,但是现在感觉能用就行
[{"id":"df302437.1189a8","type":"tab","label":"流程1","disabled":false,"info":""},{"id":"366b25b8.24e6da","type":"switch","z":"df302437.1189a8","name":"无线双开","property":"payload.event.entity_id","propertyType":"msg","rules":[{"t":"eq","v":"sensor.0x00158d00012a7fd9_click","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":285,"y":125,"wires":[["c6990f51.9dc"]]},{"id":"c6990f51.9dc","type":"switch","z":"df302437.1189a8","name":"左键","property":"payload.event.click_type","propertyType":"msg","rules":[{"t":"cont","v":"left,single","vt":"str"},{"t":"cont","v":"left,double","vt":"str"},{"t":"cont","v":"left,hold","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":450,"y":125,"wires":[["e2ed3ece.ccef2"],[],[]]},{"id":"43239d68.607bf4","type":"server-events","z":"df302437.1189a8","name":"入户无线双键","server":"ea5e8e30.9c224","event_type":"","exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"waitForRunning":true,"x":120,"y":125,"wires":[["366b25b8.24e6da"]]},{"id":"e2ed3ece.ccef2","type":"api-call-service","z":"df302437.1189a8","name":"入户筒灯","server":"ea5e8e30.9c224","version":1,"debugenabled":false,"service_domain":"switch","service":"toggle","entityId":"switch.wall_switch_ln_left_158d0003f485e2","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":610,"y":75,"wires":[[]]},{"id":"ea5e8e30.9c224","type":"server","z":"","name":"Home Assistant","legacy":false,"addon":false,"rejectUnauthorizedCerts":false,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":false,"cacheJson":false}]