diff --git a/config.json b/config.json index c5b6c4b..b43a32e 100644 --- a/config.json +++ b/config.json @@ -1,7 +1,7 @@ { "bridge": { "name": "Homebridge", - "username": "CC:22:3D:E3:CE:42", + "username": "CC:22:3D:E3:CE:74", "port": 51826, "pin": "031-45-154" }, @@ -58,11 +58,11 @@ "DeviceSetupList": [ { "DeviceName": "LG TV", - "Input": "HDMI1" + "Input": "Hdmi1" }, { "DeviceName": "JVC AV Receiver", - "Input": "DVD" + "Input": "Dvd" }, { "DeviceName": "Chromecast", @@ -83,11 +83,11 @@ }, { "DeviceName": "LG TV", - "Input": "HDMI1" + "Input": "Hdmi1" }, { "DeviceName": "JVC AV Receiver", - "Input": "DVD" + "Input": "Dvd" } ], "VolumeDevice": "JVC AV Receiver", @@ -104,11 +104,11 @@ }, { "DeviceName": "LG TV", - "Input": "HDMI1" + "Input": "Hdmi1" }, { "DeviceName": "JVC AV Receiver", - "Input": "DVD" + "Input": "Dvd" } ], "VolumeDevice": "JVC AV Receiver", @@ -125,11 +125,11 @@ }, { "DeviceName": "LG TV", - "Input": "HDMI1" + "Input": "Hdmi1" }, { "DeviceName": "JVC AV Receiver", - "Input": "DVD" + "Input": "Dvd" } ], "VolumeDevice": "JVC AV Receiver", @@ -142,7 +142,7 @@ "DeviceSetupList": [ { "DeviceName": "JVC AV Receiver", - "Input": "DVD" + "Input": "Dvd" } ], "VolumeDevice": "JVC AV Receiver", @@ -160,7 +160,7 @@ "DeviceSetupList": [ { "DeviceName": "Vizio TV", - "Input": "HDMI1" + "Input": "Hdmi1" }, { "DeviceName": "Harman Kardon AV Receiver", @@ -185,7 +185,7 @@ }, { "DeviceName": "Vizio TV", - "Input": "HDMI1" + "Input": "Hdmi1" }, { "DeviceName": "Harman Kardon AV Receiver", @@ -206,11 +206,11 @@ }, { "DeviceName": "Vizio TV", - "Input": "HDMI1" + "Input": "Hdmi1" }, { "DeviceName": "Harman Kardon AV Receiver", - "Input": "DVD" + "Input": "Dvd" } ], "VolumeDevice": "Harman Kardon AV Receiver", @@ -227,7 +227,7 @@ }, { "DeviceName": "Vizio TV", - "Input": "HDMI1" + "Input": "Hdmi1" }, { "DeviceName": "Harman Kardon AV Receiver", @@ -253,7 +253,7 @@ }, { "DeviceName": "Westinghouse TV", - "Input": "HDMI1" + "Input": "Hdmi1" } ], "VolumeDevice": "Westinghouse TV", @@ -270,7 +270,7 @@ }, { "DeviceName": "Westinghouse TV", - "Input": "HDMI1" + "Input": "Hdmi1" } ], "VolumeDevice": "Westinghouse TV", @@ -283,7 +283,7 @@ "DeviceSetupList": [ { "DeviceName": "Westinghouse TV", - "Input": "HDMI1" + "Input": "Hdmi1" }, { "DeviceName": "Microsoft Xbox One", diff --git a/src/DataProviders/HarmonyDataProvider.ts b/src/DataProviders/HarmonyDataProvider.ts index 40d8684..07577d2 100644 --- a/src/DataProviders/HarmonyDataProvider.ts +++ b/src/DataProviders/HarmonyDataProvider.ts @@ -123,8 +123,8 @@ class HarmonyDataProvider { activity.deviceSetupItems.map(async (value: DeviceSetupItem) => { let device: IDevice = this.getDeviceFromName(value.deviceName); - if (device && device.supportsCommand(`Input ${value.input}`)) { - let command: string = device.getCommand(`Input ${value.input}`); + if (device && device.supportsCommand(`Input${value.input}`)) { + let command: string = device.getCommand(`Input${value.input}`); await this.sendCommand(command); } }) @@ -142,8 +142,8 @@ class HarmonyDataProvider { //Route hdmi if (matrixDevice.supportsCommand(inputCommandName) && matrixDevice.supportsCommand(outputCommandName)) { - await this.sendCommand(matrixDevice.getCommand(inputCommandName)); await this.sendCommand(matrixDevice.getCommand(outputCommandName)); + await this.sendCommand(matrixDevice.getCommand(inputCommandName)); } }