lyonlai / homebridge-unifi-guest-wlan-switch Goto Github PK
View Code? Open in Web Editor NEWHomebridge plugin to turn guest wifi into switches in iOS
Homebridge plugin to turn guest wifi into switches in iOS
Here are the logs:
Apr 06 13:29:04 raspberrypi homebridge[503]: [2018-4-6 13:29:04] [Guest Controller] Logging into Unifi Controller 10.0.1.24 8443
Apr 06 13:29:35 raspberrypi homebridge[503]: [2018-4-6 13:29:35] [Guest Controller] Logged into Unifi Controller
Apr 06 13:29:35 raspberrypi homebridge[503]: [2018-4-6 13:29:35] [Guest Controller] loading guest wifies
Apr 06 13:29:36 raspberrypi homebridge[503]: [2018-4-6 13:29:36] [Guest Controller] loaded wlan settings [ { _id: '5ac2ff1b1442340247f0276a',
Apr 06 13:29:36 raspberrypi homebridge[503]: bc_filter_enabled: true,
Apr 06 13:29:36 raspberrypi homebridge[503]: bc_filter_list: [],
Apr 06 13:29:36 raspberrypi homebridge[503]: dtim_mode: 'default',
Apr 06 13:29:36 raspberrypi homebridge[503]: dtim_na: 1,
Apr 06 13:29:36 raspberrypi homebridge[503]: dtim_ng: 1,
Apr 06 13:29:36 raspberrypi homebridge[503]: enabled: false,
Apr 06 13:29:36 raspberrypi homebridge[503]: group_rekey: 3600,
Apr 06 13:29:36 raspberrypi homebridge[503]: is_guest: true,
Apr 06 13:29:36 raspberrypi homebridge[503]: mac_filter_enabled: false,
Apr 06 13:29:36 raspberrypi homebridge[503]: mac_filter_list: [],
Apr 06 13:29:36 raspberrypi homebridge[503]: mac_filter_policy: 'allow',
Apr 06 13:29:36 raspberrypi homebridge[503]: minrate_na_advertising_rates: false,
Apr 06 13:29:36 raspberrypi homebridge[503]: minrate_na_beacon_rate_kbps: 6000,
Apr 06 13:29:36 raspberrypi homebridge[503]: minrate_na_data_rate_kbps: 6000,
Apr 06 13:29:36 raspberrypi homebridge[503]: minrate_na_enabled: false,
Apr 06 13:29:36 raspberrypi homebridge[503]: minrate_na_mgmt_rate_kbps: 6000,
Apr 06 13:29:36 raspberrypi homebridge[503]: minrate_ng_advertising_rates: false,
Apr 06 13:29:36 raspberrypi homebridge[503]: minrate_ng_beacon_rate_kbps: 1000,
Apr 06 13:29:36 raspberrypi homebridge[503]: minrate_ng_cck_rates_enabled: true,
Apr 06 13:29:36 raspberrypi homebridge[503]: minrate_ng_data_rate_kbps: 1000,
Apr 06 13:29:36 raspberrypi homebridge[503]: minrate_ng_enabled: false,
Apr 06 13:29:36 raspberrypi homebridge[503]: minrate_ng_mgmt_rate_kbps: 1000,
Apr 06 13:29:36 raspberrypi homebridge[503]: name: 'W&J Guest',
Apr 06 13:29:36 raspberrypi homebridge[503]: schedule: [],
Apr 06 13:29:36 raspberrypi homebridge[503]: security: 'open',
Apr 06 13:29:36 raspberrypi homebridge[503]: site_id: '53fe8a390364ed3783a30cd8',
Apr 06 13:29:36 raspberrypi homebridge[503]: usergroup_id: '5ac2ff901442340247f0276b',
Apr 06 13:29:36 raspberrypi homebridge[503]: wep_idx: 1,
Apr 06 13:29:36 raspberrypi homebridge[503]: wlangroup_id: '53fe8a3a0364ed3783a30ce5',
Apr 06 13:29:36 raspberrypi homebridge[503]: wpa_enc: 'ccmp',
Apr 06 13:29:36 raspberrypi homebridge[503]: wpa_mode: 'wpa2',
Apr 06 13:29:36 raspberrypi homebridge[503]: x_iapp_key: '7e136ca59389b4d156543995f450556c' } ]
Apr 06 13:29:36 raspberrypi homebridge[503]: [2018-4-6 13:29:36] [Guest Controller] loaded 1 wlans [ 'W&J Guest' ]
Apr 06 13:29:36 raspberrypi homebridge[503]: [2018-4-6 13:29:36] [Guest Controller] adding 1 guest wifi [ { _id: '53fe8a390364ed3783a30cd8',
Apr 06 13:29:36 raspberrypi homebridge[503]: attr_hidden_id: 'default',
Apr 06 13:29:36 raspberrypi homebridge[503]: attr_no_delete: true,
Apr 06 13:29:36 raspberrypi homebridge[503]: desc: '300 W Holmes Rd',
Apr 06 13:29:36 raspberrypi homebridge[503]: name: 'default',
Apr 06 13:29:36 raspberrypi homebridge[503]: role: 'admin' } ]
Apr 06 13:29:36 raspberrypi homebridge[503]: [2018-4-6 13:29:36] [Guest Controller] Adding Guest Wifi: default-W&J Guest
Apr 06 13:29:36 raspberrypi homebridge[503]: [2018-4-6 13:29:36] [Guest Controller] Guest Wifi: default-W&J Guest, does not exists, adding new accessory
Apr 06 13:29:36 raspberrypi homebridge[503]: [2018-4-6 13:29:36] [Guest Controller] Setting up accessory for Guest Wifi: default-W&J Guest
Apr 06 13:29:36 raspberrypi homebridge[503]: [2018-4-6 13:29:36] [Guest Controller] getting service switch undefined, undefined
Apr 06 13:29:36 raspberrypi homebridge[503]: [2018-4-6 13:29:36] [Guest Controller] error loading guest wifies TypeError: Cannot read property 'getCharacteristic' of undefined
Apr 06 13:29:36 raspberrypi homebridge[503]: at UnifyGuestWifiPlatform.setupAccessory (/usr/lib/node_modules/homebridge-unifi-guest-wlan-switch/dist.js:211:39)
Apr 06 13:29:36 raspberrypi homebridge[503]: at UnifyGuestWifiPlatform._callee4$ (/usr/lib/node_modules/homebridge-unifi-guest-wlan-switch/dist.js:296:18)
Apr 06 13:29:36 raspberrypi homebridge[503]: at tryCatch (/usr/lib/node_modules/homebridge-unifi-guest-wlan-switch/node_modules/regenerator-runtime/runtime.js:62:40)
Apr 06 13:29:36 raspberrypi homebridge[503]: at Generator.invoke [as _invoke] (/usr/lib/node_modules/homebridge-unifi-guest-wlan-switch/node_modules/regenerator-runtime/runtime.js:296:22)
Apr 06 13:29:36 raspberrypi homebridge[503]: at Generator.prototype.(anonymous function) [as next] (/usr/lib/node_modules/homebridge-unifi-guest-wlan-switch/node_modules/regenerator-runtime/runtime.js
Apr 06 13:29:36 raspberrypi homebridge[503]: at step (/usr/lib/node_modules/homebridge-unifi-guest-wlan-switch/node_modules/babel-runtime/helpers/asyncToGenerator.js:17:30)
Apr 06 13:29:36 raspberrypi homebridge[503]: at /usr/lib/node_modules/homebridge-unifi-guest-wlan-switch/node_modules/babel-runtime/helpers/asyncToGenerator.js:35:14
Apr 06 13:29:36 raspberrypi homebridge[503]: at new Promise ()
Apr 06 13:29:36 raspberrypi homebridge[503]: at new F (/usr/lib/node_modules/homebridge-unifi-guest-wlan-switch/node_modules/core-js/library/modules/_export.js:36:28)
Apr 06 13:29:36 raspberrypi homebridge[503]: at UnifyGuestWifiPlatform. (/usr/lib/node_modules/homebridge-unifi-guest-wlan-switch/node_modules/babel-runtime/helpers/asyncToGenerator.js:14:1
Apr 06 13:29:36 raspberrypi homebridge[503]: at UnifyGuestWifiPlatform.addGuestWifiAccessory (/usr/lib/node_modules/homebridge-unifi-guest-wlan-switch/dist.js:309:18)
Apr 06 13:29:36 raspberrypi homebridge[503]: at /usr/lib/node_modules/homebridge-unifi-guest-wlan-switch/dist.js:164:29
Apr 06 13:29:36 raspberrypi homebridge[503]: at Array.map ()
Apr 06 13:29:36 raspberrypi homebridge[503]: at UnifyGuestWifiPlatform._callee2$ (/usr/lib/node_modules/homebridge-unifi-guest-wlan-switch/dist.js:161:39)
Apr 06 13:29:36 raspberrypi homebridge[503]: at tryCatch (/usr/lib/node_modules/homebridge-unifi-guest-wlan-switch/node_modules/regenerator-runtime/runtime.js:62:40)
Apr 06 13:29:36 raspberrypi homebridge[503]: at Generator.invoke [as _invoke] (/usr/lib/node_modules/homebridge-unifi-guest-wlan-switch/node_modules/regenerator-runtime/runtime.js:296:22)
Apr 06 13:29:36 raspberrypi homebridge[503]: at Generator.prototype.(anonymous function) [as next] (/usr/lib/node_modules/homebridge-unifi-guest-wlan-switch/node_modules/regenerator-runtime/runtime.js
Apr 06 13:29:36 raspberrypi homebridge[503]: at step (/usr/lib/node_modules/homebridge-unifi-guest-wlan-switch/node_modules/babel-runtime/helpers/asyncToGenerator.js:17:30)
Apr 06 13:29:36 raspberrypi homebridge[503]: at /usr/lib/node_modules/homebridge-unifi-guest-wlan-switch/node_modules/babel-runtime/helpers/asyncToGenerator.js:35:14
Apr 06 13:29:36 raspberrypi homebridge[503]: at new Promise ()
Apr 06 13:29:36 raspberrypi homebridge[503]: at new F (/usr/lib/node_modules/homebridge-unifi-guest-wlan-switch/node_modules/core-js/library/modules/_export.js:36:28)
Apr 06 13:29:36 raspberrypi homebridge[503]: at UnifyGuestWifiPlatform. (/usr/lib/node_modules/homebridge-unifi-guest-wlan-switch/node_modules/babel-runtime/helpers/asyncToGenerator.js:14:1
Apr 06 13:29:36 raspberrypi homebridge[503]: at UnifyGuestWifiPlatform.addGuestWifiAccessories (/usr/lib/node_modules/homebridge-unifi-guest-wlan-switch/dist.js:176:18)
Apr 06 13:29:36 raspberrypi homebridge[503]: at UnifyGuestWifiPlatform._callee$ (/usr/lib/node_modules/homebridge-unifi-guest-wlan-switch/dist.js:139:23)
Apr 06 13:29:36 raspberrypi homebridge[503]: at tryCatch (/usr/lib/node_modules/homebridge-unifi-guest-wlan-switch/node_modules/regenerator-runtime/runtime.js:62:40)
Apr 06 13:29:36 raspberrypi homebridge[503]: at Generator.invoke [as _invoke] (/usr/lib/node_modules/homebridge-unifi-guest-wlan-switch/node_modules/regenerator-runtime/runtime.js:296:22)
Apr 06 13:29:36 raspberrypi homebridge[503]: at Generator.prototype.(anonymous function) [as next] (/usr/lib/node_modules/homebridge-unifi-guest-wlan-switch/node_modules/regenerator-runtime/runtime.js
Apr 06 13:29:36 raspberrypi homebridge[503]: at step (/usr/lib/node_modules/homebridge-unifi-guest-wlan-switch/node_modules/babel-runtime/helpers/asyncToGenerator.js:17:30)
Apr 06 13:29:36 raspberrypi homebridge[503]: at /usr/lib/node_modules/homebridge-unifi-guest-wlan-switch/node_modules/babel-runtime/helpers/asyncToGenerator.js:28:13
Apr 06 13:29:36 raspberrypi homebridge[503]: at
Apr 06 13:29:36 raspberrypi homebridge[503]: at process._tickCallback (internal/process/next_tick.js:188:7)
In homebridge it was loading Guest WiFi fine, but there was no button published in my HomeApp? Did i miss any step? Thanks :)
Does this support 2FA?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.