How to remove or edit widget without UI?

I accidentally broke Main UI by adding ‘//’ in custom widget yaml file
Now I’m getting error in browser console:

Failed to execute ‘setAttribute’ on ‘Element’: ‘// title’ is not a valid attribute name.

Is it possible to remove or edit custom widget through file system, db, etc.?
Thanks!

Welcome to the forums Andrew.

Yes, it is possible. Json formatted files for most OH info are found the the ./userdata/jsondb folder. In this case the file you are looking for is the uicomponents_ui_widget.json. BEFORE you try this, check out the Editing the JSONDB, a last resort section of the Rich’s post here for some safety tips:

2 Likes

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.