Git Product home page Git Product logo

sensor.unifigateway's Introduction

sensor.unifigateway

High level health status of UniFi Security Gateway devices via UniFi Controller

Version mantained forum

Connects to a Ubiquiti Controller instance to monitor high level health information on the setup including alerts and firmware updates

To get started download

/custom_components/unifigateway/manifest.json
/custom_components/unifigateway/__init__.py
/custom_components/unifigateway/sensor.py

into

<config directory>/custom_components/unifigateway/

Example configuration.yaml:

# Example configuration.yaml entry
sensor:
  - platform: unifigateway
    host: unifi
    username: username
    password: password
    monitored_conditions:
      - www
      - wlan
      - alerts
      - firmware

Configuration Variables

username

(string)(Required) A user on the controller

password

(string)(Required) The password for the account

host

(string)(Optional) The hostname or IP address of your controller Default value: localhost

port

(integer)(Optional) The port of your controller's web interface - this differs deopending on version - use 443 for UDMP-unifiOS Default value: 8443

version

(string)(Optional) Can also be set to 'v4' or 'UDMP-unifiOS' Default value: v5

site_id

(string)(Optional) For multisite installations, you can specify site_id to specify which is used Default value: default

verify_ssl

(boolean or filename)(Optional) Whether to do strict validation on SSL certificates of the Unifi controller. This can be true/false or the path to a locally trusted certificate to use for verification. Default value: false

monitored_conditions

(list)(Optional) A list of the sensors to monitor Default value: If not defined all sensors are setup

Monitored Conditions

The following sensors can be monitored

vpn

The status of the VPN sub-system

www

The status of the WWW sub-system Attribute data includes speedtest results

lan

The status of the LAN sub-system Attribute data includes the IP of the USG

wan

The status of the WAN sub-system Attribute data includes the WAN IP (e.g. dynamic IP as allocated by your ISP)

wlan

The status of the Wifi Access Points Attribute data includes number of guests

alerts

The number of unarchived alerts on the controller Attribute data lists the detail of each alert

firmware

The number of devices that are available for a firmware update. Attribute data lists the friendly name of the relvant devices.

In Development - Notes

The sensor currently accesses the controller everytime an individual sensor is updated. This should be optimised to access once and then feed data to the other appropriate sensors to reduce overhead.

sensor.unifigateway's People

Contributors

jchasey avatar lociii avatar halkeye avatar tmcarr avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.