• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

plainsane/homebridge-unifi-kids-cry

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

plainsane/homebridge-unifi-kids-cry

开源软件地址:

https://github.com/plainsane/homebridge-unifi-kids-cry

开源编程语言:

TypeScript 100.0%

开源软件介绍:

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.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap