You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#The problem
I find myself reposting some of the same transformation scripts to the forum over and over (e.g. split a number into DD:HH:MM:SS, filter out changes that are too small, unit conversions not supported by UoM, etc.).
#Your suggestion
Add a new category to the marketplace to install transformations similar to the way that rule templates can be installed.
I don't think these need to support properties like a rule template because arguments can be passed to them when they are applied. But if it's a no brainer to support that I'm sure we'll find a use for it. :-D
Would something like that work for you? It gets installed with the UID from the YAML. Since that is just a string, one could also edit it to use a more "useful" name. The added transformation is not editable.
I think it's probably OK that the transform is not editable. Transforms are usually going to be short compared to a rule template so if it doesn't do what one wants, they can copy/paste/edit themselves.
The YAML looks good. Nice and simple.
When you say "edit it to use a more useful name" do you mean the author of the transformation can change that or that the end user can change it? Either is reasonable in my book, I just want clarification.
All transformation types are supported or only some? I really only expect to see Script transformations published but who knows what people will come up with. Maybe there's a hidden demand for Map transformations. So the type filed is the language of the transformation for sure based on that example, but if it's not a Script would I use "map"?
Thanks a bunch for working on this! I'm really looking forward to having this new feature!
Regarding the name: This uid is used excatly like it is in the YAML (or JSON, you can also use JSON). So the "developer" of the transformation can set it.
#The problem
I find myself reposting some of the same transformation scripts to the forum over and over (e.g. split a number into DD:HH:MM:SS, filter out changes that are too small, unit conversions not supported by UoM, etc.).
#Your suggestion
Add a new category to the marketplace to install transformations similar to the way that rule templates can be installed.
I don't think these need to support properties like a rule template because arguments can be passed to them when they are applied. But if it's a no brainer to support that I'm sure we'll find a use for it. :-D
Issue for MainUI is openhab/openhab-webui#2239 (comment)
The text was updated successfully, but these errors were encountered: