[SOLVED] Sitemap visibility problem

Dears,
I have a problem into my sitemap where I have 2 components (SamsungAC_TempSet_Monolocale and ) that I want set visible in alternate mode in function of the status of a specific switch (SamsungAC_Power_Monolocale)

sitemap home label="Casa" {
        Frame label="Samsung AC" {
                Switch          item=SamsungAC_Power_Monolocale
                Setpoint	item=SamsungAC_TempSet_Monolocale icon="heating" minValue=16 maxValue=30 step=1 visibility=[SamsungAC_Power_Monolocale == ON]
				Text		item=SamsungAC_TempSet_Spento icon="heating" visibility=[SamsungAC_Power_Monolocale == OFF]
                Text            item=SamsungAC_Temp_Monolocale 
                Switch          item=SamsungAC_Power_Sala
                Text            item=SamsungAC_Out_Sala
		Switch          item=SamsungAC_Power_Soggiorno
                Text            item=SamsungAC_Out_Soggiorno
		Switch          item=SamsungAC_Power_Camera
                Text            item=SamsungAC_Out_Camera
		Switch          item=SamsungAC_Power_Cameretta
                
	}
}

If I turn ON (or OFF) SamsungAC_Power_Monolocale there is not changes on the site, but if I press F5 on browser the visibility change according the visibility settings.

For update the visible status of my components I must always manually refresh the site… I’m using Chrome. (In Edge the visibility settings not working.)

Can you help me please?

What openHAB version are you running ?
Visibility handling was recently partially broken but has been fixed in the last snapshot.

I’m using 2.2.0…

I checked with 2.2.0 and 2.3.0 #1285 and it works.
What is the name of you sitemap.file?

This is my sitemap

// *** HOME SITEMAP ***

sitemap home label="Casa" {
        
        Frame label="Illuminazione" {
                Switch item=ILL_MON_CUCINA icon="light"
                Switch item=ILL_MON_SALOTTO icon="light"
        }
        
        Frame label="Samsung AC" {
                Switch          item=SamsungAC_Power_Monolocale
                Setpoint	item=SamsungAC_TempSet_Monolocale icon="heating" minValue=16 maxValue=30 step=1 visibility=[SamsungAC_Power_Monolocale == ON]
                Text            item=SamsungAC_Spento_Monolocale visibility=[SamsungAC_Power_Monolocale == OFF]
                Switch          item=SamsungAC_Power_Sala
                Text            item=SamsungAC_Out_Sala
		Switch          item=SamsungAC_Power_Soggiorno
                Text            item=SamsungAC_Out_Soggiorno
		Switch          item=SamsungAC_Power_Camera
                Text            item=SamsungAC_Out_Camera
		Switch          item=SamsungAC_Power_Cameretta
                Setpoint	item=SamsungAC_Power_Cameretta	label="Temperatura" icon="heating" minValue=16 maxValue=30 step=1
	}
}

my item file is:

// *** SAMSUNG AC ITEMS ***

// Monolocale
Switch      SamsungAC_Spento_Monolocale "Spento" <heating>
Switch      SamsungAC_Power_Monolocale "Monolocale" <temperature>
Number  	SamsungAC_Temp_Monolocale "Temperatura rilevata [%.1f °C]"
Number  	SamsungAC_TempSet_Monolocale "[%.1f °C]"
Switch      SamsungAC_Monolocale {channel="exec:command:samsungac_monolocale:run"}
String      SamsungAC_Args_Monolocale {channel="exec:command:samsungac_monolocale:input"}
String      SamsungAC_Out_Monolocale {channel="exec:command:samsungac_monolocale:output"}

thanks

Sorry,

home.sitemap

Have you restarted openHAB?
Try with a reduced configuration

sitemap home label="Casa" {
   Switch   item=SamsungAC_Power_Monolocale
   Setpoint item=SamsungAC_TempSet_Monolocale icon="heating" minValue=16 maxValue=30 step=1 visibility=[SamsungAC_Power_Monolocale == ON]
   Text     item=SamsungAC_Spento_Monolocale visibility=[SamsungAC_Power_Monolocale == OFF]
}

Solved problem with restart.
Thanks!!!