set_button_mapping
Assign a physical button to a command on a remote or activity. Optionally dry-run to preview changes before applying.
Instructions
Set one physical-button -> command binding on an 'activity' or 'remote'. entity_id is REQUIRED for activities (the command target) and ignored for remotes. Defaults to dry_run=True (shows before/after); auto-backs-up before any real write. Set dry_run=false to apply.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"scope": "<scope>",
"scope_id": "<scope_id>",
"button": "<button>",
"command": "<command>"
},
"name": "set_button_mapping"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | ||
| press | No | short_press | |
| scope | Yes | ||
| button | Yes | ||
| params | No | ||
| command | Yes | ||
| dry_run | No | ||
| scope_id | Yes | ||
| entity_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||