mirror of
https://github.com/mtan93/homebridge.git
synced 2026-04-10 14:23:08 +01:00
Merge pull request #764 from alessiodionisi/new-bridge-configs
New bridge configs
This commit is contained in:
@@ -87,6 +87,14 @@ Server.prototype.run = function() {
|
|||||||
Server.prototype._publish = function() {
|
Server.prototype._publish = function() {
|
||||||
// pull out our custom Bridge settings from config.json, if any
|
// pull out our custom Bridge settings from config.json, if any
|
||||||
var bridgeConfig = this._config.bridge || {};
|
var bridgeConfig = this._config.bridge || {};
|
||||||
|
|
||||||
|
var info = this._bridge.getService(Service.AccessoryInformation);
|
||||||
|
if (bridgeConfig.manufacturer)
|
||||||
|
info.setCharacteristic(Characteristic.Manufacturer, bridgeConfig.manufacturer);
|
||||||
|
if (bridgeConfig.model)
|
||||||
|
info.setCharacteristic(Characteristic.Model, bridgeConfig.model);
|
||||||
|
if (bridgeConfig.serialNumber)
|
||||||
|
info.setCharacteristic(Characteristic.SerialNumber, bridgeConfig.serialNumber);
|
||||||
|
|
||||||
this._printPin(bridgeConfig.pin);
|
this._printPin(bridgeConfig.pin);
|
||||||
this._bridge.publish({
|
this._bridge.publish({
|
||||||
|
|||||||
Reference in New Issue
Block a user