-
-
Notifications
You must be signed in to change notification settings - Fork 431
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
Dynamic Profiles #2201
Comments
It is possible to define a profile using Python or JavaScript or Groovy. Access to all the core parts of openHAB needed to define and register the profile are exposed to them. I've seen an example which I just simply cannot find at the moment. I think maybe it was in an Issue in one of the github repos. Silly me, it's part of my own library's repo. https://github.com/rkoshak/openhab-rules-tools/tree/main/multi_press |
Thanks, I didn't know that yet! I'll give that a try and may write some documentation about that possibility. |
I also think the JSR223 way is better then introducing a new DSL for profiles. |
I'd love to see a ScriptProfile! That would make it much more accessible to regular users. |
FYI I now have script-defined profiles implemented in a pre-release of the openhab-jrubyscripting helper library. You can check out the docs with an example at https://ccutrer.github.io/openhab-jrubyscripting/OpenHAB/DSL.html#profile-class_method. If you have a preference for a particular other language (javascript?) I'm sure you could pester the maintainer of the helper library for that language to get a similar implementation. |
Can this be closed now that #3292 got merged? |
I ran across this looking for something else. Yes @wborn, this can and should be closed. |
I'd like having dynamic profiles that can be defined just as rules at runtime via textual configuration and/or UI. This would mean that you could have something like this in your config folder:
profiles/mybuttonprofiles.profile
I'll put a bounty of 200 EUR on this which expires at 31/12/21 - DOD for the bounty would be to have a reviewed PR for adding textual configuration of profiles via xtext including support for parametrized profiles :) I don't use BountySource anymore as I really don't like their fee policy, also the website often does not work correctly - until I found a better platform, you just have to trust me :/
The text was updated successfully, but these errors were encountered: