openHAB 4.2 Release Discussion

There has been a problem with Ephemeris up to 4.2.0 M3, but this is gone since M4 and 4.2.0 release version.
isBankHoliday() works fine for me in a managed rule. So no, it is not a bug, given that you are using a version later than M3.

Compared to your config file, mine has a revision L“9“ - no clue what that difference means in detail.

You can now with 4.2, each button can be either stateful or stateless.

1 Like

Oh, really? In the docs I read “ buttons never appear as selected, they do not display the current state of the linked Item.”
How can I accomplish the current state is shown? Where can I find this kind of information? I think it was not in the release notes or did I overlook something?

In the blog:

Ok, thanks. The revision seems to be just counting up everytime I change something via Main UI.
I tried deleting everything related to ephemeris and saved settings once again via Main UI, but this didn’t work either. It just recreated the ephemeris.config file.
As I seem to be the only one having issues with that, I guess that’s a problem of my setup.
I will investigate further and maybe open up another thread with my findings.

You have to be clairvoyant to know “ Element Type ‘Button’” has something to to with Buttongrid because it is presented as a new element.
But nevermind, I check this out. Thanks for pointing me in the right direction.

Sadly multiple problems with Buttongrid.
The option with extra defined Buttons to show the state, gives an totally empty interface in IOS app (no errors when saving Sitemap). On browser it shows the buttons ok. However when making the window smaller, the buttons dissapear on the right side instead of making them smaller. Impossible (as far as I can see) to put a label and icon in front (on the same line) as the buttons.
It would be so easy and convenient when the already present mapping-function would be repaired so there fit more buttons on one line as it was before.

1 Like

I checked the behaviour of the problematic mapping-function again. It appears the margins left of the first button is too large. The button on the second row would fit easily on the first line; even without reducing the button-width. See screenshot below.


And why not making the buttons smaller (or adjustable)?

AFAIK, Buttongrid isn’t yet supported on iOS. At the moment, it’s looking for a volunteer to add this feature.

Ah, that explains why it is not working. Thanks.

@GeVaSta I’m working on improving the buttons layout. See the last screenshot here:

If you can paste your sitemap there, I can use it for testing. Also I can post a test jar there for you to try.

Sure I can. It is obvious in my native language Dutch.
I thought it would be better to remove some parts from the sitemap for a better overview. Tomorrow I will post it.
Thank you very much that you are willing to look into it. It wondered me the maintainer was not in the mood to have a look. Probably he did not need the mappings on one line for his own project.

@ JimT.
Here is my sitemap to test the mappings with less wasted space.
You can check out the “Afzuiging RFTco²” label with the 5 buttons and the " Speakers" label. Here the waste of space is very clearly visible.
It is about the wasted space inside the button and even more the wasted space left and right of the line of buttons. I have renamed the sitemap from “mappingtest.sitemap” to “mappingtest.sitemap.txt” to be able to upload the sitemap as a file.
mappingtest.sitemap.txt (87.1 KB)

Could you post this / continue this discussion on the github PR link I posted above? I’ll post a link on github to a jar for you to try on your system. Here’s what it looks like with my PR:

I never knew there was more discussion about this issue until I read this Github discussion :grinning:
I saw the Github jar is version 4.2, I am on release 4.2. Can I still test the new jar? If yes, how can I load this specific addons-jar? When I do a bundle:start org.openhab.ui.basic, it loads the default and not the new.

The jar is built for openhab 4.3-snapshot but you can use it on 4.2.

openhab> list -s | grep openhab.ui.basic                                                          
323 │ Resolved  │  80 │ 4.3.0.202407261305    │ org.openhab.ui.basic
327 │ Active    │  80 │ 4.3.0.202407290448    │ org.openhab.ui.basic

The lower numbered (and lower version) addon is the built in one - you can easily identify yours because it will say 4.2.0.xxxxx.

To use the new jar, just type

openhab> stop 323; start 327

Use the actual bundle ids reported in the list command above.

Thats clear. Thanks. I tested and answered on Github.

After updating from OH 4.1.3 to 4.2, now the value of a switch item appears on the sitemap (iOS app).
Before, it was replaced by the switch items.
Any possibility to hide it?

Switch item=gChartIntervall2 label="" icon="deadline" mappings=[1="aktuell",2="Woche",3="Jahr"]

Try

Switch item=gChartIntervall2 label="[]" icon="deadline" mappings=[1="aktuell",2="Woche",3="Jahr"]

Greets

1 Like