All Projects â†’ hobbyquaker â†’ unifi2mqtt

hobbyquaker / unifi2mqtt

Licence: MIT license
Connect Ubiquiti UniFi controller to MQTT 📡

Programming Languages

javascript
184084 projects - #8 most used programming language
Dockerfile
14818 projects

Projects that are alternatives of or similar to unifi2mqtt

udm-host-records
Scripts to list, add, update, and remove host records in the Ubiquiti UniFI Dream Machine DNS forwarder.
Stars: ✭ 109 (+65.15%)
Mutual labels:  unifi, ubiquiti
udm-utilities
A collection of things I have made to make the Unifi Dream Machine more useful
Stars: ✭ 2,228 (+3275.76%)
Mutual labels:  unifi, ubiquiti
udm-patches
Contains onboot.d setup scripts and wrappers for custom OpenVPN client
Stars: ✭ 42 (-36.36%)
Mutual labels:  unifi, ubiquiti
node-unifi
NodeJS class for querying/controlling a UniFi-Controller (www.ubnt.com)
Stars: ✭ 92 (+39.39%)
Mutual labels:  unifi, ubiquiti
Find Lf
Track the location of every Wi-Fi device (📱) in your house using Raspberry Pis and FIND
Stars: ✭ 893 (+1253.03%)
Mutual labels:  smarthome, wifi
ubnt-cloudflared
Install Cloudflare's DNS proxy on UBNT gateways
Stars: ✭ 22 (-66.67%)
Mutual labels:  unifi, ubiquiti
unifi-pfsense
A script that installs the UniFi Controller software on pfSense and other FreeBSD systems
Stars: ✭ 617 (+834.85%)
Mutual labels:  unifi, ubiquiti
pyunifi
unifi-sdn.ubnt.com/
Stars: ✭ 186 (+181.82%)
Mutual labels:  unifi, ubiquiti
Homepoint
Espressif ESP32 Based Smarthome screen for MQTT
Stars: ✭ 391 (+492.42%)
Mutual labels:  smarthome, wifi
ubios-cert
Manage SSL / TLS certificates with acme.sh (Let's Encrypt, ZeroSSL) for Ubiquiti UbiOS firmwares
Stars: ✭ 17 (-74.24%)
Mutual labels:  unifi, ubiquiti
unifiZabbix
Zabbix templates to monitor pretty much all Unifi devices
Stars: ✭ 66 (+0%)
Mutual labels:  unifi, ubiquiti
unpoller
Application: Collect ALL UniFi Controller, Site, Device & Client Data - Export to InfluxDB or Prometheus
Stars: ✭ 1,613 (+2343.94%)
Mutual labels:  unifi, ubiquiti
UFiber.Configurator
UFiber Configuration Tool
Stars: ✭ 44 (-33.33%)
Mutual labels:  unifi, ubiquiti
tuyapower
Python module to read status and energy monitoring data from Tuya based WiFi smart devices. This includes state (on/off), current (mA), voltage (V), and power (wattage).
Stars: ✭ 101 (+53.03%)
Mutual labels:  smarthome, wifi
addon-unifi
UniFi Network Application - Home Assistant Community Add-ons
Stars: ✭ 190 (+187.88%)
Mutual labels:  unifi, ubiquiti
db wlan manager
Monitors your Wifi to keep you logged in and resets your Wifi, if your data is drained
Stars: ✭ 23 (-65.15%)
Mutual labels:  wifi
FNET
The FNET is a free, open source, dual TCP/IPv4 and IPv6 Stack (under Apache Version 2.0 license) for building embedded communication software on 32bit MCUs.
Stars: ✭ 97 (+46.97%)
Mutual labels:  wifi
mTower
mTower is Trusted Execution Environment specially designed to be used on MicroController Units (MCUs) supporting ARM TrustZone technology (e.g., Cortex-M23/33/35p). mTower operates well under restrictions typical for such environment – small RAM and ROM sizes, relatively low performance, absence of rich OSes providing variety of services availab…
Stars: ✭ 34 (-48.48%)
Mutual labels:  smarthome
ansible-openwrt
Ansible collection to configure your OpenWrt devices more quickly and automatically (without Python)
Stars: ✭ 34 (-48.48%)
Mutual labels:  wifi
esp-01-WiFi-Scanner-ESP-01-OLED-I2C-Display
Scanner WiFi avec écran OLED I2C (SSD1306) sur un ESP-01 (ESP8266)
Stars: ✭ 21 (-68.18%)
Mutual labels:  wifi

unifi2mqtt

mqtt-smarthome NPM version dependencies Status Build Status XO code style License

Connect Ubiquiti UniFi controller to MQTT 📡

Install

$ sudo npm install -g unifi2mqtt

I suggest to use pm2 to manage the unifi2mqtt process (start on system boot, manage log files, ...)

Usage

Usage: unifi2mqtt [options]

Options:
  -a, --unifi-host      unifi hostname or address         [default: "127.0.0.1"]
  -p, --unifi-port      unifi port                               [default: 8443]
  -c, --unifi-user      unifi user                            [default: "admin"]
  -s, --unifi-password  unifi password                                [required]
  -w, --unifi-site      unifi site                          [default: "default"]
  -k, --insecure        allow ssl connections without valid certificate
  -v, --verbosity       possible values: "error", "warn", "info", "debug"
                                                               [default: "info"]
  -n, --name            instance name. used as topic prefix   [default: "unifi"]
  -u, --url             mqtt broker url            [default: "mqtt://127.0.0.1"]
  -h, --help            Show help                                      [boolean]
  --version             Show version number                            [boolean]

Topics and Payloads

Topics and Payloads follow mqtt-smarthome architectural proposal.

Topics published by unifi2mqtt

  • <name>/status/wifi/<ssid>/client/<hostname> - {"val":true} if client is connected to the wifi network, {"val":false} otherwise. Object also contains the properties mac and ts. Retained.
  • <name>/status/wifi/<ssid>/event/connected - Client connect event. Payload as above. Not retained.
  • <name>/status/wifi/<ssid>/event/disconnected - Client disconnect event. Payload as above. Not retained.
  • <name>/status/wifi/<ssid>/clientCount - number of clients in specific wifi network, e.g. {"val":5}. Retained.
  • <name>/status/wifi/<ssid>/enabled - wifi enabled status, e.g. {"val":true}. Retained.
  • <name>/status/clientCount - number of clients in all wifi networks, e.g. {"val":12}. Retained.
  • <name>/status/device/<device>/led - status of a device led, e.g. {"val":"on"} Retained.
  • <name>/connected - 1 if connected to mqtt broker, 2 if connected to UniFi Controller, 0 on last will. Retained.

Topics subscribed by unifi2mqtt

  • <name>/set/device/<device>/led - switch device led on or off. Payload on, off or default (default uses site-wide led setting).
  • <name>/set/wifi/<ssid>/enabled - enable/disable wireless network. Payload true or false.

License

MIT © Sebastian Raff

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].