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.
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 | |||