Page 3 of 3
Re: Presence detection using UniFi Controller (Ubiquiti Networks)
Posted: Monday 29 October 2018 10:47
by RapTile
Maes wrote: ↑Monday 29 October 2018 9:13
Okay, it works. I don't know how this jq works but it seems to utilize black magic.
Cool

I dont know how jquery works either. Had to do a lot of trial and error

Nice that it works for you as well.
Re: Presence detection using UniFi Controller (Ubiquiti Networks)
Posted: Monday 25 March 2019 8:55
by RLezer
i am running this script against my controller, my devices get reported online.. but they never go Offline. i left the hous 2 hours ago, but my phone is still reported online.
if i switch it to off manually , it stays "off" until i get home.. so somewhere there is a small error. but haven't been able to pinpoint it yet.
Re: Presence detection using UniFi Controller (Ubiquiti Networks)
Posted: Saturday 05 October 2019 16:03
by seansco
@BakSeeDaa You are the BOMB DOT COM!!!
Thank your for this

Re: Presence detection using UniFi Controller (Ubiquiti Networks)
Posted: Thursday 30 July 2020 11:01
by karlzre
Hi,
I'm just testing your script i get a error 302
Code: Select all
Running unifi_detect.sh 1.0.1
302
Exiting with a result code of : 302
Any idea what's is wrong ?
Re: Presence detection using UniFi Controller (Ubiquiti Networks)
Posted: Thursday 30 July 2020 11:11
by karlzre
Code: Select all
I'm just testing your script i get a error 302
CODE: SELECT ALL
Running unifi_detect.sh 1.0.1
302
Exiting with a result code of : 302
Any idea what's is wrong ?
Ok i found, i was trying to use the unesecure interface.
I changed it to
https://ip port 8443 and it works now .
Re: Presence detection using UniFi Controller (Ubiquiti Networks)
Posted: Tuesday 17 November 2020 15:44
by sschouten
Hi,
since a few days the script is not working any more,
it worked for over a year perfect.
when i start the script trough ssh i get this message.
Code: Select all
Running unifi_detect.sh 1.0.1
./unifi_detect.sh: regel 47: onverwacht bestandseinde tijdens zoeken naar bijpassende ']'
./unifi_detect.sh: regel 129: syntaxfout: onverwacht bestandseinde
Re: Presence detection using UniFi Controller (Ubiquiti Networks)
Posted: Sunday 06 December 2020 21:03
by rbosch
I have been using the script succesfully for years. Switched to a Dreammachine today and cannot get it to work.
I added a local user with limited admin rights to the Dreammachine and changed the IP address of the script to point to the device.
Tried it with port 443 and without port. But no result.
Is there a log file where I can see what is going wrong? Any other clues?
Re: Presence detection using UniFi Controller (Ubiquiti Networks)
Posted: Thursday 22 April 2021 18:13
by edebruin
I have running this script for a long time, with success. After reinstalling my Domoticz (Raspberry Pi), and copying over the script from the old installation to the new one. The result from the script is 'Exiting with a result code of : 404', and all Phones are switched off in Domoticz.
Someone any idea how to fix this issue?
Re: Presence detection using UniFi Controller (Ubiquiti Networks)
Posted: Monday 03 May 2021 1:22
by parkerc
Same issue, my latest UniFi controller update seems to have broke the wall
I have been trying to ing to figure out what’s changed. I’m wondering if the curl request / format has changed slightly (
https://ubntwiki.com/products/software/ ... roller/api)
Maybe it’s become ..
Code: Select all
curl -k -X POST --data '{"username": "usr", "password": "password"}' -b cookie.txt https://192.168.102.207:443/proxy/network/api/auth/login
Re: Presence detection using UniFi Controller (Ubiquiti Networks)
Posted: Monday 30 August 2021 19:36
by nigels0
Is it working any more?