{
    "pluginAlias": "MusiccastMultiroom",
    "pluginType": "platform",
    "singular": true,
    "headerDisplay": "Musiccast Multiroom Plugin enables favorite presets, input source selection and power/volume control within the Apple Home app. Speakers will always be linked to their MusicCast server.",
    "footerDisplay": "https://github.com/bnetqc/homebridge-musiccast-bnetqc/blob/main/README.md",
    "schema": {
        "type": "object",
        "properties": {
            "name": {
                "title": "Plugin name",
                "description": "Plugin name as shown in Homebridge Log",
                "type": "string",
                "required": true,
                "default": "MusiccastMultiroom"
            },
            "server": {
                "type": "object",
                "properties": {
                    "host": {
                        "title": "IP address/hostname (Server)",
                        "description": "The IP address or hostname of your Yamaha Receiver (or your main MusicCast device).",
                        "type": "string",
                        "required": true,
                        "default": ""
                    },
                    "volumeMin": {
                        "title": "Minimum Volume",
                        "description": "The minimum volume value for your amplifier's scale.",
                        "type": "number",
                        "default": 0
                    },
                    "volumeMax": {
                        "title": "Maximum Volume",
                        "description": "The maximum volume value for your amplifier's scale.",
                        "type": "number",
                        "default": 80
                    },
                    "inputs": {
                        "title": "Inputs",
                        "description": "Additional input sources to be available.",
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "input": {
                                    "title": "Input ID",
                                    "description": "For example 'hdmi1', 'airplay' etc.",
                                    "type": "string",
                                    "required": true,
                                    "default": ""
                                },
                                "name": {
                                    "title": "Input Name",
                                    "description": "For example 'TV', 'Airplay' etc.",
                                    "type": "string",
                                    "required": true,
                                    "default": ""
                                }
                            }
                        }
                    }
                }
            },
            "clients": {
                "title": "Clients",
                "description": "The IP addresses of your other MusicCast devices.",
                "type": "array",
                "items": {
                    "type": "object",
                    "properties": {
                        "host": {
                            "title": "IP address/hostname (Client)",
                            "description": "IP address or hostname",
                            "type": "string",
                            "required": true,
                            "default": "192.0.2.22"
                        },
                        "volumeMin": {
                            "title": "Minimum Volume",
                            "description": "The minimum volume value for the client device's scale.",
                            "type": "number",
                            "default": 0
                        },
                        "volumeMax": {
                            "title": "Maximum Volume",
                            "description": "The maximum volume value for the client device's scale.",
                            "type": "number",
                            "default": 80
                        }
                    }
                }
            }
        }
    }
}
