Created
April 23, 2025 22:36
-
-
Save jasontucker/acda40546d66d2de8f8b8eb42f95acb5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias: Backyard PTZ Control | |
description: "" | |
triggers: | |
- trigger: state | |
entity_id: | |
- input_button.backyard_ptz_view_home | |
to: null | |
id: Home | |
- trigger: state | |
entity_id: | |
- input_button.backyard_ptz_view_1 | |
to: null | |
id: View 1 | |
- trigger: state | |
entity_id: | |
- input_button.backyard_ptz_view_2 | |
to: null | |
id: View 2 | |
- trigger: state | |
entity_id: | |
- input_button.backyard_ptz_view_3 | |
to: null | |
id: View 3 | |
conditions: [] | |
actions: | |
- if: | |
- condition: trigger | |
id: | |
- Home | |
then: | |
- alias: Backyard PTZ (Return Home) | |
action: shell_command.ptz_preset_control_camera | |
data: | |
nvr_ip: 192.168.1.1 | |
username: ENTER-YOUR-UNIFI-USERNAME-HERE-NO-ADMIN-USER-REQUIRED | |
password: ENTER-YOUR-PASSWORD-HERE | |
camera_id: ENTER-YOUR-UNIFI-CAMERA-ID-HERE | |
preset_number: -1 | |
alias: Home | |
- if: | |
- condition: trigger | |
id: | |
- View 1 | |
then: | |
- alias: Backyard PTZ (Most of Backyard) | |
action: shell_command.ptz_preset_control_camera | |
data: | |
nvr_ip: 192.168.1.1 | |
username: ENTER-YOUR-UNIFI-USERNAME-HERE-NO-ADMIN-USER-REQUIRED | |
password: ENTER-YOUR-PASSWORD-HERE | |
camera_id: ENTER-YOUR-UNIFI-CAMERA-ID-HERE | |
preset_number: 1 | |
alias: View 1 | |
- alias: View 2 | |
if: | |
- condition: trigger | |
id: | |
- View 2 | |
then: | |
- alias: Backyard PTZ (Side Yard 1) | |
action: shell_command.ptz_preset_control_camera | |
data: | |
nvr_ip: 192.168.1.1 | |
username: ENTER-YOUR-UNIFI-USERNAME-HERE-NO-ADMIN-USER-REQUIRED | |
password: ENTER-YOUR-PASSWORD-HERE | |
camera_id: ENTER-YOUR-UNIFI-CAMERA-ID-HERE | |
preset_number: 0 | |
enabled: true | |
- alias: View 3 | |
if: | |
- condition: trigger | |
id: | |
- View 3 | |
then: | |
- alias: Backyard PTZ (Side Yard 2) | |
action: shell_command.ptz_preset_control_camera | |
data: | |
nvr_ip: 192.168.1.1 | |
username: ENTER-YOUR-UNIFI-USERNAME-HERE-NO-ADMIN-USER-REQUIRED | |
password: ENTER-YOUR-PASSWORD-HERE | |
camera_id: ENTER-YOUR-UNIFI-CAMERA-ID-HERE | |
preset_number: 2 | |
enabled: true | |
mode: single |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment