diff --git a/src/panels/config/automation/ha-automation-editor.ts b/src/panels/config/automation/ha-automation-editor.ts
index 5abf51d1c6..d1af4e2947 100644
--- a/src/panels/config/automation/ha-automation-editor.ts
+++ b/src/panels/config/automation/ha-automation-editor.ts
@@ -1,3 +1,4 @@
+import "@material/mwc-button";
import "@material/mwc-list/mwc-list-item";
import {
mdiCheck,
@@ -125,6 +126,21 @@ export class HaAutomationEditor extends KeyboardShortcutMixin(LitElement) {
"ui.panel.config.automation.editor.default_name"
)}
>
+ ${this._config?.id && !this.narrow
+ ? html`
+
+
+ ${this.hass.localize(
+ "ui.panel.config.automation.editor.show_trace"
+ )}
+
+
+ `
+ : ""}
- ${stateObj && this._config
+ ${stateObj && this._config && this.narrow
? html`
${this.hass.localize(
@@ -659,6 +675,9 @@ export class HaAutomationEditor extends KeyboardShortcutMixin(LitElement) {
flex-direction: column;
padding-bottom: 0;
}
+ .trace-link {
+ text-decoration: none;
+ }
manual-automation-editor,
blueprint-automation-editor {
margin: 0 auto;