Improve documentation & editing for WebRTC.

This commit is contained in:
Dermot Duffy
2021-09-12 16:58:28 -07:00
parent 5dfc7a7208
commit cab9460599
4 changed files with 45 additions and 27 deletions
+6
View File
@@ -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>
+2 -1
View File
@@ -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
View File
@@ -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),