Append id to nest accessory name

This commit is contained in:
Francesco Carucci
2015-10-23 13:08:35 -07:00
parent 48e0f8b812
commit e2157aed9c
2 changed files with 5 additions and 1 deletions

4
.gitignore vendored
View File

@@ -13,4 +13,8 @@ npm-debug.log
# HomeBridge
config.json
config.test.json
persist/
.AppleDouble

View File

@@ -47,7 +47,7 @@ function NestThermostatAccessory(log, name, device, deviceId) {
if (name) {
this.name = name;
} else {
this.name = "Nest";
this.name = "Nest" + device.serial_number;
}
this.model = device.model_version;
this.serial = device.serial_number;