Bug on OH4 Sitemap - Video visibility - resize buttons escaping the condition

Hi I am migrating over to OH4 and i got up to a road bump.

Below is the snippet of sitemap frame that works fine on OH2.5, it chooses a video feed, and hides other entries.

Frame label=“Kamere”
{
Switch item=Izbor_Kamere icon=“camera” mappings=[1=“Sp”, 2=“Zg”, 3=“Ga”, 4=“Ra”, 5=“Vh”, 6=“Za”, 7=“Tc”,8=“Nič”]
Video url=“http://192.168.1.10:9000” encoding=“mjpeg” visibility=[Izbor_Kamere==1]
//Video url=“http://192.168.1.10:9001” encoding=“mjpeg” visibility=[Izbor_Kamere==1]
Video url=“http://192.168.1.10:9002” encoding=“mjpeg” visibility=[Izbor_Kamere==2]
Video url=“http://192.168.1.10:9003” encoding=“mjpeg” visibility=[Izbor_Kamere==3]
Video url=“http://192.168.1.10:9004” encoding=“mjpeg” visibility=[Izbor_Kamere==4]
Video url=“http://192.168.1.10:9006” encoding=“mjpeg” visibility=[Izbor_Kamere==5]
Video url=“http://192.168.1.10:9007” encoding=“mjpeg” visibility=[Izbor_Kamere==6]
Video url=“http://192.168.1.10:9009” encoding=“mjpeg” visibility=[Izbor_Kamere==7]
}

On OH4 there is an bug within visibility setting as the video resize buttons are escaping the condition of visibility. I see bunch of empty items listed on sitemap with only resize buttons.

It actually clutters up the sitemap badly, so the fix is needed.

The OH4 sitemap screenshot

Solutions appriciated

Cheers
Matej

I believe I found the cause just by reading the code, one line code is missing for MJPEG video. I will provide the fix during the next weekend.

Thanks, that sounds amazing.

Looks promising, but how do I upgrade to this fixed version?

Thanks

V V sob., 21. sep. 2024 ob 12:21 je oseba Lolodomo via openHAB Community <bot@community.openhab.org> napisala:

How do i install the specific version of basic UI?

Do i install testing version of OH or can i install new Basic UI seperately?

The easiest choice for you is first to wait for an approval of my fix by maintainers and then depending on how impatient you are, either install a 4.3 daily snapshot as soon as it will contain the fix or wait for next 4.2 official patch or 4.3 milestone.

Ok sounds great, Thanks

V V sre., 25. sep. 2024 ob 09:13 je oseba Lolodomo via openHAB Community <bot@community.openhab.org> napisala:

Fix is now merged and also backported to 4.2.x branch.
So it will be available in patch 4.2.2 that should be released soon.

Awesome, thanks for the update!

V sob., 28. sep. 2024, 23:00 je oseba Lolodomo via openHAB Community <bot@community.openhab.org> napisala:

Hi
Looks like the fix is working :smiley:, i am so greatefull, now it looks mint.

I just installed snapshot release as i have new mini PC i am building to replace the old gear.

Cheers