Documentation for new foscam PTZ preset service (#15604)

This commit is contained in:
joe248 2021-01-27 08:43:47 -06:00 committed by GitHub
parent 8381b25256
commit 1ed801b1a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,6 +34,15 @@ If your Foscam camera supports PTZ, you will be able to pan or tilt your camera.
| `movement` | Direction of the movement. Allowed values: `up`, `down`, `left`, `right`, `top_left`, `top_right`, `bottom_left`, `bottom_right` |
| `travel_time` | (Optional) Travel time in seconds. Allowed values: float from 0 to 1. Default: 0.125 |
### Service `foscam.ptz_preset`
If your Foscam camera supports PTZ presets, you will be able to move the camera to a predefined preset using the preset name.
| Service data attribute | Description |
| -----------------------| ----------- |
| `entity_id` | String or list of strings that point at `entity_id`s of cameras. Use `entity_id: all` to target all. |
| `preset_name` | The name of the preset to move to. Presets can be created from within the official Foscam apps. |
### Example card with controls
<p class='img'>