Skip to content

Commit

Permalink
docs: Fix PTZ example
Browse files Browse the repository at this point in the history
  • Loading branch information
dermotduffy committed Oct 14, 2024
1 parent 7895de9 commit 0934b9c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 28 deletions.
11 changes: 0 additions & 11 deletions docs/configuration/actions/stock/README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
# Stock Actions

## `call-service`

Call a service. See [Home Assistant actions documentation](https://www.home-assistant.io/dashboards/actions/).

!> Home Assistant has deprecated the `call-service` action, please use [`perform-action`](#perform-action) instead.

```yaml
action: call-service
# [...]
```

## `more-info`

Open the "more-info" dialog for an entity. See [Home Assistant actions documentation](https://www.home-assistant.io/dashboards/actions/).
Expand Down
38 changes: 21 additions & 17 deletions docs/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -620,30 +620,34 @@ overrides:

## PTZ control

The card supports using PTZ controls to conveniently control pan, tilt and zoom for cameras. This example shows the PTZ controls on the `live` view. Note that if your camera engine supports it (e.g. `frigate`) this will just work out of the box with no configuration at all.
The card supports using PTZ controls to conveniently control pan, tilt and zoom
for cameras. If you're using a Frigate camera, and Frigate itself shows PTZ
controls, this should work straight out of the box without any extra configuration:

```yaml
type: custom:frigate-card
cameras:
- camera_entity: camera.office
live:
ptz:
orientation: horizontal
service: sonoff.send_command
data_left:
device: '048123'
cmd: left
data_right:
device: '048123'
cmd: right
data_up:
device: '048123'
cmd: up
data_down:
device: '048123'
cmd: down
```

If you're using a non-Frigate camera, or Frigate itself does not support the PTZ
controls on your camera but Home Assistant does, you can still manually
configure actions for the card to perform for each PTZ control:

```yaml
type: custom:frigate-card
cameras:
- camera_entity: camera.office
ptz:
actions_left:
action: perform-action
perform_action: homeassistant.toggle
target:
entity_id: switch.camera_move_left
```

See the full [Camera PTZ Configuration](./configuration/live.md?id=ptz) for more information.

## `screen` conditions

These examples show altering the card configuration based on device or viewport properties.
Expand Down

0 comments on commit 0934b9c

Please sign in to comment.