Is there a way to change the label of an UI Transformations?

Just like the title says. I’ve created some transformations in the UI but I cannot seem to find a way to change a typo in the label. I can only find the delete option.

Is there a way to change it through the UI? Or do I have to recreate the transformation with a correct label?

What do you mean by UI Transformation?

Whatever you configured, it should be possible to change it the same way you did the configuration. If done via UI, you could also use the code view to change it in yaml style code.

I meant the transformations created in the UI through Settings > Transformations.

I created a JS transformation over there. I don’t see the yaml code. When I click on the transformation, it shows me the JS code I wrote.

Not through the UI unfortunately.

But you should be able to through the API explorer. GET the transformation using it’s UID, copy the JSON, paste that into the PUT end point, edit the label and execute the PUT.

An alternative approach is to stop OH and edit the JSONDB manually.

Please file an issue on this on openhab-webui though. The label should be editable from the UI.

Actually yes, there is. It’s just not very well marked.

When you open up the transform page and see the code of the transform, in the bottom right of the page there is a small blue chevron. Click on that and you will bring up the bottom panel with the transform label and UID (that’s also where the link to remove the transform is).

image

An issue might still not be a bad idea just to request that this be made a little more clear (it looks like just part of the docs link). You are not the first to miss this and it’s on more than just the transform page.

1 Like

:smiley: Wonderful Justin! I would not have found this by myself at all, it really is hidden! And I’ll make sure to check for the chevron on other pages too :wink: