Chart in sub menu

Hi, I have some subpages in my sitemap.

Frame label="Testseite" {
        Text label="Testseite" icon="keyring" {
Frame label="Motion Lux" {
	Frame label="Lux Alle" {
		Chart item=gMotion_Lux period=8h refresh=30000
		} 
etc...

It is displayed correctly in the browser.

In the playstore openhab App the Charts title is visible but no graphics:

In the latest beta there are no titles and no graphics…

Is this a Bug?

Greets

No, it’s not a bug. You can’t put a frame in a frame. It’s normal behaviour.

Frame label="Testseite" {
        Text label="Testseite" icon="keyring" {

Text label="Motion Lux" {
	Frame label="Lux Alle" {
		Chart item=gMotion_Lux period=8h refresh=30000
		} 
}

Think this will work :slight_smile:

As you see it works in the browser…
:man_shrugging:t3:

It works without a frame as well, like:

Text label="Testseite" icon="keyring" {
		Chart item=gMotion_Lux period=8h refresh=30000
		}

At least for me on a browser as well as in the app.

That doesn’t look good.
It works in the browser. Not in the app.

correct, that’s my experience too, in the browser it just works, but when you check you log files, you should see this:

2021-04-26 09:23:27.649 [INFO ] [org.openhab.core.model.core.internal.ModelRepositoryImpl] - Validation issues found in configuration model 'geavanceerd.sitemap', using it anyway:

Frames must not contain other frames

What Opus says is also true, that also works, but if you want to group things a bit more, [Frame] > [Text] > [Frame] >[ Text] > etc. is the oppropriate way :slight_smile:

I have more items in this ‘testseite’. I think the grouping with the frames is already good.

I just wanted to mention the charts in this constellation are not displayed correctly in the app.

I can live with that.
Greets

Yes, it works with frame - text - frame - text.

Frame label="Testseite" {
        Text label="Testseite" icon="keyring" {
            
	Frame label="Motion Lux" {
	Text label="Lux Alle" icon=none
		Chart item=gMotion_Lux period=8h refresh=30000 
	}

This works…

Looks different than before but is also ok :wink::grin:
Thanks

1 Like