We need to be able to graph boolean devices
*I think the best solution for logging of states is the following:
We have to decide how the values are plotted and logged. So we would have two types:
-
discrete values / states: don’t emit same values, draw horizontal lines from one data point to the next (states, enumerations, strings)
-
continuous values: emit same values, draw interpolate line (linear / cubic) between data points (temperature, humidity, …)
In practice we can simply decide from the attribute type the plotting type:
- number => continusly (like we are doing now)
- boolean, enum, strings => discrete values (will be available later)
But that does not work for variables devices well at the moment because it does not emit changes, if the value does not change. I will try to change that (didn’t think about logging here).*
As stated before here in pimatic/pimatic#262