I just want to change items color in sitemap if they was update long times ago. For example if item updated more than 100 min ago i want to set gray color.
I use in sitemaps this variant:
Text item=Bath_Tmp label="Температура в ванной [%.2f °C]" icon="temperature" valuecolor=[Bath_Last_Upd=="Uninitialized"="gray",Bath_Last_Upd>100="gray"]
and this rule:
rule "Records last lodge update time"
when
Item Bath_Humi received update or Item Bath_Humi received update
then
postUpdate(Bath_Last_Upd, new DateTimeType())
end
I found somwhere this example,but i am not sure this is correct and work: Bath_Last_Upd>100=“gray”/
Not going to work like that, Item will have a state like 2018-01-03T11:36:40.000+0100
I’d do it with a second Switch type Item instead. Install expire binding and configure this Item to expire to OFF after 100 mins. Modify your rule to update Switch Item ON when bath Item updated. Look for Switch on or off to do your valuecolor.
I have a some sensors that not online every time and i just want if some time (1 hour for example) no new data received the linked item become NULL or UNDEF. This is i want to see data in charts. If i have no new data and no data in chart. Now in chart i see horisontal line with last value.
Thank you.
Now i use in sitemaps this method:
Chart item=Temperature_Chart period=D service=“rrd4j” refresh=30000 visibility=[Weather_Chart_Period==1]and my chart is: