{
    "bridge": {
        "name": "Homebridge",
        "username": "CC:22:3D:E3:CE:74",
        "port": 51826,
        "pin": "031-45-154"
    },
    "platforms": [
        {
            "platform": "websocket",
            "name": "websocket",
            "port": 4050
        },
        {
            "platform": "HarmonyHubMatrix",
            "hubIp": "192.168.1.14",
            "Matrix": {
                "DeviceName": "Gefen AV Switch",
                "Inputs": [
                    {
                        "InputNumber": "1",
                        "InputDevice": "Microsoft Xbox One"
                    },
                    {
                        "InputNumber": "5",
                        "InputDevice": "Apple TV Gen 4"
                    },
                    {
                        "InputNumber": "3",
                        "InputDevice": "Chromecast"
                    },
                    {
                        "InputNumber": "2",
                        "InputDevice": "Sony PS4"
                    }
                ],
                "Outputs": [
                    {
                        "OutputLetter": "B",
                        "OutputDevice": "LG TV"
                    },
                    {
                        "OutputLetter": "C",
                        "OutputDevice": "Vizio TV"
                    },
                    {
                        "OutputLetter": "D",
                        "OutputDevice": "Westinghouse TV"
                    }
                ]
            },
            "ControlUnits": [
                {
                    "DisplayName": "Living Room",
                    "Activities": [
                        {
                            "DisplayName": "Chromecast",
                            "DeviceSetupList": [
                                {
                                    "DeviceName": "LG TV",
                                    "Input": "Hdmi1"
                                },
                                {
                                    "DeviceName": "JVC AV Receiver",
                                    "Input": "Dvd"
                                },
                                {
                                    "DeviceName": "Chromecast",
                                    "Input": []
                                }
                            ],
                            "VolumeDevice": "JVC AV Receiver",
                            "ControlDevice": "Chromecast",
                            "OutputDevice": "LG TV",
                            "UseMatrix": "true"
                        },
                        {
                            "DisplayName": "Play Xbox One",
                            "DeviceSetupList": [
                                {
                                    "DeviceName": "Microsoft Xbox One",
                                    "Input": []
                                },
                                {
                                    "DeviceName": "LG TV",
                                    "Input": "Hdmi1"
                                },
                                {
                                    "DeviceName": "JVC AV Receiver",
                                    "Input": "Dvd"
                                }
                            ],
                            "VolumeDevice": "JVC AV Receiver",
                            "ControlDevice": "Microsoft Xbox One",
                            "OutputDevice": "LG TV",
                            "UseMatrix": "true"
                        },
                        {
                            "DisplayName": "Play PS4",
                            "DeviceSetupList": [
                                {
                                    "DeviceName": "Sony PS4",
                                    "Input": []
                                },
                                {
                                    "DeviceName": "LG TV",
                                    "Input": "Hdmi1"
                                },
                                {
                                    "DeviceName": "JVC AV Receiver",
                                    "Input": "Dvd"
                                }
                            ],
                            "VolumeDevice": "JVC AV Receiver",
                            "ControlDevice": "Sony PS4",
                            "OutputDevice": "LG TV",
                            "UseMatrix": "true"
                        },
                        {
                            "DisplayName": "Apple TV",
                            "DeviceSetupList": [
                                {
                                    "DeviceName": "Apple TV Gen 4",
                                    "Input": []
                                },
                                {
                                    "DeviceName": "LG TV",
                                    "Input": "Hdmi1"
                                },
                                {
                                    "DeviceName": "JVC AV Receiver",
                                    "Input": "Dvd"
                                }
                            ],
                            "VolumeDevice": "JVC AV Receiver",
                            "ControlDevice": "Apple TV Gen 4",
                            "OutputDevice": "LG TV",
                            "UseMatrix": "true"
                        },
                        {
                            "DisplayName": "Listen to Music",
                            "DeviceSetupList": [
                                {
                                    "DeviceName": "JVC AV Receiver",
                                    "Input": "CD"
                                }
                            ],
                            "VolumeDevice": "JVC AV Receiver",
                            "ControlDevice": [],
                            "OutputDevice": [],
                            "UseMatrix": "false"
                        }
                    ]
                },
                {
                    "DisplayName": "Bedroom",
                    "Activities": [
                        {
                            "DisplayName": "Chromecast",
                            "DeviceSetupList": [
                                {
                                    "DeviceName": "Vizio TV",
                                    "Input": "Hdmi1"
                                },
                                {
                                    "DeviceName": "Harman Kardon AV Receiver",
                                    "Input": "Game"
                                },
                                {
                                    "DeviceName": "Chromecast",
                                    "Input": []
                                }
                            ],
                            "VolumeDevice": "Harman Kardon AV Receiver",
                            "ControlDevice": "Chromecast",
                            "OutputDevice": "Vizio TV",
                            "UseMatrix": "true"
                        },
                        {
                            "DisplayName": "Play Xbox One",
                            "DeviceSetupList": [
                                {
                                    "DeviceName": "Microsoft Xbox One",
                                    "Input": []
                                },
                                {
                                    "DeviceName": "Vizio TV",
                                    "Input": "Hdmi1"
                                },
                                {
                                    "DeviceName": "Harman Kardon AV Receiver",
                                    "Input": "Game"
                                }
                            ],
                            "VolumeDevice": "Harman Kardon AV Receiver",
                            "ControlDevice": "Microsoft Xbox One",
                            "OutputDevice": "Vizio TV",
                            "UseMatrix": "true"
                        },
                        {
                            "DisplayName": "Play PS4",
                            "DeviceSetupList": [
                                {
                                    "DeviceName": "Sony PS4",
                                    "Input": []
                                },
                                {
                                    "DeviceName": "Vizio TV",
                                    "Input": "Hdmi1"
                                },
                                {
                                    "DeviceName": "Harman Kardon AV Receiver",
                                    "Input": "Dvd"
                                }
                            ],
                            "VolumeDevice": "Harman Kardon AV Receiver",
                            "ControlDevice": "Sony PS4",
                            "OutputDevice": "LG TV",
                            "UseMatrix": "true"
                        },
                        {
                            "DisplayName": "Apple TV",
                            "DeviceSetupList": [
                                {
                                    "DeviceName": "Apple TV Gen 4",
                                    "Input": []
                                },
                                {
                                    "DeviceName": "Vizio TV",
                                    "Input": "Hdmi1"
                                },
                                {
                                    "DeviceName": "Harman Kardon AV Receiver",
                                    "Input": "Game"
                                }
                            ],
                            "VolumeDevice": "Harman Kardon AV Receiver",
                            "ControlDevice": "Apple TV Gen 4",
                            "OutputDevice": "Vizio TV",
                            "UseMatrix": "true"
                        }
                    ]
                },
                {
                    "DisplayName": "Kitchen",
                    "Activities": [
                        {
                            "DisplayName": "Chromecast",
                            "DeviceSetupList": [
                                {
                                    "DeviceName": "Chromecast",
                                    "Input": []
                                },
                                {
                                    "DeviceName": "Westinghouse TV",
                                    "Input": "Hdmi1"
                                }
                            ],
                            "VolumeDevice": "Westinghouse TV",
                            "ControlDevice": "Chromecast",
                            "OutputDevice": "Westinghouse TV",
                            "UseMatrix": "true"
                        },
                        {
                            "DisplayName": "Watch Apple Tv",
                            "DeviceSetupList": [
                                {
                                    "DeviceName": "Apple TV Gen 4",
                                    "Input": []
                                },
                                {
                                    "DeviceName": "Westinghouse TV",
                                    "Input": "Hdmi1"
                                }
                            ],
                            "VolumeDevice": "Westinghouse TV",
                            "ControlDevice": "Apple TV Gen 4",
                            "OutputDevice": "Westinghouse TV",
                            "UseMatrix": "true"
                        },
                        {
                            "DisplayName": "Play Xbox One",
                            "DeviceSetupList": [
                                {
                                    "DeviceName": "Westinghouse TV",
                                    "Input": "Hdmi1"
                                },
                                {
                                    "DeviceName": "Microsoft Xbox One",
                                    "Input": []
                                }
                            ],
                            "VolumeDevice": "Westinghouse TV",
                            "ControlDevice": "Microsoft Xbox One",
                            "OutputDevice": "Westinghouse TV",
                            "UseMatrix": "true"
                        }
                    ]
                }
            ]
        }
    ]
}