I have this in my sitemap
Frame label=“Temperature” {
Text item=Door_Temperature
Switch item=Temperature_Chart_Period icon=“temperature” label=“Chart Period” mappings=[0=“Hour”, 1=“Day”, 2=“Week”]
Chart item=Temperature_Chart period=h refresh=300 visibility=[Temperature_Chart_Period==0, Temperature_Chart_Period==“Uninitialized”]
Chart item=Temperature_Chart period=D refresh=1800 visibility=[Temperature_Chart_Period==1]
Chart item=Temperature_Chart period=W refresh=3600 visibility=[Temperature_Chart_Period==2]
}
I am hoping I can choose the switch and it shows the appropriate chart.
The switch seems to do nothing and all charts are always shown.
Can someone tell me where I have the wrong syntax?
Thanks
Andrew
found the answer here:
I have a problem with a switch, where mapping worked briefly, then went back to looking like a normal switch again.
It is defined like this, and at first it had three buttons, Hour, Day, and Week, but for some reason it went back to looking like a switch, but only in the browser, in the android app it got the three options.
Switch item=Temperature_Chart_Period label="Period" icon="chart" mappings=[0="Hour", 1="Day", 2="Week"]
The next problem with that, is that the three charts it should to…
Dibbler42
(Thomas Bail)
October 26, 2015, 12:03pm
#3
This should work. I have build the same logic.
Items
Number Ch_Vt_ChartIntervall "Anzeigeintervall" <sysChart>
and sitemap like your example. Maybe you Temperature_Chart_Period is not defined as a number in the items file
Thomas