使用Z2M网关请教

刚整了个Z2M的网关,然后接了个无线双开,在NR里面填了一个测试,咋戳都没反应,把自己写的流拿出来请大佬们看看
我的网关接入方式是,docker跑了个zigbeemqtt,然后NR里面用节点找设备,然后HA的mqtt自动发现,我感觉接法肯定走弯路了,但是现在感觉能用就行
image

[{"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}]

无线双开是什么用了Z2M就可以直接走mqtt了. 不需要从ha接入到nr了

就是放在入户点一下,整个出门模式,mqtt我不知道topic那是是啥 :sob: :sob: :sob:

你接入Z2M就有主题的

或者你看HA的开关配置. 里面有主题

确实有配置,但是没有点按方式 :sob:
这是HA里面收到的信息

availability_topic: zigbee2mqtt/bridge/state
device:
identifiers:
- zigbee2mqtt_0x00158d00012a7fd9
manufacturer: Xiaomi
model: Aqara double key wireless wall switch (WXKG02LM)
name: ‘0x00158d00012a7fd9’
sw_version: Zigbee2MQTT 1.14.4
icon: ‘mdi:toggle-switch’
json_attributes_topic: zigbee2mqtt/0x00158d00012a7fd9
name: 0x00158d00012a7fd9_click
state_topic: zigbee2mqtt/0x00158d00012a7fd9
unique_id: 0x00158d00012a7fd9_click_zigbee2mqtt
value_template: ‘{{ value_json.click }}’
platform: mqtt

你有小米网关吗?
你这个接入绕大了
Aqara 的无线开关都不需要Z2M

:sob:有小米网关啊,这不是新买了这个网关玩嘛,直接用小米网关可以接这个,但是我还是不知道他那个点按方式咋写