* Add config flow to bluesound * update init * abort flow if connection is not possible * add to codeowners * update unique id * add async_unload_entry * add import flow * add device_info * add zeroconf * fix errors * formatting * use bluos specific zeroconf service type * implement requested changes * implement requested changes * fix test; add more tests * use AsyncMock assert functions * fix potential naming collision * move setup_services back to media_player.py * implement requested changes * add port to zeroconf flow * Fix comments --------- Co-authored-by: Joostlek <joostlek@outlook.com>
74 lines
2.2 KiB
JSON
74 lines
2.2 KiB
JSON
{
|
|
"config": {
|
|
"step": {
|
|
"user": {
|
|
"data": {
|
|
"host": "[%key:common::config_flow::data::host%]",
|
|
"port": "[%key:common::config_flow::data::port%]"
|
|
},
|
|
"data_description": {
|
|
"host": "Hostname or IP address of your Bluesound player",
|
|
"port": "Port of your Bluesound player. This is usually 11000."
|
|
}
|
|
},
|
|
"confirm": {
|
|
"title": "Discover Bluesound player",
|
|
"description": "[%key:common::config_flow::description::confirm_setup%]"
|
|
}
|
|
},
|
|
"abort": {
|
|
"already_configured": "[%key:common::config_flow::abort::already_configured_service%]",
|
|
"cannot_connect": "[%key:common::config_flow::error::cannot_connect%]",
|
|
"already_in_progress": "[%key:common::config_flow::abort::already_in_progress%]"
|
|
},
|
|
"error": {
|
|
"cannot_connect": "[%key:common::config_flow::error::cannot_connect%]"
|
|
}
|
|
},
|
|
"services": {
|
|
"join": {
|
|
"name": "Join",
|
|
"description": "Group player together.",
|
|
"fields": {
|
|
"master": {
|
|
"name": "Master",
|
|
"description": "Entity ID of the player that should become the master of the group."
|
|
},
|
|
"entity_id": {
|
|
"name": "Entity",
|
|
"description": "Name of entity that will coordinate the grouping. Platform dependent."
|
|
}
|
|
}
|
|
},
|
|
"unjoin": {
|
|
"name": "Unjoin",
|
|
"description": "Unjoin the player from a group.",
|
|
"fields": {
|
|
"entity_id": {
|
|
"name": "Entity",
|
|
"description": "Name of entity that will be unjoined from their group. Platform dependent."
|
|
}
|
|
}
|
|
},
|
|
"set_sleep_timer": {
|
|
"name": "Set sleep timer",
|
|
"description": "Set a Bluesound timer. It will increase timer in steps: 15, 30, 45, 60, 90, 0.",
|
|
"fields": {
|
|
"entity_id": {
|
|
"name": "Entity",
|
|
"description": "Name(s) of entities that will have a timer set."
|
|
}
|
|
}
|
|
},
|
|
"clear_sleep_timer": {
|
|
"name": "Clear sleep timer",
|
|
"description": "Clear a Bluesound timer.",
|
|
"fields": {
|
|
"entity_id": {
|
|
"name": "Entity",
|
|
"description": "Name(s) of entities that will have the timer cleared."
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|