uniFiAP  

Developer: Karl's Plugins     Like this plugin? Show your appreciation!
Category: Location and Presence
Github: Github Repo
Assistance: Get help!   
Plugin ID: com.karlwachs.uniFiAP
Latest release: v7.26.151 released on Dec. 12, 2018
Release downloaded: 0 times
Requires: Indigo v7.0.2 or higher
(Check the Releases tab below for older releases that may have different requirements)
  Download latest release

unifi

indigo plugin that reads unifi devices and populates indigo devices and variables details at https://forums.indigodomo.com/viewforum.php?f=199

Release details
Released on: Dec. 12, 2018
Requires: Indigo v7.0.2+
Downloaded: 0 times 
Changes in this release

changes in V 7.26.151 @ 2018-12-12

  1. encapsulated password in single quotes. Was not working with ( or ) in password

  2. improved menus

  3. fixed un-ignore device menu option

Release details
Released on: Nov. 23, 2018
Requires: Indigo v7.0.2+
Downloaded: 0 times 
Changes in this release

added menu item to ignore partially defined MAC numbers. eg 12:xx:56:67:89:ab will ignore all MAC #s with 12... and any hex number in the second section

Release details
Released on: Nov. 18, 2018
Requires: Indigo v7.0.2+
Downloaded: 0 times 
Changes in this release

added actionControlSensor ...

kw123 committed 819b761 7 changed files - added actionControlSensor method. will update / set devices accordingly - added temperature as number state to unifi system devices that have that property - fixed wanUpTime state, was not updated

Release details
Released on: Nov. 15, 2018
Requires: Indigo v7.0.2+
Downloaded: 0 times 
Changes in this release

added dummy method actionControlSensor

  • some menu text fine tuning
Release details
Released on: Nov. 11, 2018
Requires: Indigo v7.0.2+
Downloaded: 0 times 
Changes in this release

added checks for deleted cameras and disabled userids on NVR - they are ignored now

increased number of switches to 13

Release details
Released on: Nov. 8, 2018
Requires: Indigo v7.0.2+
Downloaded: 0 times 
Changes in this release

fixed error:'Plugin' object has no attribute 'pr'

Release details
Released on: Nov. 8, 2018
Requires: Indigo v7.0.2+
Downloaded: 0 times 
Changes in this release
  • added time debugging. ie track where cpu is spend.
  • decreased cpu usage by optimizing code.
  • logfile is now called plugin.log, not unifi.log
  • fixed some menu texts
Release details
Released on: Nov. 5, 2018
Requires: Indigo v7.0.2+
Downloaded: 0 times 
Changes in this release

fixed bug that left apiKey empty
added 2. option for curl, to enable use of an updated curl version using homebrew to install ie /usr/local/bin/curl

Release details
Released on: Oct. 23, 2018
Requires: Indigo v7.0.2+
Downloaded: 0 times 
Changes in this release

reversed changed from previous version using self.pluginPrefs.get

now using again:
self.xxx = self.pluginPrefs.get(u"xxx", "abc") # in startup
and
if self.xxx=="123": # in the code
instead of
if self.pluginPrefs.get(u"xxx", "abc"): =="123"

to avoid timeouts

Release details
Released on: Oct. 20, 2018
Requires: Indigo v7.0.2+
Downloaded: 0 times 
Changes in this release

added detailed parameters prints to give better koverview of user-ids ip numbers and other parameters

you need to reenter VIDEO-NVR IP userID and passwords

Release details
Released on: Oct. 14, 2018
Requires: Indigo v7.0.2+
Downloaded: 0 times 
Changes in this release

changed devicetype to sensor from custom
this enables dev.onState functionality as standard indigo binary sensor for all unifi devices
this should make all unifi devices available to other plugin (ie homebridge etc) as regular indigo binary sensor devices.
A state UP will be TRUE, everything else will be FALSE

Also added option to change down --> expiration time from UP--> down in config (set multiple of UP-> down time)

Release details
Released on: Oct. 11, 2018
Requires: Indigo v7.0.2+
Downloaded: 0 times 
Changes in this release

added full functionality to get snapshots from cameras
tuned some help and menu items

Release details
Released on: Oct. 7, 2018
Requires: Indigo v7.0.2+
Downloaded: 0 times 
Changes in this release

now supports also streaming video on/off improved executions speed

Release details
Released on: Oct. 6, 2018
Requires: Indigo v7.0.2+
Downloaded: 0 times 
Changes in this release

added function to control unifi cameras:
functions to switch on/off: led, ir, sound, mic, record

Release details
Released on: Oct. 2, 2018
Requires: Indigo v7.0.2+
Downloaded: 0 times 
Changes in this release
  1. fixed block / unblock action -- used the wrong filter, wifi devices only. was correct in the regular menus
  2. added cpu mem usage % and temperature states for USG 3(no temperature info) and 4 (has temperature)
Release details
Released on: Sept. 24, 2018
Requires: Indigo v7.0.2+
Downloaded: 0 times 
Changes in this release

added support for USG4 pro, ie adopted changed data dict dump keys

Release details
Released on: Sept. 22, 2018
Requires: Indigo v7.0.2+
Downloaded: 0 times 
Changes in this release

changed time window checking for blocked / unblocked. it only worked at start of plugin.

Release details
Released on: Sept. 21, 2018
Requires: Indigo v7.0.2+
Downloaded: 0 times 
Changes in this release

added states "firstSeen" and "useFixedIP". they are updated once an hour

Release details
Released on: Sept. 21, 2018
Requires: Indigo v7.0.2+
Downloaded: 0 times 
Changes in this release

added option to get "blocked" info from unifi controller. You can selewct off/ check ervery xx secs in config . A device state "blocked" was added. if there is no info the state stays empty. true/false if info available

Release details
Released on: Sept. 16, 2018
Requires: Indigo v7.0.2+
Downloaded: 0 times 
Changes in this release

fix "self.broadcastIP = 192.168.1.255 " and enable to enter path for nvr video monitoring command (was static) changed connection test to unif devices to lowercase test eg if "unifi" in string and not if "UniFi" in string needed for some versions .

Release details
Released on: Sept. 13, 2018
Requires: Indigo v7.0.2+
Downloaded: 0 times 
Changes in this release

File "plugin.py", line 3650, in runConcurrentThread IndexError: list index out of range

only occurs for new installs. A variable was not properly initiated

Release details
Released on: Sept. 10, 2018
Requires: Indigo v7.0.2+
Downloaded: 0 times 
Changes in this release

added variable "UniFi_New_Device". It will be changed when the plugin creates a new indigo device. Contents is: deviceName/MAC#/ipNumber ipNumber might not be present (ie for Neighbor routers)

Release details
Released on: Sept. 9, 2018
Requires: Indigo v7.0.2+
Downloaded: 0 times 
Changes in this release

added variable Unifi_With_IPNumber_Change, will show: UniFi-iPhone Karl/1c:36:bb:97:c0:85/192.168.1.091/192.168.1.093 ie devname/mac#/oldIP/newip

Release details
Released on: Sept. 9, 2018
Requires: Indigo v7.0.2+
Downloaded: 0 times 
Changes in this release

added variable Unifi_With_IPNumber_Change, will show: UniFi-iPhone Karl/1c:36:bb:97:c0:85/192.168.1.091/192.168.1.093 ie devname/mac#/oldIP/newip

Release details
Released on: Sept. 7, 2018
Requires: Indigo v7.0.2+
Downloaded: 0 times 
Changes in this release

fixed (un)block and reconnect client command to be used is POST not PUTv7.18.119

Release details
Released on: Aug. 16, 2018
Requires: Indigo v7.0.2+
Downloaded: 0 times 
Changes in this release

v7.18.118

Release details
Released on: Aug. 12, 2018
Requires: Indigo v7.0.2+
Changes in this release

fixed USG expiration changed names of states to better reflect their meanings

Requirements

indigo 7

Release details
Released on: Aug. 11, 2018
Requires: Indigo v7.0.2+
Changes in this release

added indigo device state for gateway wan: up/down

format for wanUPTime state is xxd, hh:mm eg 12d, 13:59

Requirements

indigo 7

Release details
Released on: Aug. 11, 2018
Requires: Indigo v7.0.2+
Changes in this release

added wanUpTime to indigo device states for unifi gateway

Requirements

indigo 7

Release details
Released on: Aug. 1, 2018
Requires: Indigo v7.0.2+
Changes in this release

added support for indigo broadcasts
messages are like:
{'pluginId': u'com.karlwachs.uniFiAP', 'data': [{'name': u'UniFi-vonage', 'id': '1787475791', 'state': 'status', 'valueForON': 'up', 'action': 'event', 'newValue': u'down'}, {'name': u'SW_1_unifi2', 'id': '1793311686', 'state': 'status', 'valueForON': 'up', 'action': 'event', 'newValue': u'down'}]}

Requirements

indigo 7.1

Release details
Released on: June 7, 2018
Requires: Indigo v7.0.2+
Changes in this release

added
- WOL settings and date of last change and reason to std report
- menu option to set minimum expiration time for ALL devices

Requirements

indigo 7

Release details
Released on: June 6, 2018
Requires: Indigo v7.0.2+
Changes in this release

Added several GROUP functions and report. Can now easily add and remove UniFi devices to from groups in a menu. Print Groups has a nice overview and summary of groups and members. Added variable Unifi_Groupxx_name. You can set that to eg Wifi or raspberry to rememberwhat is in what groups.

Added Wake on LAN option for each individual device. Similar to fingscan you can select to send WOL packages to individual devices every xx secs and when they go from up to down .

Fix a bug that cause that device lastupdate was updated at each start.

Requirements

indigo 7

Release details
Released on: May 18, 2018
Requires: Indigo v7.0.2+
Changes in this release

fixed bug when detect new devices was switched on , was restarting itself

Requirements

indigo 7

Release details
Released on: May 15, 2018
Requires: Indigo v7.0.2+
Changes in this release

Actions / settings options:

For UniFi system devices 1. switch PoE ports on/off/powercycle (either through switch#, port # or selecting the UniFi client) 2. suspend a UniFi system device: it will make the plugin ignore any message, status changes from the unifi system device, will set status to “susp” 3. disable / enable UniFi AP. will do same as in controller /Config/managedevice/disable-enable, will also set the indigo device to suspended 4. reboot a UniFi device 5. set LEDs on AP devices on/off/blink

For clients: 1. block / unblock access for a regular device / client 2. reconnect a wifi client

For NVR / camera system and Virtual box running NVR system 1. start vmbox 2 stop vmbox 3. backup VM disk 4. compress vm disk 5. (re) mount video disk on vmbox 6. start NVR system on unix box 7. stop NVR system on unix box

Requirements

indigo 7

Release details
Released on: May 14, 2018
Requires: Indigo v7.0.2+
Changes in this release

fixed: uniFiAP in Line '2365' has error='Python argument types added: - switch POE on / off besides power cycle - added "suspended" for system devices. this option will ignore any message / action to or from that device - added more Virtual box management features ie backup action/ menu.

some clean up in menus

Requirements

indigo 7

Release details
Released on: May 8, 2018
Requires: Indigo v7.0.2+
Changes in this release

now supporting - virtualBox for unifi NVR auto start/stop from within plugin - management of event jpg files - details on setup and usage at http://forums.indigodomo.com/viewtopic.php?f=199&t=20656&sid=b1f2cacacb1181edc928583d888d46f3

  • bug fix: un-ignore menue showed teh wrong unifi device name

  • using some performance enhancement from indigo 7 ie lookup of devcies

Karl

Requirements

indigo 7

Release details
Released on: May 1, 2018
Requires: Indigo v7.0.2+
Changes in this release

added event mangement / printing
optimized ssh expect parameters added reports for NVR cameras and system reports

Requirements

indigo 7

Release details
Released on: April 27, 2018
Requires: Indigo v7.0.2+
Changes in this release

the plugin now can read the NVR unix server (any unix / virtual ) should be ok. The plugin read the event logfile and
1. creates one device for each camera and
2. updates device states with event info.

you need to set in config: - IP number of unix box
- user id for that box (ssh userid@ipnumber )
- password

Karl

Requirements

indigo 7

Release details
Released on: April 23, 2018
Requires: Indigo v7.0.2+
Changes in this release

for some instances the status indicator (red/grey/green) was not updated properly

Requirements

indigo 7

Release details
Released on: April 3, 2018
Requires: Indigo v7.0.2+
Changes in this release

some devices / versions of unifi software show different welcome screens. This version will check for various prompts.

The symptom is that the plugin states that it can not connect to the unified devices and suggests that userid/password might be wrong.

-- this version will check for

"Welcome", "UniFi", "Edge", "BusyBox ,"Ubiquiti", "ubnt"

in the prompts Karl

Requirements

indigo 7

Release details
Released on: March 15, 2018
Requires: Indigo v7.0.2+
Changes in this release

1) as the current method to get the MAC to vendor look up is not working anymore (killed by web site), this version will make a copy from the official files on the IEEE web site and will lookup all MAC numbers locally. It requires a one time download (repeated every 10 days) then all look ups are done locally. ~ 2 Mbyte in total are used to store the info. the DCIT used is ~ 1Mbyte for ALL mac/vendor info

set refresh rate in config (# of days between refresh 0=off/7/14/21/30)

The files are stored in /Users/youruserid/indigo/mac2Vendor/

2) increased the number of switches from 10 to 11 (as I have 11 now)

3.) added some logic incase switch IP numbers changed to get the updates into the plugin.

Karl

Requirements

Indigo 7

Release details
Released on: March 5, 2018
Requires: Indigo v7.0.2+
Changes in this release

== after ignoring a device and then unignoring i,t it stayed as ignored in the display, although the status was updated correctly
== improved print menu item print overview of devices, now included IGNORED as state and the group and ignore list looks a little better

Requirements

indigo 7

Release details
Released on: March 3, 2018
Requires: Indigo v7.0.2+
Changes in this release

fixed bug in ignore / unignore "menu: line 1126, in filterMACunifiIgnored"

Requirements

indigo 7

Release details
Released on: March 1, 2018
Requires: Indigo v7.0.2+
Changes in this release

fixes error:
in Line '1898' has error='cannot concatenate 'str' and 'bool' objects'

Requirements

indigo 7

Release details
Released on: Feb. 27, 2018
Requires: Indigo v7.0.2+
Changes in this release

added version check with indigo store

Requirements

indigo 7

Release details
Released on: Feb. 25, 2018
Requires: Indigo v7.0.2+
Changes in this release

fixed bug : line 2751 "xType" not defined

Requirements

Indigo 7

Release details
Released on: Feb. 12, 2018
Requires: Indigo v7.0.2+
Changes in this release

it seems that the dict retrieved from the gateway can be quite different depending on configuration even if there are on the same version number.

the new version will now check in several places for the IP and MAC number of the gateway.

it allows now for different userid/password for unifi controller and unify system devices

Requirements

indigo 7

Release details
Released on: Feb. 10, 2018
Requires: Indigo v7.0.2+
Changes in this release

fixed error=''NoneType' object is not iterable'

improved:

  1. aligned formats in printouts

  2. you now can select different logfile options:
    1 regular indigo logfile;
    2 unifi.log in indigo 7/log directory;
    3 unifi.log in ~/indigo/unifi/unifi.log

Requirements

indigo7

Release details
Released on: Feb. 9, 2018
Requires: Indigo v7.0.2+
Changes in this release

added a few report settings to eg select # of vents, type of events

fixed auto discovery for gateway. issue was that it can have up to 3 IP numbers and we have to pick the right one.

Requirements

indigo 7

Release details
Released on: Feb. 5, 2018
Requires: Indigo v7.0.2+
Changes in this release

add all available controller reports to the menu

unifi - device: detailed info about the system devices

client: detailed info about the client devices

HEALTH: general info about config

Port forward: forward ports defined, ip, ports # of bytes

(all) user info set of stats on clients

ALARM list of recent alarms

EVENTS list of recent events (excluding logins)

7 days 7* daily report

48 Hours 48* hourly report

5 minutes 12 hours of 5 minutes reports

wlan config

Requirements

indigo 7

Release details
Released on: Feb. 4, 2018
Requires: Indigo v7.0.2+
Changes in this release

fixed error when executing action reconnect wifi device

Requirements

indigo 7

Release details
Released on: Feb. 4, 2018
Requires: Indigo v7.0.2+
Changes in this release

fixed: If your unifi device ip#s end with eg 192.168.1.1 and 192.168.1..11 the numbers were not correctly handled: .1 was also executed for .11 in:

..." | grep " + ipnumber ...

it is now

..." | grep '" + ipUmber +" ' " ...

Added a space to the search to make sure that .1 does not cover .11

added:

== the plugin will now read the controller dict and extract info for all unifi devices and will setup new devices automatically (will need to restart the plugin) . you don't have to manually add an AP sw etc to config .. you still can do it manually if you like though.

== added some more reports to get controller database info to the indigo logfile (devices, clients, network ...)

* NOT changed* have thought about reading the unifi controller db instead of reading each unifi device db (ap, switches, gw) BUT the Controller info is not timely, and some info is not present. Good for some static info like which unifi device is present ... And some of the item names like "ip" have different meanings in the dict extracts from the databases .. but I am still exploring if we can use some more info .

Requirements

indigo 7

Release details
Released on: Feb. 1, 2018
Requires: Indigo v7.0.2+
Changes in this release

added some more options to print info from controller - health - unifi system device info - client info

changed: The gateway has 3+ ethernet ports. the plugin took the LAN ethernet mac number (port#2) to identify the device. unifi internally uses the first port mac # (wan0) to id the device. By switching you will see another gw_ device (with the wan mac#) created. The old one will expire and not be used anymore. You can delete it.

Requirements

Indigo 7

Release details
Released on: Jan. 31, 2018
Requires: Indigo v7.0.2+
Changes in this release

added functions as menu or action:

  1. re- connect wifi clients: same as clicking the "reconnect" button in the wireless client listing. It disconnects and reconnects a wifi device
  2. (un) block clients: this function does the same as clicking on the bock / unblock button in client listing = disable lan access for that client

Before usage you need to set in config: 1. ip # of controller 2. socket # of controller (default = 8433) 3. site name (default = "default")

when you switch on debug connections you will see the curl commands and the full responses in the logfile

Requirements

Indigo 7

Release details
Released on: Jan. 31, 2018
Requires: Indigo v7.0.2+
Changes in this release

added a force update of symbols to make sure that up is green ;down = grey; expired = red at startup

Requirements

indigo 7

Release details
Released on: Dec. 2, 2017
Requires: Indigo v6.1.5+
Changes in this release

improved menu for power cycle of POE ports: - now shows also the device name of the attached "client" - or select directly the "unifi Client" attached to a switch / port - can be done in an action or in the plugin menu

Requirements

indigo 6

Release details
Released on: Dec. 2, 2017
Requires: Indigo v6.1.5+
Changes in this release

improved menu for power cycle of POE ports, now shows also the device name of the attached "client"

Requirements

indigo 6+

Release details
Released on: Nov. 27, 2017
Requires: Indigo v5.0.0+
Changes in this release

base release

The docu is on indigos web site

Requirements

indigo v6