Isaksson / node-red-contrib-unifi

MIT License
51 stars 20 forks source link

Empty Payload with CloudKey+ Gen2 v 6.5.53 #61

Closed theArcher73 closed 2 years ago

theArcher73 commented 2 years ago

I tried to read the client-device information but get allways an empty payload back. The node shows a green connection-bubble in the flow.

I activated the unifi-OS-checkbox, used port 8443 and the IP of the CloudKey.

Can you give me an hint where I can look to solve the Problem?

Thx,

Steffen

Isaksson commented 2 years ago

Hello. Could you please send some print screens of your flow so that I could see how it looks.

theArcher73 commented 2 years ago

Hi,

thanks for your support. But, when I try to attach an image (.jpg, .png, 5Kb/ 16kB sized) I get an exception here in Github --> Something went really wrong and we can't process that file..... I put three images in my google-drive and post the links, sorry

https://drive.google.com/file/d/1-K84wYGW-iBXjOZ4ZgUkuq_rMTUe72E3/view?usp=sharing https://drive.google.com/file/d/1-D82dd57mfFliL0jIG9J6ZqnuTinl6v_/view?usp=sharing https://drive.google.com/file/d/1-kKSba7TU_7FZyQXIVjkXGwhkP-z_jgg/view?usp=sharing

The default site in the unifi-controller is named home.

Steffen

Isaksson commented 2 years ago

I think it would be good to first try to find the actual Unifi name for the Site, its not always that simple that Unifi uses the name that you have entered. Just add a simple inject -> Unifi node and select SitesStats as Command username and passwors does not need to be correct here but Server/port/UnifiOs needs to be set correct.

You will get a payload with the information about all your sites, including the name (this is the correct name for your site to use in this node)

And one more think, if I am not wrong the default port for Unifi OS is 443 not 8443

Please try this and get back with the result :)

smort82 commented 2 years ago

I am also having the same issue on CloudKey+ Gen2 v 6.5.55. Empty payload always, also when trying SitesStats at port 443

theArcher73 commented 2 years ago

Hi,

sorry, I had any trouble with other topics.

unifi_err

There is no other result, except that here in Github the upload of pictures is possible again. The IP ist the IP from the cloud-Key. (?)

USG 3P --> 4.4.56.5449062 Cloud-Key (UnifiOS) --> 2.2.12 Network --> 6.5.55

Steffen

Isaksson commented 2 years ago

I am also having the same issue on CloudKey+ Gen2 v 6.5.55. Empty payload always, also when trying SitesStats at port 443

Have you also ticked the Unifi OS checkbox?

Isaksson commented 2 years ago

Hi,

sorry, I had any trouble with other topics.

unifi_err

There is no other result, except that here in Github the upload of pictures is possible again. The IP ist the IP from the cloud-Key. (?)

USG 3P --> 4.4.56.5449062 Cloud-Key (UnifiOS) --> 2.2.12 Network --> 6.5.55

Steffen

Yes, that's correct, it should be the IP address of the cloud key.

bruce3322 commented 2 years ago

I think it would be good to first try to find the actual Unifi name for the Site, its not always that simple that Unifi uses the name that you have entered.

Thanks, this helped me with the same issue (aside from port 443 and unifi OS ticked too). The site "name" I see in the controller is actually the site description and not the name. The site name itself seems to be a randomly generated alphanumeric string.

Isaksson commented 2 years ago

Yeah I think it depends on what version you where on when created the site, and if you rename it or leave it by it default value. my site name is actually default

Kimovitzh commented 2 years ago
Skærmbillede 2022-02-20 kl  11 28 53

I just get undefined, what am I doing wrong here? I inject msg.payload = {"site":"site name"}

Isaksson commented 2 years ago

What happens if you just inject a date or time or something, and lets the command in the Node get executed, is it still empty payload?

Kimovitzh commented 2 years ago

What happens if you just inject a date or time or something, and lets the command in the Node get executed, is it still empty payload?

Skærmbillede 2022-02-21 kl  20 23 54

Like this? If yes, I just gets what the debug shows.