Sitemap Visibility only Working after page refresh

I have a sitemap with 2 selection items, the value of the first selection item impacts the visibility of the second.

It will show the second selection dynamically when changed, but it will not hide it until I refresh the page or navigate away and back.

Frame label="Living Room" { 
Switch label="Power" item=russound_zone_e5e8cc7a_1_1_status
Slider label="Volume" item=russound_zone_e5e8cc7a_1_1_volume
Selection label="Source" item=russound_zone_e5e8cc7a_1_1_source mappings=[0="Various",1="Tuner",2="Chromecast 1",3="Chromecast 2"]
Selection label="Tuner Preset" item=russound_tunerPreset mappings=[1="Big 105",2="Real Country",3="The Drive",4="Zed 99",5="Kraze 101.3",6="X 100.7",7="Sunny 94"] visibility=[russound_zone_e5e8cc7a_1_1_source==1]
Text label="More Settings" icon="none" {
Frame label="Living Room Audio Settings" icon="none" {
Slider label="Turn On Volume" item=russound_zone_e5e8cc7a_1_1_turnonvolume
Switch label="Loudness" item=russound_zone_e5e8cc7a_1_1_loudness
Switch label="Paging" item=russound_zone_e5e8cc7a_1_1_page
Text label="Do Not Disturb" item=russound_zone_e5e8cc7a_1_1_donotdisturb
}
}
}

I have seen a lot of people with this issue and it seems to come down to formatting sometimes. Here is my entire sitemap (for testing). It is ugly because I use a code generator tool to generate the sitemap.


sitemap default label="Home" { 
	Frame label="Home Audio" {
		Text label="All Controls" icon="none" {
			Frame label="Master Power" {
				Switch label="Power" item=zwave_device_660ca7c1_node23_switch_binary
			}

			Frame label="Living Room" { 
Switch label="Power" item=russound_zone_e5e8cc7a_1_1_status
Slider label="Volume" item=russound_zone_e5e8cc7a_1_1_volume
Selection label="Source" item=russound_zone_e5e8cc7a_1_1_source mappings=[0="Various",1="Tuner",2="Chromecast 1",3="Chromecast 2"]
Selection label="Tuner Preset" item=russound_tunerPreset mappings=[1="Big 105",2="Real Country",3="The Drive",4="Zed 99",5="Kraze 101.3",6="X 100.7",7="Sunny 94"] visibility=[russound_zone_e5e8cc7a_1_1_source==1]
Text label="More Settings" icon="none" {
Frame label="Living Room Audio Settings" icon="none" {
Slider label="Turn On Volume" item=russound_zone_e5e8cc7a_1_1_turnonvolume
Switch label="Loudness" item=russound_zone_e5e8cc7a_1_1_loudness
Switch label="Paging" item=russound_zone_e5e8cc7a_1_1_page
Text label="Do Not Disturb" item=russound_zone_e5e8cc7a_1_1_donotdisturb
}
}
}
			Frame label="Kitchen" { 
Switch label="Power" item=russound_zone_e5e8cc7a_1_2_status
Slider label="Volume" item=russound_zone_e5e8cc7a_1_2_volume
Selection label="Source" item=russound_zone_e5e8cc7a_1_2_source mappings=[0="Various",1="Tuner",2="Chromecast 1",3="Chromecast 2"]
Selection label="Tuner Preset" item=russound_tunerPreset mappings=[1="Big 105",2="Real Country",3="The Drive",4="Zed 99",5="Kraze 101.3",6="X 100.7",7="Sunny 94"] visibility=[russound_zone_e5e8cc7a_1_2_source==1]
Text label="More Settings" icon="none" {
Frame label="Kitchen Audio Settings" icon="none" {
Slider label="Turn On Volume" item=russound_zone_e5e8cc7a_1_2_turnonvolume
Switch label="Loudness" item=russound_zone_e5e8cc7a_1_2_loudness
Switch label="Paging" item=russound_zone_e5e8cc7a_1_2_page
Text label="Do Not Disturb" item=russound_zone_e5e8cc7a_1_2_donotdisturb
}
}
}
		}	
   }

}

Is your file named default.sitemap?

Did you restart openHAB after changing the sitemap?

This is your sitemap, properly formatted :wink:

sitemap default label="Home" { 
    Frame label="Home Audio" {
        Text label="All Controls" icon="none" {
            Frame label="Master Power" {
                Switch label="Power" item=zwave_device_660ca7c1_node23_switch_binary
            }
            Frame label="Living Room" { 
                Switch label="Power" item=russound_zone_e5e8cc7a_1_1_status
                Slider label="Volume" item=russound_zone_e5e8cc7a_1_1_volume
                Selection label="Source" item=russound_zone_e5e8cc7a_1_1_source mappings=[0="Various",1="Tuner",2="Chromecast 1",3="Chromecast 2"]
                Selection label="Tuner Preset" item=russound_tunerPreset mappings=[1="Big 105",2="Real Country",3="The Drive",4="Zed 99",5="Kraze 101.3",6="X 100.7",7="Sunny 94"] visibility=[russound_zone_e5e8cc7a_1_1_source==1]
                Text label="More Settings" icon="none" {
                    Frame label="Living Room Audio Settings" icon="none" {
                        Slider label="Turn On Volume" item=russound_zone_e5e8cc7a_1_1_turnonvolume
                        Switch label="Loudness" item=russound_zone_e5e8cc7a_1_1_loudness
                        Switch label="Paging" item=russound_zone_e5e8cc7a_1_1_page
                        Text label="Do Not Disturb" item=russound_zone_e5e8cc7a_1_1_donotdisturb
                    }
                }
            }
            Frame label="Kitchen" {
                Switch label="Power" item=russound_zone_e5e8cc7a_1_2_status
                Slider label="Volume" item=russound_zone_e5e8cc7a_1_2_volume
                Selection label="Source" item=russound_zone_e5e8cc7a_1_2_source mappings=[0="Various",1="Tuner",2="Chromecast 1",3="Chromecast 2"]
                Selection label="Tuner Preset" item=russound_tunerPreset mappings=[1="Big 105",2="Real Country",3="The Drive",4="Zed 99",5="Kraze 101.3",6="X 100.7",7="Sunny 94"] visibility=[russound_zone_e5e8cc7a_1_2_source==1]
                Text label="More Settings" icon="none" {
                    Frame label="Kitchen Audio Settings" icon="none" {
                        Slider label="Turn On Volume" item=russound_zone_e5e8cc7a_1_2_turnonvolume
                        Switch label="Loudness" item=russound_zone_e5e8cc7a_1_2_loudness
                        Switch label="Paging" item=russound_zone_e5e8cc7a_1_2_page
                        Text label="Do Not Disturb" item=russound_zone_e5e8cc7a_1_2_donotdisturb
                    }
                }
            }
        }
   }
}

Do try it out in both BasicUI and ClassicUI.

@rossko57
It works in BasicUI through a browser, but not in the phone app.

I have rebooted the system and also my audio controller multiple times with no luck.

For clarity I am on snapshot 2.3.

Thanks

The android app, perhaps?

There is currently some ongoing work for visibility fixes

1 Like

Yes exactly, I will wait for the next release.