Created
November 26, 2021 14:45
-
-
Save fabiosoft/a60f96e63b22215e8753c54b6e0b24e7 to your computer and use it in GitHub Desktop.
Add PAN/TILT/ZOOM to onvif, home assistant camera
This file contains 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
# paste as a custom (manual) card in lovelace and replace all entities id | |
type: picture-glance | |
entities: | |
- entity: camera.cam_studio_profile_1 | |
tap_action: | |
action: call-service | |
service: onvif.ptz | |
service_data: | |
entity_id: camera.cam_studio_profile_1 | |
pan: LEFT | |
speed: 1 | |
distance: 0.3 | |
move_mode: ContinuousMove | |
name: Pan Left | |
show_state: false | |
icon: mdi:arrow-left | |
show_icon: true | |
- entity: camera.cam_studio_profile_1 | |
tap_action: | |
action: call-service | |
service: onvif.ptz | |
service_data: | |
entity_id: camera.cam_studio_profile_1 | |
tilt: UP | |
speed: 1 | |
distance: 0.3 | |
move_mode: ContinuousMove | |
name: Tilt Up | |
icon: mdi:arrow-up | |
- entity: camera.cam_studio_profile_1 | |
tap_action: | |
action: call-service | |
service: onvif.ptz | |
service_data: | |
entity_id: camera.cam_studio_profile_1 | |
tilt: DOWN | |
speed: 1 | |
distance: 0.3 | |
move_mode: ContinuousMove | |
name: Tilt Down | |
icon: mdi:arrow-down | |
- entity: camera.cam_studio_profile_1 | |
tap_action: | |
action: call-service | |
service: onvif.ptz | |
service_data: | |
entity_id: camera.cam_studio_profile_1 | |
pan: RIGHT | |
speed: 1 | |
distance: 0.3 | |
move_mode: ContinuousMove | |
name: Pan Right | |
icon: mdi:arrow-right | |
show_icon: true | |
- entity: switch.sonoff_10000e5048 | |
camera_image: camera.cam_studio_profile_1 | |
camera_view: auto | |
show_name: false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment