如何能在NodeRed中获取 XiaomiGateway3 蓝牙Mesh设备的消息?
打开 xiaomigateway3的debug log可以看到mesh开关按下按键的消息,但是因为第几个按键是在 argments 参数里确定的,然后devices.py converter 里不知道该怎么处理。
有没有办法可以把这个消息扔到nodeRed, 处理起来就方便多了。
miio/report b'{"id":41147812,"method":"event_occured","params":{"did":"1081000262","siid":5,"eiid":1,"tid":247,"ts":1692885577,"arguments":[{"piid":2,"value":1}]},"type":16}'
central/report b'{"id":337529306,"_to":128,"type":16,"method":"event_occured","params":{"did":"1081000262","siid":5,"eiid":1,"tid":247,"ts":1692885577,"arguments":[{"piid":2,"value":1}]}}'
找到方法了,其实很简单,nodeRed 里连到 小米网关 ip的 mqtt server 就可以
https://github.com/AlexxIT/openmiio_agent
页:
[1]