fix: Allow entity to take remote control priority (#1981)
- Closes: #1958 [skip ci]
This commit is contained in:
@@ -17,16 +17,12 @@ remote_control:
|
||||
# [...]
|
||||
```
|
||||
|
||||
| Option | Default | Description |
|
||||
| -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `camera` | | An `input_select` entity that the card will use for bidirectional control. When the selected camera on the card changes the entity will be updated to match. Likewise, when the entity state changes, the selected camera on the card will be updated to match. When the card is first started, the `input_select` entity will be updated to only have valid camera IDs from this card. Values must start with `input_select.`. |
|
||||
| Option | Default | Description |
|
||||
| ----------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `camera` | | An `input_select` entity that the card will use for bidirectional control. When the selected camera on the card changes the entity will be updated to match. Likewise, when the entity state changes, the selected camera on the card will be updated to match. When the card is first started, the `input_select` entity will be updated to only have valid camera IDs from this card and the selected camera on the card will be updated to the existing entity value. Entities used for camera remote control must start with `input_select.`. |
|
||||
| `camera_priority` | `card` | Controls whether the `card` or the `entity` has priority on initial card load. If `card`, the entity state is updated to match the camera shown on load. If `entity`, the card will select the camera shown by the entity on load. |
|
||||
|
||||
?> To create an `input_select` entity to use in this manner, in the visual card
|
||||
editor, under `Remote Control -> Remote Control Entities`, choose `Create a new
|
||||
Dropdown helper`. Give the new entity an entity name (e.g. `my_selected_camera`)
|
||||
and an optional icon. You must specify at least one option -- you can use any
|
||||
placeholder value (e.g. `camera`) then choose `Add` (the card will automatically
|
||||
reset the allowable options on start). Finally, click `Create`.
|
||||
?> To create an `input_select` entity to use in this manner, in the visual card editor, under `Remote Control -> Remote Control Entities`, choose `Create a new Dropdown helper`. Give the new entity an entity name (e.g. `my_selected_camera`) and an optional icon. You must specify at least one option -- you can use any placeholder value (e.g. `camera`) then choose `Add` (the card will automatically reset the allowable options on start). Finally, click `Create`.
|
||||
|
||||
## Related Topics
|
||||
|
||||
@@ -40,4 +36,5 @@ reset the allowable options on start). Finally, click `Create`.
|
||||
remote_control:
|
||||
entities:
|
||||
camera: input_select.my_selected_camera
|
||||
camera_priority: card
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user