Skip to content

Automation Search fails on last word when automation name starts with "_0" #28812

@CBY0

Description

@CBY0

Checklist

  • I have updated to the latest available Home Assistant version.
  • I have cleared the cache of my browser.
  • I have tried a different browser to see if it is related to my browser.
  • I have tried reproducing the issue in safe mode to rule out problems with unsupported custom resources.

Describe the issue you are experiencing

The problem

The Automation Dashboard search fails to find an automation when searching for the last word of its name, ONLY if the name starts with _0 (underscore zero). Unclear exaclty the logic _00 / _001

The combination of a leading _0 and searching for the final string token causes the search filter to fail. Some other combo at the front probably too.

Automations Dashboard (Frontend)

Describe the behavior you expected

Any search token (word) in the search Automation should return all automations sharing this token (word).

Caused a major issue where I never found this critical (Heating) automation I needed to adjust. It's -15C (Montreal, Canada) which led me to research this bug.

Steps to reproduce the issue

I isolated the issue with the following tests:

Test 1 (The Bug)

  • Name: _001 SOL Timed 0845 Prep Day Set Heat
  • Search Query: "Heat" (The last word)
  • Result: ❌ No results found.

Test 2 (Control - No Prefix)

  • Name: SOL Timed 0845 Prep Day Set Heat (Removed _001)
  • Search Query: "Heat"
  • Result: ✅ Automation found.

Test 3 (The Bug - Different Word)

  • Name: _001 SOL Timed 0845 Prep Heat Set Day (Changed last word)
  • Search Query: "Day"
  • Result: ❌ No results found.

Test 4 (Control - No Prefix)

  • Name: Timed 0845 Prep Heat Set Day
  • Search Query: "Day"
  • Result: ✅ Automation found.

What version of Home Assistant Core has the issue?

core-2025.12.5

What was the last working version of Home Assistant Core?

core-2025.12.5

In which browser are you experiencing the issue?

Google Chrome / up to date / Version 143.0.7499.170 (Official Build) (64-bit)

Which operating system are you using to run this browser?

HA OS 16.3

State of relevant entities

Problem-relevant frontend configuration

JavaScript errors shown in your browser console/inspector

Additional information

Thanks !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions