Closed apella12 closed 3 months ago
After further work, I do not think the state of the code tab is causing the problem. I was able to Add a config to an existing channel, no problem even with the state of the code tab. I'm guessing that when a config is removed it is not fully removed and so have to delete the thing and rescan. Will add issue to addons repository. Sorry for the confusion. It looked like an issue
The problem
I have been testing some HA configs in OH from Zwave-js-ui. They work fine. However, they are displayed on the UI code tab with errors. The impact is that changes (like removing a config from the thing) are not automatic. I had to delete the thing and rescan to pick up the changes. Restarting OH had no effect.
Result:
Expected behavior
Would expect that an imported HA configuration would display on the UI code tab without errors. My guess is that the config is split-up to fit a certain field size on the UI code tab and that causes the errors. Maybe that cannot be fixed?
Steps to reproduce
Your environment
Note this is a test environment and I am using a snapshot that handles most empty values in HA configs.
Browser console
Browser network traffic
Additional information
I did post on the forum and it was suggested this could also be the way the Mqtt binding imports these configs that leads to the code tab errors. If in your opinion this issue needs to be moved to addons, let me know
FWIW above the Code tab can be edited to clear the errors. (kind of a PITA with dozens of configs)