Fixed issue where inputs weren't getting set. Possibly fixed incorrect tv issue.

This commit is contained in:
watsonb8 2019-07-31 17:14:02 -04:00
parent 39f4a7c1bc
commit 727c8ceba7
2 changed files with 21 additions and 21 deletions

View File

@ -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",

View File

@ -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));
}
}