iobroker-community-adapters / ioBroker.unifi

ioBroker.unifi is an ioBroker adapter for your UniFi network devices.
MIT License
74 stars 24 forks source link
home-automation iobroker javascript nodejs unifi unifi-controller


ioBroker.unifi

Number of Installations Number of Installations NPM version

Test and Release Translation status Downloads

This adapter uses Sentry libraries to automatically report exceptions and code errors to the developers. For more details and for information how to disable the error reporting see Sentry-Plugin Documentation! Sentry reporting is used starting with js-controller 3.0.

This ioBroker adapter allows the monitoring and limited controlling of UniFi devices, such as UniFi WiFi Access Points using the public UniFi Controller Web-API.

Configuration

Minimum required information

To get this adapter up and running the following information is needed:

By default the information is updated every 60 seconds. Depending on your ioBroker hardware and your network size (number of clients, UniFi devices etc.) it is recommended to keep this interval and refraid from further decreasing it.

Filter objects

The adapter updates as much information from your UniFi controller as possible, but offers the possibility to limit the updated information.

It is possible to disable the update of selected information or filter specific objects of that information.

Information Objects filterable by
Clients Name, Hostname, IP address, MAC address
Devices Name, IP address, MAC address
WiFis Name
Networks Name
Health Subsystem

Control

Enable/disable WiFis

By changing the 'enabled' state of a WiFi it is possible to enable/disable it. Some seconds later the change will be provisioned to the Access Points.

Voucher creation

Using the vouchers.create_vouchers button it is possible to create predefined vouchers. It is possible to configure the number of vouchers that will be created, the duration the vouchers are valid and also set limits for up- and download.

Missing datapoints

The adapter uses node-unifi to connect to your UniFi Controller. To simplify things, not all availble datapoints are pulled into your ioBroker. In case you're missing datapoints, use the following URLs to check the API. (Note: You have to replace IP, PORT and SITE with your settings)

Information API URL
Sites https://IP:PORT/api/self/sites
SysInfo https://IP:PORT/api/s/SITE/stat/sysinfo
Clients https://IP:PORT/api/s/SITE/stat/sta
Devices https://IP:PORT/api/s/SITE/stat/device
WiFis https://IP:PORT/api/s/SITE/rest/wlanconf
Networks https://IP:PORT/api/s/SITE/rest/networkconf
Health https://IP:PORT/api/s/SITE/stat/health
Vouchers https://IP:PORT/api/s/SITE/stat/voucher
DPI https://IP:PORT/api/s/SITE/stat/dpi
Alarms https://IP:PORT/api/s/SITE/stat/alarm

UniFiOS (UDM-Pro) endpoints

Information API URL
Sites https://IP/proxy/network/api/self/sites
SysInfo https://IP/proxy/network/api/s/SITE/stat/sysinfo
Clients https://IP/proxy/network/api/s/SITE/stat/sta
Devices https://IP/proxy/network/api/s/SITE/stat/device
WiFis https://IP/proxy/network/api/s/SITE/rest/wlanconf
Networks https://IP/proxy/network/api/s/SITE/rest/networkconf
Health https://IP/proxy/network/api/s/SITE/stat/health
Vouchers https://IP/proxy/network/api/s/SITE/stat/voucher
DPI https://IP/proxy/network/api/s/SITE/stat/dpi
Alarms https://IP/proxy/network/api/s/SITE/stat/alarm

Known issues

Changelog

0.7.0 (2024-04-13)

0.6.7 (2023-12-10)

0.6.6 (2023-06-20)

0.6.5 (2023-06-20)

0.6.4 (2023-03-31)

0.6.3 (2022-10-08)

0.6.2 (2022-10-07)

0.6.1 (2022-06-08)

0.6.0 (2022-06-05)

0.5.10 (2021-05-27)

0.5.9 (2021-05-07)

0.5.8 (2020-08-29)

0.5.7 (2020-07-27)

0.5.6 (2020-07-25)

0.5.5 (2020-06-13)

0.5.4 (2020-06-06)

0.5.2 (2020-05-23)

0.5.0 (2020-05-09)

0.4.3 (2020-04-24)

0.4.2 (2020-04-23)

0.4.1 (2020-04-16)

0.4.0 (2020-04-16)

0.3.1

0.3.0

0.2.1

0.2.0

0.1.0

0.0.1

References

This adapter uses functionality from the following third-party nodejs modules:

License

The MIT License (MIT)

Copyright (c) 2024 iobroker-community-adapters iobroker-community-adapters@gmx.de Copyright (c) 2016-2023 Jens Maus <mail@jens-maus.de> Copyright (c) 2020 braindead1 <os.braindead1@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.