Created
November 29, 2023 22:22
-
-
Save casebeer/daa22c210e299d671eac29b15be9ec68 to your computer and use it in GitHub Desktop.
Hikvison PTZ and white light from Home Assistant dashboard
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
type: picture-elements | |
title: Hik PTZ Control | |
elements: | |
- type: icon | |
icon: mdi:arrow-up | |
tap_action: | |
action: call-service | |
service: rest_command.hik_ptz_up | |
hold_action: | |
action: call-service | |
service: rest_command.hik_ptz_up | |
data: | |
duration: 2000 | |
title: ↑ | |
style: | |
transform: translate(-50%, -50%) scale(3) | |
background: rgba(0,128,255, .15) | |
top: 15% | |
left: 50% | |
font-size1: 400px | |
position1: static | |
padding: 5px | |
border-radius: 7px | |
text-align: center | |
- type: icon | |
icon: mdi:arrow-down | |
tap_action: | |
action: call-service | |
service: rest_command.hik_ptz_down | |
hold_action: | |
action: call-service | |
service: rest_command.hik_ptz_down | |
data: | |
duration: 2000 | |
title: ↓ | |
style: | |
transform: translate(-50%, -50%) scale(3) | |
background: rgba(0,128,255, .15) | |
border-radius: 7px | |
padding: 5px | |
top: 75% | |
left: 50% | |
- type: icon | |
icon: mdi:arrow-left | |
tap_action: | |
action: call-service | |
service: rest_command.hik_ptz_left | |
hold_action: | |
action: call-service | |
service: rest_command.hik_ptz_left | |
data: | |
duration: 2000 | |
title: ← | |
style: | |
transform: translate(-50%, -50%) scale(3) | |
background: rgba(0,128,255, .15) | |
border-radius: 7px | |
padding: 5px | |
top: 45% | |
left: 20% | |
- type: icon | |
icon: mdi:arrow-right | |
tap_action: | |
action: call-service | |
service: rest_command.hik_ptz_right | |
hold_action: | |
action: call-service | |
service: rest_command.hik_ptz_right | |
data: | |
duration: 2000 | |
title: → | |
style: | |
transform: translate(-50%, -50%) scale(3) | |
background: rgba(0,128,255, .15) | |
border-radius: 7px | |
padding: 5px | |
top: 45% | |
left: 80% | |
- type: state-icon | |
entity: switch.hik_ptz_supplemental_white_light | |
tap_action: | |
action: toggle | |
style: | |
top: 45% | |
left: 50% | |
image: /local/images/white80.png |
Author
casebeer
commented
Nov 29, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment