kw123 wrote:Ok, so I guess it got assigned when I migrated UniFi from rPi -> cloudkey. I only got one real site.it is a unifi system assigned value. I actually don't know how to change that one . it is not the "site name" in setting/ site it is more like an id when you have several unifi sites in one controller
kw123 wrote:please try : https://github.com/kw123/unifi/releases/tag/v7.39.356
should have the block/unblock error fixed and also (not test) allow a different name than default
Karl
uniFiAP setunifiCloudKeySiteNamer setting site id name to >>default<<, list of Names found:[u'default', u'od****fu']<
uniFiAP Error error:>> url:https://****************:443/proxy/network/api/s/default/stat/device/*************, resp:{"meta":{"rc":"error","mac":"*************","msg":"api.err.UnknownDevice"},"data":[]}
uniFiAP Error error:>> url:https://****************:443/proxy/network/api/s/default/stat/device/*************, resp:{"meta":{"rc":"error","mac":"*************","msg":"api.err.UnknownDevice"},"data":[]}
uniFiAP start runConcurrentThread, initializing loop settings and threads ..
2. Apr 2021 at 9.03.05
uniFiAP Block cmd: return True
kw123 wrote:Do you see the error message more than once ? Can you check in config
And switch on debug http connect and response. Then check plugin.log file
When the block function works it successfully logged in
uniFiAP initializing ...
uniFiAP path To files: =================
uniFiAP indigo /Library/Application Support/Perceptive Automation/
uniFiAP installFolder /Library/Application Support/Perceptive Automation/Indigo 7.5/
uniFiAP plugin.py /Library/Application Support/Perceptive Automation/Indigo 7.5/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/
uniFiAP Plugin params /Library/Application Support/Perceptive Automation/Indigo 7.5/Preferences/Plugins/com.karlwachs.uniFiAP/
uniFiAP logger enabled for INFO ==> TEST ONLY
uniFiAP Warning logger enabled for WARNING ==> TEST ONLY
uniFiAP Error logger enabled for ERROR ==> TEST ONLY
uniFiAP Error logger enabled for CRITICAL ==> TEST ONLY
uniFiAP check /Library/Application Support/Perceptive Automation/Indigo 7.5/Logs/com.karlwachs.uniFiAP/plugin.log <<<< for detailed logging
uniFiAP Plugin short Name UniFi
uniFiAP my PID 38267
uniFiAP set params for indigo V 7.5
Started plugin "uniFiAP 7.39.356"
uniFiAP testing if variable enableTimeTracking_UniFi is == on/off/print-option to enable/end/print time tracking of all functions and methods (option:'',calls,cumtime,pcalls,time)
uniFiAP myLogSet setting parameters -- logFileActive= indigo; logFile= /Library/Application Support/Perceptive Automation/Indigo 7.5/Logs/com.karlwachs.uniFiAP/plugin.log; debugLevel= [u'ConnectionCMD', u'ConnectionRET']
uniFiAP MAP2Vendor initializing
uniFiAP MAP2Vendor initializing finished, read from mac2Vendor.json file
uniFiAP MAP2Vendor initializing finished, read from mac2Vendor.json file
uniFiAP Error error:>> url:https://************.33:443/proxy/network/api/s/default/stat/device/************, resp:{"meta":{"rc":"error","mac":"************","msg":"api.err.UnknownDevice"},"data":[]}
uniFiAP Error error:>> url:https://************.33:443/proxy/network/api/s/default/stat/device/************, resp:{"meta":{"rc":"error","mac":"************","msg":"api.err.UnknownDevice"},"data":[]}
uniFiAP start runConcurrentThread, initializing loop settings and threads ..
uniFiAP initialized ... looping
MSG from plugin: ["un-Block cmd:False"]
02 15:50:00 Connection: requests:https://************.33:443/proxy/network/api/s/default/cmd/stamgr;
header:{'Content-Type': 'application/json', 'Accept': 'application/json', 'X-CSRF-Token': '7c046915-53be-4b91-9f2d-8469a64eb302'};
dataSEND:{'mac': u'****************', 'cmd': 'unblock-sta'};
cookies:{'TOKEN': 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjc3JmVG9rZW4iOiI3YzA0NjkxNS01M2JlLTRiOTEtOWYyZC04NDY5YTY0ZWIzMDIiLCJ1c2VySWQiOiIyMjY3OTI2Yi1mZGZiLTRlOGQtYTYwOS1lMzc1NTk1YTI3MWUiLCJwYXNzd29yZFJldmlzaW9uIjoxNjE2NjkxNTM5LCJpYXQiOjE2MTczNjc3OTgsImV4cCI6MTYxNzM3MTM5OH0.-Cyzp05Jbc49OUc9RtJGRReIFVM71nqmu7bRM2RRFyM'};
cmdType:post
02 15:50:00 executeCMDOnController retCode:200, time used:0.075887; cont length:143 os:unifi_os; cmdType:post, url:https://****************.33:443/proxy/network/api/s/default/cmd/stamgr
>>>{"meta":{"rc":"ok"},"data":[{"_id":"6064c36aade0570dd6c16192","site_id":"5b********************e2","mac":"********************","blocked":false}]}<<<
02 15:50:00 un-Block cmd: return False
02 15:50:00 Connection: requests:https://192.168.14.33:443/proxy/protect/api/events;
header:{'Content-Type': 'application/json', 'Accept': 'application/json', 'X-CSRF-Token': '7c046915-53be-4b91-9f2d-8469a64eb302'};
dataSEND:{u'start': '1617367798853', u'end': '1617367800873'};
cookies:{'TOKEN': 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjc3JmVG9rZW4iOiI3YzA0NjkxNS01M2JlLTRiOTEtOWYyZC04NDY5YTY0ZWIzMDIiLCJ1c2VySWQiOiIyMjY3OTI2Yi1mZGZiLTRlOGQtYTYwOS1lMzc1NTk1YTI3MWUiLCJwYXNzd29yZFJldmlzaW9uIjoxNjE2NjkxNTM5LCJpYXQiOjE2MTczNjc4MDAsImV4cCI6MTYxNzM3MTQwMH0.dbb8cmPycmSVWqYeb82lNXTbvKvZtQ1-_Nz3CTLeKYc'};
cmdType:get
02 15:50:00 executeCMDOnController retCode:200, time used:0.072174; cont length:2 os:unifi_os; cmdType:get, url:https://****************.33:443/proxy/protect/api/events
>>>[]<<<
kw123 wrote:Ok then you are I guess the first I know of where the site is not default.
Users browsing this forum: No registered users and 1 guest