diff --git a/src/panels/config/automation/ha-config-automation.ts b/src/panels/config/automation/ha-config-automation.ts index a4fa5d38ab..70f2b16add 100644 --- a/src/panels/config/automation/ha-config-automation.ts +++ b/src/panels/config/automation/ha-config-automation.ts @@ -87,7 +87,7 @@ class HaConfigAutomation extends HassRouterPage { (!changedProps || changedProps.has("route")) && this._currentPage !== "dashboard" ) { - const automationId = this.routeTail.path.substr(1); + const automationId = decodeURIComponent(this.routeTail.path.substr(1)); pageEl.automationId = automationId === "new" ? null : automationId; } }