Improve documentation & editing for WebRTC.
This commit is contained in:
@@ -401,6 +401,12 @@ export class FrigateCardEditor extends LitElement implements LovelaceCardEditor
|
||||
})}
|
||||
</paper-listbox>
|
||||
</paper-dropdown-menu>
|
||||
<paper-input
|
||||
label=${localize('webrtc.url')}
|
||||
.value=${this._config?.webrtc?.url || ''}
|
||||
.configValue=${'webrtc.url'}
|
||||
@value-changed=${this._valueChanged}
|
||||
></paper-input>
|
||||
</div>`
|
||||
: ''}
|
||||
</div>
|
||||
|
||||
@@ -72,7 +72,8 @@
|
||||
"webrtc": "WebRTC"
|
||||
},
|
||||
"webrtc": {
|
||||
"entity": "WebRTC Camera Entity (To use with WebRTC Live Provider)"
|
||||
"entity": "Optional WebRTC Camera Entity (Not a Frigate camera)",
|
||||
"url": "Optional WebRTC Camera URL"
|
||||
},
|
||||
"error": {
|
||||
"empty_response": "Received empty response from Home Assistant for request",
|
||||
|
||||
+4
-1
@@ -61,7 +61,10 @@ export const frigateCardConfigSchema = z.object({
|
||||
)
|
||||
.optional().default(180),
|
||||
live_provider: z.enum(['frigate', 'frigate-jsmpeg', 'webrtc']).default('frigate'),
|
||||
webrtc: z.object({}).passthrough().optional(),
|
||||
webrtc: z.object({
|
||||
entity: z.string().optional(),
|
||||
url: z.string().optional(),
|
||||
}).passthrough().optional(),
|
||||
label: z.string().optional(),
|
||||
zone: z.string().optional(),
|
||||
autoplay_clip: z.boolean().default(false),
|
||||
|
||||
Reference in New Issue
Block a user