Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Mareketplace] Load rule template from file #4450

Open
rkoshak opened this issue Nov 14, 2024 · 0 comments
Open

[Mareketplace] Load rule template from file #4450

rkoshak opened this issue Nov 14, 2024 · 0 comments
Labels
enhancement An enhancement or new feature of the Core

Comments

@rkoshak
Copy link

rkoshak commented Nov 14, 2024

Rules can be loaded in JSON format from the $OH_CONF/automation folder. However, rule templates can only be loaded from a live marketplace posting.

This makes development and testing of rule templates slow, error prone, and frustraiting because the only way to install and test changes is to:

  1. make the change to the template
  2. update the marketplace posting
  3. remove the installed template
  4. force refresh the browser running MainUI since sometimes it doesn't pick up the changes right away
  5. add the tempalte back
  6. instantiate a rule using the template

And of course this is all out in the open meaning there's a chance someone might install the template while it's under development since it has to be posted to the mareketplace in order to load it, even for testing.

This proposal is to allow the loading of a rule template, preferably in YAML format as is expected by the Marketplace itself, from a file in $OH_CONF/automation (maybe a templates subfolder?). The ability to develop and test rule templates locally will greatly enhance the experience.

Your Environment

  • Version used: (e.g., openHAB and add-on versions) OH 4.3 M4
  • Environment name and version (e.g. Chrome 111, Java 17, Node.js 18.15, ...):official Docker
  • Operating System and version (desktop or mobile, Windows 11, Raspbian Bullseye, ...): Docker running on Ubuntu 24.04
@rkoshak rkoshak added the enhancement An enhancement or new feature of the Core label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature of the Core
Projects
None yet
Development

No branches or pull requests

1 participant