Minor docs example updates.
This commit is contained in:
@@ -20,7 +20,6 @@ view:
|
|||||||
| `reset_after_interaction` | `true` | If `true` the card will reset to the default configured view (i.e. 'screensaver' functionality) after `interaction_seconds` has elapsed after user interaction. |
|
| `reset_after_interaction` | `true` | If `true` the card will reset to the default configured view (i.e. 'screensaver' functionality) after `interaction_seconds` has elapsed after user interaction. |
|
||||||
| `triggers` | | How to react when a camera is [triggered](cameras/README.md?id=triggers). |
|
| `triggers` | | How to react when a camera is [triggered](cameras/README.md?id=triggers). |
|
||||||
| `default_cycle_camera` | `false` | When set to `true` the selected camera is cycled on each default view change. |
|
| `default_cycle_camera` | `false` | When set to `true` the selected camera is cycled on each default view change. |
|
||||||
| `update_entities` | | **YAML only**: A card-wide list of entities that should cause the view to reset to the default (if the entity only pertains to a particular camera use [`triggers`](cameras/README.md?id=triggers) for the selected camera instead. |
|
|
||||||
|
|
||||||
## `default_reset`
|
## `default_reset`
|
||||||
|
|
||||||
|
|||||||
+6
-5
@@ -479,9 +479,9 @@ overrides:
|
|||||||
This example changes the default card view from `live` to `image` depending on
|
This example changes the default card view from `live` to `image` depending on
|
||||||
the value of the `binary_sensor.alarm_armed` sensor. The override alone will
|
the value of the `binary_sensor.alarm_armed` sensor. The override alone will
|
||||||
only change the _default_ when the card next is requested to change to the
|
only change the _default_ when the card next is requested to change to the
|
||||||
default view. By also including the `update_entities` parameter, we ask the card
|
default view. By also including the `view.default_reset.entities` parameter, we
|
||||||
to trigger a card update based on that entity -- which causes it to use the new
|
ask the card to trigger a card update based on that entity -- which causes it to
|
||||||
overriden default immediately.
|
use the new overriden default immediately.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
type: custom:frigate-card
|
type: custom:frigate-card
|
||||||
@@ -489,8 +489,9 @@ cameras:
|
|||||||
- camera_entity: camera.office
|
- camera_entity: camera.office
|
||||||
view:
|
view:
|
||||||
default: live
|
default: live
|
||||||
update_entities:
|
default_reset:
|
||||||
- binary_sensor.alarm_armed
|
entities:
|
||||||
|
- binary_sensor.alarm_armed
|
||||||
overrides:
|
overrides:
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: state
|
- condition: state
|
||||||
|
|||||||
Reference in New Issue
Block a user