Isaksson / node-red-contrib-unifi

MIT License
51 stars 20 forks source link

hilfe bei command senden #65

Closed liv-in-sky closed 2 years ago

liv-in-sky commented 2 years ago

würde gerne einen comand senden. z.b die led ausschalten oder den ap disablen. es kommt aber leider immer nur no command unter der unifi node - die node funktioniert, wenn ich z.b. AccessDevices auswähle - dann werden meine ap's angezeigt -.

sieht dann so aus Image 2

die functions sind so definiert: Image 4

Image 3

für hilfe wäre ich dankbar

Isaksson commented 2 years ago

Hello. Could you please try with this simple command in a function node and see if you still gets the message "No Command". And also, what version of this node are you running?

msg.payload = { command: "ClientDevices"}; return msg;

liv-in-sky commented 2 years ago

hi - thanx for your help

_from": "node-red-contrib-unifi@0.0.6",

the command you gave me works !!

Image 13

Isaksson commented 2 years ago

Ahh I see, that is a very old version of the Node, I don't think that commands was implemented in that version. latest version is 0.1.17 so please update the Node and try again.

liv-in-sky commented 2 years ago

I have made an update of the node - now it is working - thanx