-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
Improve documentation wrt to support for checking receivedCommand in Rule Builder #400
Comments
You can use Seems like we need to improve the docs to make that more clear. |
Thanks, I totally missed that.
To be honest, if this is the list that should be made more clear, I still don't fully understand how to read it. I get it now that |
I think those docs need some enhancements, TBH I haven't worked much on them, they are from the time before I maintained this library. |
Closes openhab#400. Signed-off-by: Florian Hotze <[email protected]>
Closes openhab#400. Signed-off-by: Florian Hotze <[email protected]>
Closes #400. Signed-off-by: Florian Hotze <[email protected]>
Better with #411? |
Yes, perfect! 👍 Thanks. |
I just uncovered a bug in one of my rules that I migrated from DSL to JavaScript some time ago.
The setup is something like this:
Item:
The DSL rule:
And the part of a rule restarting the timer:
Now, the rule having the bug which was driving me crazy:
And the bugfixed version:
The real rule has multiple triggers, so actually had to check the item as well:
After reading the documentation, the mistake in my migration from DSL to JavaScript became obvious, but nevertheless, I'm wondering if it would make sense - and is feasible - to support providing the command in the Rule Builder Trigger? I.e. so that it would be possible to use
.receivedCommand("OFF")
(as an example).Your Environment
The text was updated successfully, but these errors were encountered: