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
}
}
}
}
}
}