Git Product home page Git Product logo

homebridge-unifi-kids-cry's Introduction

homebridge-unifi-mac-block

The name

i originally named this repo cause my kids will sometimes act like anal crevises which would force me to block their playstations in my unifi controller. The progressed to my wife calling me to do this during the day. Well no more i have exposed the mac through homekit as a pad lock.

Configuration

Create a user in your unifi controller, it does not need the elevated permissions to manage devices.

A sample config is located in config.json which can be used to specify the platform for this functionality.

  "base":"<the url to your unifi controller",
  "username": "<an admin user name>",
  "password": "<duh>",
  "refreshInterval": "<seconds to requery for state changes, remove if you dont want automatic polling>"
  "site": "<the uuid of the site or 'default'>",
  "devices": [
    {
      "name": "<initial name in homekit>",
      "mac": "00:00:00:00:00:00"
    }
  ]

to install

npm i -g homebridge-unifi-mac-block

then update the homebridge config to include the platform definition shown in config.json.

Testing

I test this module by creating a new test home in homeapp. I then update the config.json file to include my authentication information to my local unifi. I then run

npm run homebridge

which spools up homebridge using the local config file. I then add the bridge to the test home so that i can get VERY heavy handed with development without tainting my beloved "home".

If you have any suggestions to make this easier, like a way to not contain the user/password in the config file, please send over a PR.

homebridge-unifi-kids-cry's People

Contributors

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