Closed Isaksson closed 6 years ago
Just to make sure that your sitename is correct, if you add the sitename to the config then everything works?
New version is now pushed to NPM, you could now add the site name like this:
msg.payload = { site: "site name"};
And like this to send the command ClientDevices to the site default.
msg.payload = { command: "ClientDevices", site: "default"};
Please let me know when you have tested this new feature.
I have tried to contact the person who requested this enhancement without any success, so this issue is now closed based on my tests.
I would like to set site name from another input as calling command from function, I'm getting the same error NoSiteContext. I even tried to add this to unifi.js but still no luck.