frontend
frontend copied to clipboard
BUG: automation yaml editor search error
Checklist
- [x] I have updated to the latest available Home Assistant version.
- [x] I have cleared the cache of my browser.
- [x] 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
It looks there is search error in yaml editor in automations. When searching for a word that is out of view of the editor, the view is not moved to the word. When cklicking with mouse into editor view and push PgDwn Button, nothing happens. You have to push about 3-7 times the PgDwn to get the view scrolled down.
If you do so in yaml of raw dashboard it works fine.
Core 2025.5.1 Supervisor 2025.04.1 Operating System 15.2 Frontend 20250509.0
It was so in a few earlier version too.
Describe the behavior you expected
The behavior of the automation editor should be the same like the dashboard raw yaml editor, and it was so in 2024 versions.
Steps to reproduce the issue
- open a big automation
- switch to yaml
- click with mouse into editor view
- push PgDwn to see if view scoll down
- or search for a word out of the view, like "mode"
What version of Home Assistant Core has the issue?
2025.5.1
What was the last working version of Home Assistant Core?
no, a few earlier versions too
In which browser are you experiencing the issue?
Firefox, edge
Which operating system are you using to run this browser?
Windows 11
State of relevant entities
Problem-relevant frontend configuration
Javascript errors shown in your browser console/inspector
Additional information
No response
Thanks for opening this. I too have the same behaviour with Chrome and Safari. It always used to scroll automatically to the next instance of the targeted search term. Now although it is highlighted, I have to manually scroll through to find the highlighted section.
Ran into this issue for the first time today, on Core 2025.7.1, Frontend 20250702.1
I can confirm that the code editor no longer works as before (since core update v2025.7.???). This when editing automations and when editing a dashboard with the raw configuration editor. Editing a single dashboard-card work as before.
When searching via the editor (i.e. after clicking in the text), the string is searched but you only shows the result within the visible part of the yaml code. The screen does not move to the search strings in the non-visible part of a long (many lines) yaml code. This both with Firefox 140.0.4 and Chrome 138.0.7204.101 and Edge 138.0.3351.83.
Moving with PgUp and PgDn works as long as you haven't clicked in the text.
Same here.
- Search in YAML raw editor used to work fine, but since 2025.7.x (not sure exactly when it stopped working, running 2025.7.2 currently), searching in the raw config editor highlights matching text if it's in the current view, but doesn't scroll to the text if it's out of view, making it impossible to actually search for anything.
- This happens with the editor that has "Find/Replace" inputs at the bottom of the screen, e.g. when selecting "raw configuration editor" while editing a dashboard, or while editing an automation and selecting "edit in YAML". However, when editing a dashboard card and selecting "show code editor", search works correctly (it appears to be a different editor since the "Find/Replace" inputs aren't present.
- Problem happens in all browsers I tested: Firefox, Safari, and Brave, which I'd never used to log into HA before. Also tried opening HA in "private window" sessions, same problem.
- Restarted HA in "safe mode", same problem.
- Running HA in docker on Debian. Web browsing on MacOS.
Not sure what other troubleshooting to do to help narrow this down. Since others have had the problem since May, but several of us just started seeing it in June or July, and others (on the community forum) have no problem, it's hard to say what's triggering the problem.
Same problem on my end. Is there someone on the team who can answer us and tell us if a solution will be found, please?
+1
I’m wondering if this is actually an issue with current line handling. Repeated searches do move the current line highlight, but it doesn’t bring the line into view if it’s offscreen. Maybe there’s a missing call to do that on current line change or something.
Another "funny" fact is, if you are in e.g. edit mode of raw dashboard and selecting the text by holding shift and row down, the text is marked but if the cursor runs out of view at the buttom, the editor view doesn't move downwards. If you do the same in the other direction to the top the editor view moves upwards.
It would be very nice if this problem could be fixed so that it worked like in earlier versions.
With latest update today this is still not resolved? How can so important bug be simply ignored? Editing is practically impossible…
How can I report the problem to them? After several updates, the bug still hasn't been fixed! Where can I notify them directly? Does anyone know?
@karwosts marked it as Bug two weeks ago so presumably it’s on their radar. Any attention appreciated :)
Don't read too much into it. I marked it as a bug because it is a bug, but otherwise I have no idea how to fix it.
Don't read too much into it. I marked it as a bug because it is a bug, but otherwise I have no idea how to fix it.
Fair enough, thanks. I’m a developer but haven’t worked on HA before; I might have a look myself when I get some time.
Hi, friends. Still nothing new? Some people tell me it works for them... So what's the problem for us?
@karwosts : So, if I understand correctly, they fixed the problem by making a correction, and we have to wait for the next HA update, is that it? because I did the HA update this morning, and still the same thing. I hope it will be for the next update...
I fixed a problem, not necessarily the problem. It will need a different fix per instance of the YAML editor that is not working.
The one I fixed was for dashboard raw configuration editor. I'm aware that fullscreen automation editor still has a similar issue.
If there are other locations where you see the issue, please report them.
Merged PRs will be released in version 2025.9 at the latest. They might be released in a 2025.8.x point release. It definitely won't fix itself on your system overnight.
@karwosts : ok, thanks. i wait this....Good job
Thanks for your efforts @karwosts 😊
This morning I edit my automation yaml code and I was happy to see that the search problem is solved !
Thank you very much to all programmers that fix this bug ! Great work !