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": { "bridge": {
"name": "Homebridge", "name": "Homebridge",
"username": "CC:22:3D:E3:CE:42", "username": "CC:22:3D:E3:CE:74",
"port": 51826, "port": 51826,
"pin": "031-45-154" "pin": "031-45-154"
}, },
@ -58,11 +58,11 @@
"DeviceSetupList": [ "DeviceSetupList": [
{ {
"DeviceName": "LG TV", "DeviceName": "LG TV",
"Input": "HDMI1" "Input": "Hdmi1"
}, },
{ {
"DeviceName": "JVC AV Receiver", "DeviceName": "JVC AV Receiver",
"Input": "DVD" "Input": "Dvd"
}, },
{ {
"DeviceName": "Chromecast", "DeviceName": "Chromecast",
@ -83,11 +83,11 @@
}, },
{ {
"DeviceName": "LG TV", "DeviceName": "LG TV",
"Input": "HDMI1" "Input": "Hdmi1"
}, },
{ {
"DeviceName": "JVC AV Receiver", "DeviceName": "JVC AV Receiver",
"Input": "DVD" "Input": "Dvd"
} }
], ],
"VolumeDevice": "JVC AV Receiver", "VolumeDevice": "JVC AV Receiver",
@ -104,11 +104,11 @@
}, },
{ {
"DeviceName": "LG TV", "DeviceName": "LG TV",
"Input": "HDMI1" "Input": "Hdmi1"
}, },
{ {
"DeviceName": "JVC AV Receiver", "DeviceName": "JVC AV Receiver",
"Input": "DVD" "Input": "Dvd"
} }
], ],
"VolumeDevice": "JVC AV Receiver", "VolumeDevice": "JVC AV Receiver",
@ -125,11 +125,11 @@
}, },
{ {
"DeviceName": "LG TV", "DeviceName": "LG TV",
"Input": "HDMI1" "Input": "Hdmi1"
}, },
{ {
"DeviceName": "JVC AV Receiver", "DeviceName": "JVC AV Receiver",
"Input": "DVD" "Input": "Dvd"
} }
], ],
"VolumeDevice": "JVC AV Receiver", "VolumeDevice": "JVC AV Receiver",
@ -142,7 +142,7 @@
"DeviceSetupList": [ "DeviceSetupList": [
{ {
"DeviceName": "JVC AV Receiver", "DeviceName": "JVC AV Receiver",
"Input": "DVD" "Input": "Dvd"
} }
], ],
"VolumeDevice": "JVC AV Receiver", "VolumeDevice": "JVC AV Receiver",
@ -160,7 +160,7 @@
"DeviceSetupList": [ "DeviceSetupList": [
{ {
"DeviceName": "Vizio TV", "DeviceName": "Vizio TV",
"Input": "HDMI1" "Input": "Hdmi1"
}, },
{ {
"DeviceName": "Harman Kardon AV Receiver", "DeviceName": "Harman Kardon AV Receiver",
@ -185,7 +185,7 @@
}, },
{ {
"DeviceName": "Vizio TV", "DeviceName": "Vizio TV",
"Input": "HDMI1" "Input": "Hdmi1"
}, },
{ {
"DeviceName": "Harman Kardon AV Receiver", "DeviceName": "Harman Kardon AV Receiver",
@ -206,11 +206,11 @@
}, },
{ {
"DeviceName": "Vizio TV", "DeviceName": "Vizio TV",
"Input": "HDMI1" "Input": "Hdmi1"
}, },
{ {
"DeviceName": "Harman Kardon AV Receiver", "DeviceName": "Harman Kardon AV Receiver",
"Input": "DVD" "Input": "Dvd"
} }
], ],
"VolumeDevice": "Harman Kardon AV Receiver", "VolumeDevice": "Harman Kardon AV Receiver",
@ -227,7 +227,7 @@
}, },
{ {
"DeviceName": "Vizio TV", "DeviceName": "Vizio TV",
"Input": "HDMI1" "Input": "Hdmi1"
}, },
{ {
"DeviceName": "Harman Kardon AV Receiver", "DeviceName": "Harman Kardon AV Receiver",
@ -253,7 +253,7 @@
}, },
{ {
"DeviceName": "Westinghouse TV", "DeviceName": "Westinghouse TV",
"Input": "HDMI1" "Input": "Hdmi1"
} }
], ],
"VolumeDevice": "Westinghouse TV", "VolumeDevice": "Westinghouse TV",
@ -270,7 +270,7 @@
}, },
{ {
"DeviceName": "Westinghouse TV", "DeviceName": "Westinghouse TV",
"Input": "HDMI1" "Input": "Hdmi1"
} }
], ],
"VolumeDevice": "Westinghouse TV", "VolumeDevice": "Westinghouse TV",
@ -283,7 +283,7 @@
"DeviceSetupList": [ "DeviceSetupList": [
{ {
"DeviceName": "Westinghouse TV", "DeviceName": "Westinghouse TV",
"Input": "HDMI1" "Input": "Hdmi1"
}, },
{ {
"DeviceName": "Microsoft Xbox One", "DeviceName": "Microsoft Xbox One",

View File

@ -142,8 +142,8 @@ class HarmonyDataProvider {
//Route hdmi //Route hdmi
if (matrixDevice.supportsCommand(inputCommandName) && matrixDevice.supportsCommand(outputCommandName)) { if (matrixDevice.supportsCommand(inputCommandName) && matrixDevice.supportsCommand(outputCommandName)) {
await this.sendCommand(matrixDevice.getCommand(inputCommandName));
await this.sendCommand(matrixDevice.getCommand(outputCommandName)); await this.sendCommand(matrixDevice.getCommand(outputCommandName));
await this.sendCommand(matrixDevice.getCommand(inputCommandName));
} }
} }