isoparme
(pol-henri Dupont)
March 13, 2020, 2:18pm
1
Hi, i’m wonder if whe can use “Selection” in “sitemap” to choose a list of Item.state .
for exemple
Selection item=TempSelection label="Temp Selection" mappings=[Item1.State="TempToday", Item2.State="TempYesterday"]
if yes someone can point me the right direction to realise this , especialy for Energy overview , like Yesterday , Last Week , Last month in place or additionally with graphical rrd4j
Many thanks in advance
H102
(CM6.5 H102)
March 13, 2020, 2:30pm
2
If you want a graph of your energy consumption for different times it may be best to create a separate sitemap for each time period.
I use different sitemaps, one for weather and one for control. IMHO it keeps things clean and easier to access.
Inquestion of a dynamic selection, no this isn’t possible. In question of different charts, see my sitemap snippet:
Text item=WeatherMinMax {
Setpoint item=Chart_Period step=1 minValue=1 maxValue=12
Chart item=Weather_Chart period=h refresh=10000 visibility=[Chart_Period==1]
Chart item=Weather_Chart period=4h refresh=10000 visibility=[Chart_Period==2]
Chart item=Weather_Chart period=8h refresh=10000 visibility=[Chart_Period==3]
Chart item=Weather_Chart period=12h refresh=10000 visibility=[Chart_Period==4]
Chart item=Weather_Chart period=D refresh=10000 visibility=[Chart_Period==5]
Chart item=Weather_Chart period=3D refresh=10000 visibility=[Chart_Period==6]
Chart item=Weather_Chart period=W refresh=10000 visibility=[Chart_Period==7]
Chart item=Weather_Chart period=2W refresh=10000 visibility=[Chart_Period==8]
Chart item=Weather_Chart period=M refresh=10000 visibility=[Chart_Period==9]
Chart item=Weather_Chart period=2M refresh=10000 visibility=[Chart_Period==10]
Chart item=Weather_Chart period=4M refresh=10000 visibility=[Chart_Period==11]
Chart item=Weather_Chart period=Y refresh=10000 visibility=[Chart_Period==12]
}
Chart_Period is defined as follows:
Number Chart_Period "Zeitraum [MAP(period.map):%s]"
and period.map is this:
1=1 Stunde
2=4 Stunden
3=8 Stunden
4=12 Stunden
5=24 Stunden
6=3 Tage
7=7 Tage
8=2 Wochen
9=1 Monat
10=2 Monate
11=4 Monate
12=1 Jahr
NULL=-
-=-
And this is the result:
2 Likes
H102
(CM6.5 H102)
March 13, 2020, 3:00pm
4
@Udo_Hartmann nice work, I may add something like this to my control sitemap for inside temp/humidity readings.
My separate weather sitemap is using DarkSky binding with much more info so for me, it’s easier to pull up the weather without having to scroll through all the control stuff.
isoparme
(pol-henri Dupont)
March 13, 2020, 9:19pm
5
Thanks for your help is amazing!
isoparme
(pol-henri Dupont)
March 16, 2020, 12:48pm
6
It work for me , also can i ask how do you do for showing 3 values in same time on your graph ?
“actual temp” , “Min temp” and “max temp” with color ? can you explain ? thanks again for your contribution
rossko57
(Rossko57)
March 16, 2020, 1:15pm
7
See the Chart docs, with reference to the use of a Group Item.
isoparme
(pol-henri Dupont)
March 16, 2020, 3:05pm
8
Thanks, is not easy to find where to learn about, here you help me to lookm on the ritgh direction thanks for the trick