Grafana - on/off and %

Hi,

I want to create a Grafana Dashboard including inside and outside himidity and also the status of a fan.
So far I got this, humidity is working fine but the problem is with the fan as it only has status 0 and 1 and grafana only display a point when the status changes.

Is there a way to display that an on / off status in an % diagram?

br

There’s an option to fill in connections between points. Also you should plot your fan status on a secondary y axis so you can see it better. A value of 1 is not going to plot well on an axis with a maximum of 100.

From the Grafana FAQ:

You can switch any series to the second y axis by clicking on the colored line to left of the series name in the legend below the graph. Alternately, use the “Display Styles” > “Series Specific overrides” to define an alias or regex + “Y-axis: 2” to move metrics to the right Axis

In display options of the graph panel there is a option named null value that controls how null values are to be draw, set to connected to ignore null values

Thanks, I added a a math (* 100) to the select, so that the 0/1 became 0 and 100 and used fill(previous) so that the dots are connected. Now it looks like

nice!