deconz-community / node-red-contrib-deconz

Node-Red Nodes for deCONZ connectivity.
GNU General Public License v3.0
81 stars 16 forks source link

FR: Pull link quality for nodes #223

Closed Jacksonbm1 closed 6 months ago

Jacksonbm1 commented 1 year ago

My idea

As far as I can tell, you cannot pull in link quality with the current node-red integration. It would be extremely helpful if you could. I don't know if this is possible, but you would probably have it be an object with multiple dimensions (one for every node it is connected to with a subdimension of ingoing and outgoing traffic). I assume this is possible since deconz has the data and we're pulling from deconz correct?

Lmk if I can help debug anything.

Best,

Zehir commented 1 year ago

Hello,

Are you trying to get the green wire data you see in the GUI ? As far I know this data id not exposed in the rest api.

Jacksonbm1 commented 1 year ago

You're right. I was getting the command line plugin mixed up with the rest API. Shame it's not possible. I'm going to leave this open and link it to this blocking bug: https://github.com/dresden-elektronik/deconz-rest-plugin/pull/4605

Zehir commented 1 year ago

What command line plugin ?

Jacksonbm1 commented 1 year ago

This one: https://github.com/ma-ca/deconz-cli-plugin/blob/master/README.md It seems like you can pull in link quality through this, though I'm not positive.

Zehir commented 1 year ago

This plugin is 5 years old, does he still works ?

Jacksonbm1 commented 1 year ago

No clue. I feel like on the one hand deconz has new devices getting support all the time. On the other, it feels like a TON of the documentation is super super outdated. This page for example (though now that I look it actually seems to finally have. been updated a bit). I am planning on trying to use the plug in and see if it works.

Zehir commented 1 year ago

Yes the device support list is outaded, it's suport many devices now. Since the DDF stuff came out.

You can use the api node to query anything on the rest api. There is also some undocumented api endpoint in "beta" and that why there are kot documented. You can check the rest api plugin code to see them