mannkind / unifi2mqtt

A unifi controller device status to mqtt bridge process
MIT License
15 stars 2 forks source link

FATA[0001] Couldn't find site #12

Closed xmarwin closed 4 years ago

xmarwin commented 4 years ago

Hello. I am trying to run this software on my Synology (under Docker) and I keep getting this error:

FATA[0001] Couldn't find site error="self/sites returned result code: error"

this is the log: obrazek

and here is the configuration: obrazek

Any ideas, how to make this work? Thanks a lot, Martin

mannkind commented 4 years ago

Martin,

My initial guess would be that unless you’re running a multi-site controller, you should unset UNIFI_SITE. Just use the default site of “default”.

If you’re running a multi-site controller, then the library used in this app expects the ID; example “ohmt4ch6” for a site named “Home”. You can find the ID using the link to the site found in the “site overview” screen.

Hope that helps!

xmarwin commented 4 years ago

Hello, I figured it out - I didn't set up UNIFI_USERNAME (mine is different from default). Now it works. However, the error message is a bit confusing.

Best regards, Martin