Code Monkey home page Code Monkey logo

unifi2mqtt's Introduction

unifi2mqtt

a tool to poll the UniFi controller API and populate clients to mqtt

Synopsis

unifi2mqtt is a small gateway daemon in the spirit of zwave2mqtt, which polls the UniFi Controller API and feeds information about connected devices into MQTT, for the intended purpose of powering HomeAssistant's MQTT Device Tracker.

unifi2mqtt [flags]

Options

  -h, --help                     help for unifi2mqtt
      --host string              hostname of the UniFi controller (default "localhost")
      --include-name /           client names to include; if no --include flags are set, all clients will be reported. If a name is surrounded with /, it's interpreted as a regular expression. Flag may be specified multiple times, or just once with `,`-separated options.
      --mqtt-host string         hostname of the MQTT server to publish to (default "localhost")
      --mqtt-port int            port used to connect to MQTT (default 1883)
      --mqtt-prefix string       a prefix for the mqtt space to publish, messages are published to {mqtt-prefix}/{device-name} (default "unifi")
      --mqtt-proto tcp           protocol used to connect to MQTT; options are tcp, `ssl`, `ws` (default "tcp")
      --password string          user password on UniFi controller (env: UNIFI2MQTT_PASS)
      --port int                 UniFi controller port (default 8443)
      --unifi-timeout duration   how long does a device need to be not 'seen' before it's repoted as not_home. Note that since unifi2mqtt _polls_ the unifi API once a minute, there's no point in setting this lower than that. Unifi itself will stop reporting a device after about five minutes. (default 1m0s)
      --username string          login user on UniFi controller (env: UNIFI2MQTT_USER)
      --verify-tls               if true, verify the TLS certificate of the UniFi controller
Auto generated by spf13/cobra on 17-Aug-2020

unifi2mqtt's People

Contributors

asymmetricia avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.