parent
a30a35f82f
commit
8548c9767b
|
@ -50,7 +50,9 @@ export class AssistPipelineRunDebug extends LitElement {
|
|||
<hass-subpage
|
||||
.narrow=${this.narrow}
|
||||
.hass=${this.hass}
|
||||
header="Assist Pipeline"
|
||||
.header=${this.hass.localize(
|
||||
"ui.panel.config.voice_assistants.debug.pipeline.header"
|
||||
)}
|
||||
>
|
||||
${this._pipelineRuns.length > 0
|
||||
? html`
|
||||
|
@ -59,13 +61,13 @@ export class AssistPipelineRunDebug extends LitElement {
|
|||
@click=${this._clearConversation}
|
||||
.disabled=${!this._finished}
|
||||
>
|
||||
Clear
|
||||
${this.hass.localize("ui.common.clear")}
|
||||
</ha-button>
|
||||
<ha-button
|
||||
slot="toolbar-icon"
|
||||
@click=${this._downloadConversation}
|
||||
>
|
||||
Download
|
||||
${this.hass.localize("ui.common.download")}
|
||||
</ha-button>
|
||||
`
|
||||
: ""}
|
||||
|
@ -81,7 +83,9 @@ export class AssistPipelineRunDebug extends LitElement {
|
|||
></ha-assist-pipeline-picker>
|
||||
<div class="start-buttons">
|
||||
<ha-button raised @click=${this._runTextPipeline}>
|
||||
Run Text Pipeline
|
||||
${this.hass.localize(
|
||||
"ui.panel.config.voice_assistants.debug.pipeline.run_text_pipeline"
|
||||
)}
|
||||
</ha-button>
|
||||
<ha-button
|
||||
raised
|
||||
|
@ -90,7 +94,9 @@ export class AssistPipelineRunDebug extends LitElement {
|
|||
// @ts-ignore-next-line
|
||||
!(window.AudioContext || window.webkitAudioContext)}
|
||||
>
|
||||
Run Audio Pipeline
|
||||
${this.hass.localize(
|
||||
"ui.panel.config.voice_assistants.debug.pipeline.run_audio_pipeline"
|
||||
)}
|
||||
</ha-button>
|
||||
<ha-button
|
||||
raised
|
||||
|
@ -99,7 +105,9 @@ export class AssistPipelineRunDebug extends LitElement {
|
|||
// @ts-ignore-next-line
|
||||
!(window.AudioContext || window.webkitAudioContext)}
|
||||
>
|
||||
Run Audio Pipeline with Wake Word detection
|
||||
${this.hass.localize(
|
||||
"ui.panel.config.voice_assistants.debug.pipeline.run_audio_with_wake"
|
||||
)}
|
||||
</ha-button>
|
||||
</div>
|
||||
`
|
||||
|
@ -107,7 +115,9 @@ export class AssistPipelineRunDebug extends LitElement {
|
|||
? html`
|
||||
<ha-textfield
|
||||
id="continue-conversation-text"
|
||||
label="Response"
|
||||
.label=${this.hass.localize(
|
||||
"ui.panel.config.voice_assistants.debug.pipeline.response"
|
||||
)}
|
||||
.disabled=${!this._finished}
|
||||
@keydown=${this._handleContinueKeyDown}
|
||||
></ha-textfield>
|
||||
|
@ -115,7 +125,9 @@ export class AssistPipelineRunDebug extends LitElement {
|
|||
@click=${this._runTextPipeline}
|
||||
.disabled=${!this._finished}
|
||||
>
|
||||
Send
|
||||
${this.hass.localize(
|
||||
"ui.panel.config.voice_assistants.debug.pipeline.send"
|
||||
)}
|
||||
</ha-button>
|
||||
`
|
||||
: this._finished
|
||||
|
@ -123,14 +135,22 @@ export class AssistPipelineRunDebug extends LitElement {
|
|||
"wake_word"
|
||||
? html`
|
||||
<ha-button @click=${this._runAudioWakeWordPipeline}>
|
||||
Continue listening for wake word
|
||||
${this.hass.localize(
|
||||
"ui.panel.config.voice_assistants.debug.pipeline.continue_listening"
|
||||
)}
|
||||
</ha-button>
|
||||
`
|
||||
: html`<ha-button @click=${this._runAudioPipeline}>
|
||||
Continue talking
|
||||
${this.hass.localize(
|
||||
"ui.panel.config.voice_assistants.debug.pipeline.continue_talking"
|
||||
)}
|
||||
</ha-button>`
|
||||
: html`
|
||||
<ha-formfield label="Continue conversation">
|
||||
<ha-formfield
|
||||
.label=${this.hass.localize(
|
||||
"ui.panel.config.voice_assistants.debug.pipeline.continue_conversation"
|
||||
)}
|
||||
>
|
||||
<ha-checkbox
|
||||
id="continue-conversation"
|
||||
checked
|
||||
|
@ -169,8 +189,12 @@ export class AssistPipelineRunDebug extends LitElement {
|
|||
text = textfield.value;
|
||||
} else {
|
||||
text = await showPromptDialog(this, {
|
||||
title: "Input text",
|
||||
confirmText: "Run",
|
||||
title: this.hass.localize(
|
||||
"ui.panel.config.voice_assistants.debug.pipeline.input_text"
|
||||
),
|
||||
confirmText: this.hass.localize(
|
||||
"ui.panel.config.voice_assistants.debug.pipeline.run"
|
||||
),
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -381,7 +405,9 @@ export class AssistPipelineRunDebug extends LitElement {
|
|||
);
|
||||
} catch (err: any) {
|
||||
await showAlertDialog(this, {
|
||||
title: "Error starting pipeline",
|
||||
title: this.hass.localize(
|
||||
"ui.panel.config.voice_assistants.debug.pipeline.error_starting"
|
||||
),
|
||||
text: err.message || err,
|
||||
});
|
||||
}
|
||||
|
|
|
@ -317,6 +317,7 @@
|
|||
"refresh": "Refresh",
|
||||
"cancel": "Cancel",
|
||||
"delete": "Delete",
|
||||
"download": "[%key:supervisor::backup::download%]",
|
||||
"duplicate": "Duplicate",
|
||||
"remove": "Remove",
|
||||
"enable": "Enable",
|
||||
|
@ -2347,7 +2348,21 @@
|
|||
"no_runs_found": "No runs found",
|
||||
"older_run": "Older run",
|
||||
"newer_run": "Newer run",
|
||||
"start_debug_run": "Start debug run"
|
||||
"start_debug_run": "Start debug run",
|
||||
"pipeline": {
|
||||
"header": "Assist Pipeline",
|
||||
"run_text_pipeline": "Run text pipeline",
|
||||
"run_audio_pipeline": "Run audio pipeline",
|
||||
"run_audio_with_wake": "Run audio pipeline with wake word detection",
|
||||
"response": "[%key:ui::panel::developer-tools::tabs::services::response%]",
|
||||
"send": "Send",
|
||||
"continue_listening": "Continue listening for wake word",
|
||||
"continue_talking": "Continue talking",
|
||||
"continue_conversation": "Continue conversation",
|
||||
"input_text": "Input text",
|
||||
"run": "[%key:ui::card::service::run%]",
|
||||
"error_starting": "Error starting pipeline"
|
||||
}
|
||||
},
|
||||
"expose": {
|
||||
"caption": "Expose",
|
||||
|
|
Loading…
Reference in New Issue