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