Add out-of-the-box Frigate PTZ support.

This commit is contained in:
Dermot Duffy
2023-10-29 14:10:41 -07:00
parent fa43d2e439
commit e12912fa85
74 changed files with 3981 additions and 1514 deletions
+1 -2
View File
@@ -9,6 +9,5 @@ ha-icon {
position: absolute;
top: 10px;
right: 10px;
opacity: 50%;
color: white;
color: var(--primary-color);
}
@@ -1,7 +1,7 @@
// Modified from / inspired by:
// Inspired by:
// https://github.com/AlexxIT/WebRTC/blob/master/custom_components/webrtc/www/webrtc-camera.js
:host {
position: relative;
position: absolute;
width: fit-content;
height: fit-content;
@@ -9,6 +9,19 @@
--frigate-card-ptz-icon-size: 24px;
}
:host([data-position$='-left']) {
left: 5%;
}
:host([data-position$='-right']) {
right: 5%;
}
:host([data-position^='top-']) {
top: 5%;
}
:host([data-position^='bottom-']) {
bottom: 5%;
}
/*****************
* Main Containers
*****************/