-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[actiontemplatehli] Initial contribution #12260
Conversation
ae5a65a
to
b52434b
Compare
ae9b4fa
to
6065ed7
Compare
@lolodomo I think the initial version is ready in case you want to give it a try, for me it work pretty well using Spanish. |
I think is not possible to expose actions from this kind of add-on, I will let that for the future. |
8c97a14
to
2b53529
Compare
Signed-off-by: Miguel Álvarez Díez <miguelwork92@gmail.com>
2b53529
to
5506d4f
Compare
when you have time, it's ready for review! |
This pull request has been mentioned on openHAB Community. There might be relevant details there: |
Signed-off-by: Miguel Álvarez Díez <miguelwork92@gmail.com>
@lolodomo, can you remove the work in progress label? Thank you in advance. |
I have updated how getSupportedLocale works, and renamed the 'ruleMode' option to 'silence'. Let me know whenever you have time to start reviewing this one, and thanks for the effort. |
For this kind of situation I think you can use an action that matches groups with tag 'location' and filter the member targets by another tag that is only on the temperature items. This way the itemLabel will be the group name (room name). |
Right now you can add synonyms to the items and those will be also considered as valid values for the itemLabel placeholder. |
Signed-off-by: Miguel Álvarez <miguelwork92@gmail.com>
Ok, will try that. |
There are still few cases where you use a method parameter to set it to a new value inside the method. Except that, I will have to check again my old review comments (mainly relative to documentation and settings) and make if possible few tests. |
Signed-off-by: Miguel Álvarez <miguelwork92@gmail.com>
Signed-off-by: Miguel Álvarez <miguelwork92@gmail.com>
I didn't have that warning enabled on the IDE. |
@lolodomo, is there something pending in this one? |
Just one improvement to do in the documentation and a question to answer. I will not have time to test it today. I will merge today as soon as you will give a feedback to these 2 last comments. |
Signed-off-by: Miguel Álvarez <miguelwork92@gmail.com>
.../org/openhab/voice/actiontemplatehli/internal/configuration/ActionTemplateConfiguration.java
Show resolved
Hide resolved
Signed-off-by: Miguel Álvarez <miguelwork92@gmail.com>
Signed-off-by: Miguel Álvarez <miguelwork92@gmail.com>
...rc/test/java/org/openhab/voice/actiontemplatehli/internal/ActionTemplateInterpreterTest.java
Outdated
Show resolved
Hide resolved
...rc/test/java/org/openhab/voice/actiontemplatehli/internal/ActionTemplateInterpreterTest.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Miguel Álvarez <miguelwork92@gmail.com>
Thank you for the tests. |
Never added tests in a binding before, but they were really useful for me while implementing the latest features. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you
* [actiontemplatehli] initial contribution Signed-off-by: Miguel Álvarez <miguelwork92@gmail.com>
* [actiontemplatehli] initial contribution Signed-off-by: Miguel Álvarez <miguelwork92@gmail.com>
* [actiontemplatehli] initial contribution Signed-off-by: Miguel Álvarez <miguelwork92@gmail.com> Signed-off-by: Andras Uhrin <andras.uhrin@gmail.com>
* [actiontemplatehli] initial contribution Signed-off-by: Miguel Álvarez <miguelwork92@gmail.com>
* [actiontemplatehli] initial contribution Signed-off-by: Miguel Álvarez <miguelwork92@gmail.com>
NOTE: This interpreter was renamed from 'opennlphli' to 'actiontemplatehli' to avoid confusion.
This add-on adds an human language interpreter powered by openNLP that allows the user to define their own actions to read from items or send commands to them. Also supports to configure a fallback interpreter, so you can use this one just to complement another.
Aims to be compatible with all languages and assumes the action templates are written in the configured openHAB language.
Supported feature list and samples are provided on the readme.
I hope that the community find it useful, for me is a solution for the custom commands I wanted to add to the standard interpreter.