* squeezebox add binary sensor + coordinator * squeezebox add connected via for media_player * squeezebox add Player type for player * Add more type info * Fix linter errors * squeezebox use our own status entity * squeezebox rework device handling based on freedback * Fix device creation * squeezebox rework coordinator error handling * Fix lint type error * Correct spelling * Correct spelling * remove large comments * insert small comment * add translation support * Simply sensor * clean update function, minimise comments to the useful bits * Fix after testing * Update homeassistant/components/squeezebox/entity.py Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> * move data prep out of Device assign for clarity * stop being a generic api * Humans need to read the sensors... * ruff format * Humans need to read the sensors... * Revert "ruff format" This reverts commit 8fcb8143e7c4427e75d31f9dd57f6c2027f8df6a. * ruff format * Humans need to read the sensors... * errors after testing * infered * drop context * cutdown coordinator for the binary sensors * add tests for binary sensors * Fix import * add some basic media_player tests * Fix spelling and file headers * Fix spelling * remove uuid and use service device cat * use diag device * assert execpted value * ruff format * Update homeassistant/components/squeezebox/__init__.py Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> * Simplify T/F * Fix file header * remove redudant check * remove player tests from this commit * Fix formatting * remove unused * Fix function Type * Fix Any to bool * Fix browser tests * Patch our squeebox componemt not the server in the lib * ruff --------- Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
90 lines
2.9 KiB
JSON
90 lines
2.9 KiB
JSON
{
|
|
"config": {
|
|
"flow_title": "{host}",
|
|
"step": {
|
|
"user": {
|
|
"data": {
|
|
"host": "[%key:common::config_flow::data::host%]"
|
|
},
|
|
"data_description": {
|
|
"host": "The hostname or IP address of your Lyrion Music Server."
|
|
}
|
|
},
|
|
"edit": {
|
|
"title": "Edit connection information",
|
|
"data": {
|
|
"host": "[%key:common::config_flow::data::host%]",
|
|
"port": "[%key:common::config_flow::data::port%]",
|
|
"username": "[%key:common::config_flow::data::username%]",
|
|
"password": "[%key:common::config_flow::data::password%]",
|
|
"https": "Connect over https (requires reverse proxy)"
|
|
}
|
|
}
|
|
},
|
|
"error": {
|
|
"cannot_connect": "[%key:common::config_flow::error::cannot_connect%]",
|
|
"invalid_auth": "[%key:common::config_flow::error::invalid_auth%]",
|
|
"unknown": "[%key:common::config_flow::error::unknown%]",
|
|
"no_server_found": "Could not automatically discover server."
|
|
},
|
|
"abort": {
|
|
"already_configured": "[%key:common::config_flow::abort::already_configured_device%]",
|
|
"no_server_found": "No LMS server found."
|
|
}
|
|
},
|
|
"services": {
|
|
"call_method": {
|
|
"name": "Call method",
|
|
"description": "Calls a custom Squeezebox JSONRPC API.",
|
|
"fields": {
|
|
"command": {
|
|
"name": "Command",
|
|
"description": "Command to pass to Lyrion Music Server (p0 in the CLI documentation)."
|
|
},
|
|
"parameters": {
|
|
"name": "Parameters",
|
|
"description": "Array of additional parameters to pass to Lyrion Music Server (p1, ..., pN in the CLI documentation).\n."
|
|
}
|
|
}
|
|
},
|
|
"call_query": {
|
|
"name": "Call query",
|
|
"description": "Calls a custom Squeezebox JSONRPC API. Result will be stored in 'query_result' attribute of the Squeezebox entity.\n.",
|
|
"fields": {
|
|
"command": {
|
|
"name": "Command",
|
|
"description": "[%key:component::squeezebox::services::call_method::fields::command::description%]"
|
|
},
|
|
"parameters": {
|
|
"name": "Parameters",
|
|
"description": "[%key:component::squeezebox::services::call_method::fields::parameters::description%]"
|
|
}
|
|
}
|
|
},
|
|
"sync": {
|
|
"name": "Sync",
|
|
"description": "Adds another player to this player's sync group. If the other player is already in a sync group, it will leave it.\n.",
|
|
"fields": {
|
|
"other_player": {
|
|
"name": "Other player",
|
|
"description": "Name of the other Squeezebox player to link."
|
|
}
|
|
}
|
|
},
|
|
"unsync": {
|
|
"name": "Unsync",
|
|
"description": "Removes this player from its sync group."
|
|
}
|
|
},
|
|
"entity": {
|
|
"binary_sensor": {
|
|
"rescan": {
|
|
"name": "Library rescan"
|
|
},
|
|
"needsrestart": {
|
|
"name": "Needs restart"
|
|
}
|
|
}
|
|
}
|
|
}
|