Plot-Widgets

plot.comfortchart plot.gauge plot.heatingcurve plot.period plot.pie plot.rtr plot.temprose plot.xyplot


plot.rtr

A temperature-chart for use with an rtr. Plots actual and set temperature. If the state is given it will be shown as pie.

Parameters
{{ plot.rtr(id, item_actual, item_set, item_state, count, tmin, tmax, state_max) }}
id
unique id for this widget (optional)
item_actual
series of an item for the actual-temperature
item_set
series of an item for the set-temperature
item_state
series of an item for the state of the actor. This is shown as percental value within the pie. (optional)
count
number of samples (points) (optional, default 100)
tmin
the minimum time (x-axis) (duration-format, default: '1d')
tmax
the maximum time (x-axis) (duration-format, default: 'now')
state_max
maximum value (or type) of the item for the state of the actor (optional, default: guessed according to values)
Often used values are 1 for boolean items, 100 for percentages, 255 for 1-byte values.
Additionally you may pass 'on' to use backend's 'on' function (caution: not all backend databases do support this).
Please note

This plot uses historical data series. Not all backends/drivers do support this.

Example
{{ plot.rtr('', 'bath.plot.temp_actual', 'bath.plot.temp_set', 'bath_plot_state') }}
{{ plot.rtr('', 'bath.plot.temp_actual', 'bath.plot.temp_set', 'bath_plot_state', '50', '3d', 'now', 'on') }}

room temperature plot

plot for 3 days with less datapoints, using backend's on function for state

Widgets

Design

Misc