Sitemap Chart show accumulated time in hours

I have an item which shows accumulate time on my robot vacuum’s brush:

Number:Time consumableMain "Main Brush [%d h]" {channel="miio:vacuum:473b6a4548:consumables#main_brush_time"}

This shows up on my sitemap in hours since I am setting the format here in the label with [%d h].
image

However, when I use a sitemap chart like this:

Chart item=R2consumableMain legend=true service="influxdb" period=h refresh=6000 visibility=[Vac_Cons_Chart_Period==0]

I get a chart with the y axis in seconds. I can’t figure out how to change the units on the chart. Anyone know how to do this?

Just set a unit to your item, it will then be used for persisting the item state. Second is just the default unit for a number with time dimension.

Number:Time consumableMain “Main Brush [%d h]” {channel=“miio:vacuum:473b6a4548:consumables#main_brush_time”, unit=“h”}.

1 Like

Worked perfectly. Thank you!