-
-
Notifications
You must be signed in to change notification settings - Fork 428
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] AND operator accepted in any condition + added optional conditional rules for icon #3759
Conversation
33bb38a
to
202600f
Compare
@openhab/android-maintainers For sitemap UIs, the only change to consider is that SSE events will now have a field |
I just realized that if icon rules are defined, the UI should then call the OH icon servlet without passing the item state. So the sitemap REST API should provide this information to UIs to allow distinguishing dynamic icon with rules from dynamic OH icon without rules. I will enhance that. |
FWIW, Android app already does that, see here
Why? Can't the servlet not figure that out by itself? It would be great if we made the icon logic not even more complex than it already is ;-) |
No because the icon servlet is fully independent of sitemap concept. |
202600f
to
e54b9e2
Compare
Done |
Are all 4 combinations of those 2 values valid? E.g. |
I am reverting the last change. The field "staticIcon" is sufficient. |
049fd57
to
733657f
Compare
Depends on openhab/openhab-core#3759 Signed-off-by: Laurent Garnier <[email protected]>
Depends on openhab/openhab-core#3759 Signed-off-by: Laurent Garnier <[email protected]>
Depends on openhab/openhab-core#3759 and openhab#1998 Signed-off-by: Laurent Garnier <[email protected]>
733657f
to
1be31f1
Compare
Depends on openhab/openhab-core#3759 and openhab#1998 Signed-off-by: Laurent Garnier <[email protected]>
Depends on openhab/openhab-core#3759 and openhab#1998 Signed-off-by: Laurent Garnier <[email protected]>
Depends on openhab/openhab-core#3759 and openhab#1998 Signed-off-by: Laurent Garnier <[email protected]>
1e78867
to
b95bcb6
Compare
b95bcb6
to
fb0ab17
Compare
fb0ab17
to
ff068bd
Compare
a32abb8
to
53abb23
Compare
802d554
to
fbbd35a
Compare
…ditional rules for icon Allow multiple conditions with AND operator in visibility/color/icon rules Closes openhab#3058 Also allow dynamic icon based on other item states. Allow dynamic icon even with non OH icon sources. Example: icon=[item1>0=temperature,==0=material:settings,f7:house] Related to openhab/openhab-webui#1938 Unit tests added or extended to cover the new features. Signed-off-by: Laurent Garnier <[email protected]>
fbbd35a
to
10d85f4
Compare
Regarding the ability to use multiple AND conditions, this is something fully handled by the core framework and there is nothing to change in sitemap UIs. And the sitemap syntax remains fully backward compatible. |
I am going to extract the feature about AND conditions in a separate PR. |
I close this PR. A new one will be opened. |
Allow multiple conditions with AND operator in visibility/color/icon rules
Closes #3058
Also allow dynamic icon based on other item states.
Allow dynamic icon even with non OH icon sources.
Example: icon=[item1>0=temperature,==0=material:settings,f7:house]
Related to openhab/openhab-webui#1938
Unit tests added or extended to cover the new features.
Signed-off-by: Laurent Garnier [email protected]