Move WebRTC in the editor from live -> cameras.
This commit is contained in:
+8
-4
@@ -21,6 +21,8 @@ import {
|
|||||||
CONF_CAMERAS_ARRAY_LABEL,
|
CONF_CAMERAS_ARRAY_LABEL,
|
||||||
CONF_CAMERAS_ARRAY_TITLE,
|
CONF_CAMERAS_ARRAY_TITLE,
|
||||||
CONF_CAMERAS_ARRAY_URL,
|
CONF_CAMERAS_ARRAY_URL,
|
||||||
|
CONF_CAMERAS_ARRAY_WEBRTC_ENTITY,
|
||||||
|
CONF_CAMERAS_ARRAY_WEBRTC_URL,
|
||||||
CONF_CAMERAS_ARRAY_ZONE,
|
CONF_CAMERAS_ARRAY_ZONE,
|
||||||
CONF_DIMENSIONS_ASPECT_RATIO,
|
CONF_DIMENSIONS_ASPECT_RATIO,
|
||||||
CONF_DIMENSIONS_ASPECT_RATIO_MODE,
|
CONF_DIMENSIONS_ASPECT_RATIO_MODE,
|
||||||
@@ -37,8 +39,6 @@ import {
|
|||||||
CONF_LIVE_CONTROLS_THUMBNAILS_SIZE,
|
CONF_LIVE_CONTROLS_THUMBNAILS_SIZE,
|
||||||
CONF_LIVE_PRELOAD,
|
CONF_LIVE_PRELOAD,
|
||||||
CONF_LIVE_PROVIDER,
|
CONF_LIVE_PROVIDER,
|
||||||
CONF_LIVE_WEBRTC_ENTITY,
|
|
||||||
CONF_LIVE_WEBRTC_URL,
|
|
||||||
CONF_MENU_BUTTONS_CLIPS,
|
CONF_MENU_BUTTONS_CLIPS,
|
||||||
CONF_MENU_BUTTONS_FRIGATE,
|
CONF_MENU_BUTTONS_FRIGATE,
|
||||||
CONF_MENU_BUTTONS_FRIGATE_DOWNLOAD,
|
CONF_MENU_BUTTONS_FRIGATE_DOWNLOAD,
|
||||||
@@ -427,6 +427,12 @@ export class FrigateCardEditor extends LitElement implements LovelaceCardEditor
|
|||||||
${this._renderStringInput(
|
${this._renderStringInput(
|
||||||
getArrayConfigPath(CONF_CAMERAS_ARRAY_ID, cameraIndex),
|
getArrayConfigPath(CONF_CAMERAS_ARRAY_ID, cameraIndex),
|
||||||
)}
|
)}
|
||||||
|
${this._renderDropdown(
|
||||||
|
getArrayConfigPath(CONF_CAMERAS_ARRAY_WEBRTC_ENTITY, cameraIndex),
|
||||||
|
cameraEntities)}
|
||||||
|
${this._renderStringInput(
|
||||||
|
getArrayConfigPath(CONF_CAMERAS_ARRAY_WEBRTC_URL, cameraIndex),
|
||||||
|
)}
|
||||||
</div>`
|
</div>`
|
||||||
: ``}
|
: ``}
|
||||||
`;
|
`;
|
||||||
@@ -664,8 +670,6 @@ export class FrigateCardEditor extends LitElement implements LovelaceCardEditor
|
|||||||
<div class="values">
|
<div class="values">
|
||||||
${this._renderSwitch(CONF_LIVE_PRELOAD, defaults.live.preload)}
|
${this._renderSwitch(CONF_LIVE_PRELOAD, defaults.live.preload)}
|
||||||
${this._renderDropdown(CONF_LIVE_PROVIDER, liveProviders)}
|
${this._renderDropdown(CONF_LIVE_PROVIDER, liveProviders)}
|
||||||
${this._renderDropdown(CONF_LIVE_WEBRTC_ENTITY, cameraEntities)}
|
|
||||||
${this._renderStringInput(CONF_LIVE_WEBRTC_URL)}
|
|
||||||
${this._renderDropdown(
|
${this._renderDropdown(
|
||||||
CONF_LIVE_CONTROLS_THUMBNAILS_MODE,
|
CONF_LIVE_CONTROLS_THUMBNAILS_MODE,
|
||||||
thumbnailModes,
|
thumbnailModes,
|
||||||
|
|||||||
@@ -18,7 +18,11 @@
|
|||||||
"frigate_url": "Frigate server URL",
|
"frigate_url": "Frigate server URL",
|
||||||
"title": "Title for this camera (Autodetected from entity)",
|
"title": "Title for this camera (Autodetected from entity)",
|
||||||
"icon": "Icon for this camera (Autodetected from entity)",
|
"icon": "Icon for this camera (Autodetected from entity)",
|
||||||
"zone": "Frigate zone"
|
"zone": "Frigate zone",
|
||||||
|
"webrtc": {
|
||||||
|
"entity": "WebRTC Camera Entity (Not a Frigate camera)",
|
||||||
|
"url": "WebRTC Camera URL"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"view": {
|
"view": {
|
||||||
"default": "Default view",
|
"default": "Default view",
|
||||||
@@ -66,10 +70,6 @@
|
|||||||
"frigate-jsmpeg": "Frigate JSMpeg",
|
"frigate-jsmpeg": "Frigate JSMpeg",
|
||||||
"webrtc": "WebRTC"
|
"webrtc": "WebRTC"
|
||||||
},
|
},
|
||||||
"webrtc": {
|
|
||||||
"entity": "WebRTC Camera Entity (Not a Frigate camera)",
|
|
||||||
"url": "WebRTC Camera URL"
|
|
||||||
},
|
|
||||||
"controls": {
|
"controls": {
|
||||||
"thumbnails": {
|
"thumbnails": {
|
||||||
"mode": "Live thumbnails mode",
|
"mode": "Live thumbnails mode",
|
||||||
|
|||||||
Reference in New Issue
Block a user