-
-
Notifications
You must be signed in to change notification settings - Fork 429
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
[Sitemap] Add support for multiple AND conditions #3819
Conversation
Concerns labelcolor, valuecolor and visibility Also fix wrong positions of ")" in Sitemap.xtext Closes openhab#3058 Signed-off-by: Laurent Garnier <[email protected]>
This feature is fully handled by the core framework and there is nothing to change in sitemap UIs. And the sitemap syntax remains fully backward compatible. |
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, thanks.
Thank you Kai. |
@kaikreuzer @wborn : this requires a new build of core. I don't know if this requires a manual trigger or if the build will happen automatically during the night? |
Yes it will automatically start a build at 3 AM (CEST). |
Thank you for confirmation. |
@lolodomo Before this PR, visibility rules always required an item and comparator in the condition (unlike color rules). As you now made it the same as for color rules, this is no longer required by the grammar. Can I assume this will correctly be picked up and interpreted by the UI's as well, or is this just for simplifying the grammar? There is a check in the UI sitemap editor for the presence of item and comparator, generating a warning if not present. If this is no longer required, I can remove it. |
No problem with UIs, this Is in fact fully handled by the core framework. I made the change for simplification and consistency but also because the additional constraint for visibility rules (compared to color rules) seems to have no valid reason.
Yes |
Related to openhab/openhab-core#3819 Signed-off-by: Laurent Garnier <[email protected]>
* [sitemap] Combined conditions with AND Related to openhab/openhab-core#3819 Signed-off-by: Laurent Garnier <[email protected]> * Consider review comments Signed-off-by: Laurent Garnier <[email protected]> --------- Signed-off-by: Laurent Garnier <[email protected]>
Concerns labelcolor, valuecolor and visibility
Also fix wrong positions of ")" in Sitemap.xtext
Closes #3058
Signed-off-by: Laurent Garnier [email protected]