{
    "title": "Homebridge Philips Android TV Platform Configuration",
    "pluginAlias": "PhilipsAndroidTV",
    "pluginType": "platform",
    "singular": false,
    "headerDisplay": "Enhanced Homebridge platform plugin for Philips Android TV with proper TV icon, Ambilight control, and extended features.",
    "footerDisplay": "For additional information visit [Plugin Homepage](https://github.com/m2ert/homebridge-philips-tv-ambilight-extended)",
    "schema": {
        "type": "object",
        "properties": {
            "debug": {
                "title": "Debug Mode",
                "type": "boolean",
                "default": false,
                "description": "Enable debug logging"
            },
            "configVersion": {
                "title": "Config Version",
                "type": "integer",
                "default": 1,
                "description": "Configuration version for future compatibility"
            },
            "tvs": {
                "type": "array",
                "title": "TVs",
                "description": "List of Philips Android TVs to control",
                "items": {
                    "type": "object",
                    "properties": {
                        "name": {
                            "title": "TV Name",
                            "type": "string",
                            "default": "Philips TV",
                            "description": "Display name for your TV"
                        },
                        "ip": {
                            "title": "IP Address",
                            "type": "string",
                            "format": "ipv4",
                            "description": "IP address of the TV"
                        },
                        "apiUser": {
                            "title": "API Username",
                            "type": "string",
                            "description": "API username from TV pairing"
                        },
                        "apiPass": {
                            "title": "API Password",
                            "type": "string",
                            "description": "API password from TV pairing"
                        },
                        "apiVersion": {
                            "title": "API Version",
                            "type": "integer",
                            "default": 6,
                            "description": "Philips TV API version"
                        },
                        "mac": {
                            "title": "MAC Address",
                            "type": "string",
                            "description": "MAC address for Wake on LAN (optional)"
                        },
                        "wakeOnLanRequests": {
                            "title": "WOL Requests",
                            "type": "integer",
                            "default": 3,
                            "description": "Number of Wake on LAN requests to send"
                        },
                        "wakeOnLanTimeout": {
                            "title": "WOL Timeout",
                            "type": "integer",
                            "default": 1000,
                            "description": "Timeout between WOL requests in milliseconds"
                        },
                        "wakeUntilAPIReadyCounter": {
                            "title": "Wake Until API Ready Counter",
                            "type": "integer",
                            "default": 100,
                            "description": "Number of tries before giving up connecting to TV"
                        },
                        "alternativePlayPause": {
                            "title": "Alternative Play/Pause",
                            "type": "boolean",
                            "default": false,
                            "description": "Send Play or Pause alternating instead of PlayPause"
                        },
                        "dedicatedMuteSwitch": {
                            "title": "Dedicated Mute Switch",
                            "type": "boolean",
                            "default": false,
                            "description": "Create separate switch for mute control"
                        },
                        "dedicatedVolumeLightbulb": {
                            "title": "Dedicated Volume Lightbulb",
                            "type": "boolean",
                            "default": false,
                            "description": "Create separate lightbulb for volume control"
                        },
                        "has_ambilight": {
                            "title": "Has Ambilight",
                            "type": "boolean",
                            "default": true,
                            "description": "Enable ambilight control"
                        },
                        "apps": {
                            "type": "array",
                            "title": "Apps",
                            "description": "List of apps to show as input sources",
                            "items": {
                                "type": "string"
                            }
                        },
                        "channels": {
                            "type": "object",
                            "title": "Channels Configuration",
                            "properties": {
                                "useFavorites": {
                                    "title": "Use Favorites",
                                    "type": "boolean",
                                    "default": false,
                                    "description": "Use favorite channels list"
                                },
                                "favoriteListId": {
                                    "title": "Favorite List ID",
                                    "type": "string",
                                    "default": "1",
                                    "description": "ID of favorite list to use"
                                },
                                "includeAll": {
                                    "title": "Include All Channels",
                                    "type": "boolean",
                                    "default": false,
                                    "description": "Include all available channels"
                                },
                                "channels": {
                                    "type": "array",
                                    "title": "Manual Channel List",
                                    "description": "Manual list of channel names",
                                    "items": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    },
                    "required": ["name", "ip", "apiUser", "apiPass"]
                }
            }
        },
        "required": ["tvs"]
    }
}
