Caution

This is the documentation for the current development branch of the CometVisu. It is possible that some of the described features are not yet available in the current release.

Also there might be lots of errors in this documentation as some parts of the content have been translated by an online translation service.

The status widget

Author: Tobias Bräutigam
Available since: 2022

Description

The status widget combines an icon with a text. It is used to summarize status information, e.g. the number of open windows in the apartment. The status widget only occupies half the height of a standard widget.

../../../_images/cv-status.png
<cv-status format="%d open">
    <cv-icon slot="icon" size="x-large">knxuf-fts_window_1w_open</cv-icon>
    <cv-address slot="address" transform="DPT:5.010" mode="read">1/4/2</cv-address>
    <span slot="label">Windows</span>
</cv-status>

It must be specified with a <cv-address slot="address"> over which the value to be displayed is transmitted. In addition, a label can be added via <span slot="label">. The value can be formatted and supplemented with additional text via the format attribute.

It is also possible to adapt the icon via a mapping to display an icon for open or closed windows, depending on the value. An additional styling can be used to color the icon accordingly.

../../../_images/cv-status-closed.png
../../../_images/cv-status-opened.png
...
<cv-meta>
    <cv-mapping name="WindowOpen">
        <entry value="0">knxuf-fts_window_1w</entry>
        <entry range-min="1">knxuf-fts_window_1w_open</entry>
    </cv-mapping>
    <cv-styling name="OpenAlert">
        <entry range-min="1">red</entry>
    </cv-styling>
</cv-meta>
...
<cv-status format="%d open">
    <cv-value slot="icon" mapping="WindowOpen" styling="OpenAlert">
        <cv-icon size="x-large" class="value">knxuf-fts_window_1w_open</cv-icon>
        <cv-address transform="DPT:5.010" mode="read">1/4/2</cv-address>
    </cv-value>
    <cv-address slot="address" transform="DPT:5.010" mode="read">1/4/2</cv-address>
    <span slot="label">Windows</span>
</cv-status>

To achieve this a simple cv-icon is not used for the “icon” slot, but a cv-value with a cv-icon inside. This allows you to define a mapping/styling for this icon. To ensure that the value element uses the same values as the status element, the same cv-address element must be used here again.

To provide further details on the status, this widget can be linked to a popup. When clicking on the status widget, a popup opens with additional information.

Allowed attributes in the status element

Element

Attribute

Name

Content

Description

cv-status

styling

string

Change the color of the displayed value depending on its value. See also styling

mapping

string

Map the bus value to a different value, text or symbol for displaying. See also mapping

format

string

Formatting of the value (printf syntax).

visible-on

mobile or desktop

Controls this element’s visibility by screen size.

class

string

Add this value to the CSS class so that it can be formatted by a user provided style sheet.

style

string

Custom CSS style rules for this widget.

Allowed child elements and their attributes

Element

Attribute

Structure

Name

Content

Description

cv-status
  • cv-icon

size

small, large, x-large, xx-large or xxx-large

Defines the size of the icon.

color

string

Icon color.

visible-on

mobile or desktop

Controls this element’s visibility by screen size.

class

string

Add this value to the CSS class so that it can be formatted by a user provided style sheet.

style

string

Custom CSS style rules for this widget.

cv-status
  • cv-icon

    • #text

string

Element

Attribute

Structure

Name

Content

Description

cv-status
  • cv-value

styling

string

Change the color of the displayed value depending on its value. See also styling

mapping

string

Map the bus value to a different value, text or symbol for displaying. See also mapping

format

string

Formatting of the value (printf syntax).

visible-on

mobile or desktop

Controls this element’s visibility by screen size.

class

string

Add this value to the CSS class so that it can be formatted by a user provided style sheet.

style

string

Custom CSS style rules for this widget.

cv-status
  • cv-value

  • cv-address

transform

string

Transformation of the bus system value to be shown.

mode

disable, read, write or readwrite

“disable” deactivates the communication, “read” will only fetch data from the backend, “write” will only write to it and an address with “readwrite” will be both, read from and written to.

variant

string

format-pos

decimal

Position for format string when multiple addresses are used.

selector

string

Only MQTT: JSON selector

qos

decimal

Only MQTT: QoS

retain

true or false

Only MQTT: retain flag

ignore-error

true or false

Only MQTT: ignore decode errors.

cv-status
  • cv-value

  • cv-address

    • #text

string

The GA (like: 12/0/7) for KNX-backends, the item name for openHAB-backend or the MQTT topic

cv-status
  • cv-value

  • label

  • icon

name

string

Name of the icon registration.

type

string

flavour

string

Selection of a display variant. See also Flavour.

color

string

Color of the icon in CSS notation (e.g. #1188FF).

styling

string

Change the color of the displayed value depending on its value. See also Styling

class

string

Add this value to the CSS class so that it can be formatted by a user provided style sheet.

cv-status
  • cv-value

  • label

    • #text

string

Text to display a label for the widget.

Element

Attribute

Structure

Name

Content

Description

cv-status
  • cv-address

slot

address or tileAddress

transform

string

Defines the datatype in the backend, e.g. DPT:1.001 for KNX datapoint type 1.001.

mode

disable, read, write or readwrite

Defines if this address is only used to read, write, both readwrite or none of them ``disable`.

value

string

Fixed value sent to this address.

on

click, down or up

Event on which a value should be sent to this address (only useful in mode=``write or readwrite`), also needs ``value.

target

string

Target in the parent widget the value if this address should be use for. The possible values depend on the parent widget.

format-pos

decimal

Position for format string when multiple addresses are used.

qos

decimal

Only MQTT: QoS

retain

true or false

Only MQTT: retain flag

selector

string

Only MQTT: JSON selector

backend

string

Optional name of the backend this address belongs to.

mapping

string

Map the bus value to a different value, text or symbol for displaying. See also mapping

format

string

Formatting of the value (printf syntax).

delay

positiveInteger

Optional delay in milliseconds that a write-request to this address is delayed.

send-mode

on-change or always

Usually the elements that are using this address receive an update-event only when that value hast changed (on-change). This check can be disabled always to send the update-event every time when a new value has been received from the backend.

Element

Attribute

Structure

Name

Content

Description

cv-status
  • span

slot

label or unit

tr

true or false

Defines that the text content of this element should be translated.

Element

Attribute

Structure

Name

Content

Description

cv-status
  • cv-popup

modal

true or false

Disables the background while the popup is open.

fullscreen

true or false

Open the popup in fullscreen mode.

title

string

Headline of this popup.

auto-close-timeout

integer

Time in seconds when the popup is automatically closed.

visible-on

mobile or desktop

Controls this element’s visibility by screen size.

class

string

Add this value to the CSS class so that it can be formatted by a user provided style sheet.

style

string

Custom CSS style rules for this widget.

cv-status
  • cv-popup

  • custom

    • #text

string

cv-status
  • cv-popup

  • cv-address

transform

string

Transformation of the bus system value to be shown.

mode

disable, read, write or readwrite

“disable” deactivates the communication, “read” will only fetch data from the backend, “write” will only write to it and an address with “readwrite” will be both, read from and written to.

variant

string

format-pos

decimal

Position for format string when multiple addresses are used.

selector

string

Only MQTT: JSON selector

qos

decimal

Only MQTT: QoS

retain

true or false

Only MQTT: retain flag

ignore-error

true or false

Only MQTT: ignore decode errors.

cv-status
  • cv-popup

  • cv-address

    • #text

string

The GA (like: 12/0/7) for KNX-backends, the item name for openHAB-backend or the MQTT topic

Element

Attribute

Structure

Name

Content

Description

cv-status
  • cv-chart

title

string

Title of the chart.

y-format

string

Format of the y-axis.

x-format

string

Format of the x-axis.

series

hour, day, week, month or year

Time span of the data.

selection

string

Type of the chart element.

allow-fullscreen

true or false

Allows showing the chart in fullscreen size.

show-x-axis

true or false

Show x-axis scale (default = true).

show-y-axis

true or false

Show y-axis scale (default = true).

refresh

decimal

Time interval in seconds this widget is being refreshed.

show-grid

xy, x, y or false

Show grid lines.

background

true or false

Show the chart in the background of a tile.

min

decimal

Minimum value.

max

decimal

Maximum value.

visible-on

mobile or desktop

Controls this element’s visibility by screen size.

class

string

Add this value to the CSS class so that it can be formatted by a user provided style sheet.

style

string

Custom CSS style rules for this widget.

cv-status
  • cv-chart

  • h-line

  • layout

colspan

decimal

Amount of columns this widget should be wide.

colspan-m

decimal

Overrules the amount of columns on a medium screen.

colspan-s

decimal

Overrules the amount of columns on a small screen.

rowspan

decimal

Amount of rows this widget should be high.

x

string

Horizontal position of the widget for 2D pages.

x-s

string

Horizontal position of the widget for 2D pages on a small screen.

x-m

string

Horizontal position of the widget for 2D pages on a medium screen.

y

string

Vertical position of the widget for 2D pages.

y-s

string

Vertical position of the widget for 2D pages on a small screen.

y-m

string

Vertical position of the widget for 2D pages on a medium screen.

z

string

Reserved for future use.

width

string

Width for the widget for 2D pages.

width-s

string

Width for the widget for 2D pages on a small screen.

width-m

string

Width for the widget for 2D pages on a medium screen.

scale

true or false

Enable/Disable scaling layout values relative to backdrop on 2d pages (default: true).

scale-s

true or false

Enable/Disable scaling layout values relative to backdrop on 2d pages on a small screen (default: true).

scale-m

true or false

Enable/Disable scaling layout values relative to backdrop on 2d pages on a medium screen (default: true).

Element

Attribute

Structure

Name

Content

Description

cv-status
  • cv-address

transform

string

Defines the datatype in the backend, e.g. DPT:1.001 for KNX datapoint type 1.001.

mode

disable, read, write or readwrite

Defines if this address is only used to read, write, both readwrite or none of them ``disable`.

value

string

Fixed value sent to this address.

on

click, down or up

Event on which a value should be sent to this address (only useful in mode=``write or readwrite`), also needs ``value.

target

string

Target in the parent widget the value if this address should be use for. The possible values depend on the parent widget.

format-pos

decimal

Position for format string when multiple addresses are used.

qos

decimal

Only MQTT: QoS

retain

true or false

Only MQTT: retain flag

selector

string

Only MQTT: JSON selector

backend

string

Optional name of the backend this address belongs to.

mapping

string

Map the bus value to a different value, text or symbol for displaying. See also mapping

format

string

Formatting of the value (printf syntax).

delay

positiveInteger

Optional delay in milliseconds that a write-request to this address is delayed.

send-mode

on-change or always

Usually the elements that are using this address receive an update-event only when that value hast changed (on-change). This check can be disabled always to send the update-event every time when a new value has been received from the backend.

cv-status
  • cv-address

    • #text

string

The GA (like: 12/0/7) for KNX-backends, the item name for openHAB-backend or the MQTT topic

Element

Attribute

Structure

Name

Content

Description

cv-status
  • cv-address-group

operator

+, -, * or /

Math operator used for calculation.

round

true or false

Round the result.

factor

float

Multiply the result with this value.

cv-status
  • cv-address-group

  • cv-address

transform

string

Transformation of the bus system value to be shown.

mode

disable, read, write or readwrite

“disable” deactivates the communication, “read” will only fetch data from the backend, “write” will only write to it and an address with “readwrite” will be both, read from and written to.

variant

string

format-pos

decimal

Position for format string when multiple addresses are used.

selector

string

Only MQTT: JSON selector

qos

decimal

Only MQTT: QoS

retain

true or false

Only MQTT: retain flag

ignore-error

true or false

Only MQTT: ignore decode errors.

cv-status
  • cv-address-group

  • cv-address

    • #text

string

The GA (like: 12/0/7) for KNX-backends, the item name for openHAB-backend or the MQTT topic

Element

Attribute

Structure

Name

Content

Description

cv-status
  • p

visible-on

mobile or desktop

Controls this element’s visibility by screen size.

class

string

Add this value to the CSS class so that it can be formatted by a user provided style sheet.

style

string

Custom CSS style rules for this widget.

cv-status
  • p

  • label

  • icon

name

string

Name of the icon registration.

type

string

flavour

string

Selection of a display variant. See also Flavour.

color

string

Color of the icon in CSS notation (e.g. #1188FF).

styling

string

Change the color of the displayed value depending on its value. See also Styling

class

string

Add this value to the CSS class so that it can be formatted by a user provided style sheet.

cv-status
  • p

  • label

    • #text

string

Text to display a label for the widget.

cv-status
  • p

    • #text

string

Element

Attribute

Structure

Name

Content

Description

cv-status
  • label

tr

true or false

Defines that the text content of this element should be translated.

value-size

small, medium, normal or large

Defines the font size.

visible-on

mobile or desktop

Controls this element’s visibility by screen size.

class

string

Add this value to the CSS class so that it can be formatted by a user provided style sheet.

style

string

Custom CSS style rules for this widget.

cv-status
  • label

    • #text

string

Element

Attribute

Structure

Name

Content

Description

cv-status
  • meter

min

integer

max

integer

value

integer

visible-on

mobile or desktop

Controls this element’s visibility by screen size.

class

string

Add this value to the CSS class so that it can be formatted by a user provided style sheet.

style

string

Custom CSS style rules for this widget.

Element

Attribute

Structure

Name

Content

Description

cv-status
  • cv-icon

size

small, large, x-large, xx-large or xxx-large

Defines the size of the icon.

color

string

Icon color.

visible-on

mobile or desktop

Controls this element’s visibility by screen size.

class

string

Add this value to the CSS class so that it can be formatted by a user provided style sheet.

style

string

Custom CSS style rules for this widget.

cv-status
  • cv-icon

    • #text

string

Element

Attribute

Structure

Name

Content

Description

cv-status
  • cv-round-progress

radius

integer

Radius of the circle.

stroke

integer

Stroke width of the circle border.

type

circle or semiCircle

Visualization type.

min

decimal

Minimum value.

max

decimal

Maximum value.

foreground-color

string

Color of the value bar.

background-color

string

Color of the background bar.

visible-on

mobile or desktop

Controls this element’s visibility by screen size.

class

string

Add this value to the CSS class so that it can be formatted by a user provided style sheet.

style

string

Custom CSS style rules for this widget.

Element

Attribute

Structure

Name

Content

Description

cv-status
  • cv-group

icon

string

Icon for the group.

name

string

Name of the group.

open

true or false

Makes the groups content visible, otherwise only the content of “summary” is visible.

wrap

true or false

Prevents line wraps when the content is wider that the screen size. The content will be horizontally scrollable instead.

hide-on-scroll

true or false

Fades out this content, if the page content has been scrolled.

visible-on

mobile or desktop

Controls this element’s visibility by screen size.

class

string

Add this value to the CSS class so that it can be formatted by a user provided style sheet.

style

string

Custom CSS style rules for this widget.

cv-status
  • cv-group

  • custom

    • #text

string

cv-status
  • cv-group

  • cv-address

transform

string

Transformation of the bus system value to be shown.

mode

disable, read, write or readwrite

“disable” deactivates the communication, “read” will only fetch data from the backend, “write” will only write to it and an address with “readwrite” will be both, read from and written to.

variant

string

format-pos

decimal

Position for format string when multiple addresses are used.

selector

string

Only MQTT: JSON selector

qos

decimal

Only MQTT: QoS

retain

true or false

Only MQTT: retain flag

ignore-error

true or false

Only MQTT: ignore decode errors.

cv-status
  • cv-group

  • cv-address

    • #text

string

The GA (like: 12/0/7) for KNX-backends, the item name for openHAB-backend or the MQTT topic

Element

Attribute

Structure

Name

Content

Description

cv-status
  • cv-address

transform

string

Defines the datatype in the backend, e.g. DPT:1.001 for KNX datapoint type 1.001.

mode

disable, read, write or readwrite

Defines if this address is only used to read, write, both readwrite or none of them ``disable`.

value

string

Fixed value sent to this address.

on

click, down or up

Event on which a value should be sent to this address (only useful in mode=``write or readwrite`), also needs ``value.

target

string

Target in the parent widget the value if this address should be use for. The possible values depend on the parent widget.

format-pos

decimal

Position for format string when multiple addresses are used.

qos

decimal

Only MQTT: QoS

retain

true or false

Only MQTT: retain flag

selector

string

Only MQTT: JSON selector

backend

string

Optional name of the backend this address belongs to.

mapping

string

Map the bus value to a different value, text or symbol for displaying. See also mapping

format

string

Formatting of the value (printf syntax).

delay

positiveInteger

Optional delay in milliseconds that a write-request to this address is delayed.

send-mode

on-change or always

Usually the elements that are using this address receive an update-event only when that value hast changed (on-change). This check can be disabled always to send the update-event every time when a new value has been received from the backend.

cv-status
  • cv-address

    • #text

string

The GA (like: 12/0/7) for KNX-backends, the item name for openHAB-backend or the MQTT topic

Element

Attribute

Structure

Name

Content

Description

cv-status
  • iframe

src

anyURI

data-src

anyURI

visible-on

mobile or desktop

Controls this element’s visibility by screen size.

class

string

Add this value to the CSS class so that it can be formatted by a user provided style sheet.

style

string

Custom CSS style rules for this widget.

Element

Attribute

Structure

Name

Content

Description

cv-status
  • dataset

src

anyURI

Data source for this chart element

title

string

Title of the chart element.

chart-type

line or bar

Type of the chart element.

curve

linear, step or natural

Type of curve interpolation for line charts.

color

string

Color of the chart element.

show-area

true or false

Fill the area below a line diagram.

cv-status
  • dataset

    • #text

string

Element

Attribute

Structure

Name

Content

Description

cv-status
  • h-line

src

string

Data source for this line

value

Type of the chart element.

format

string

Formatting of the value (printf syntax).

color

string

Color of the line.

show-value

true or false

Show value.

value-color

string

Color of the value.

Element

Attribute

Structure

Name

Content

Description

cv-status
  • cv-address

transform

string

Defines the datatype in the backend, e.g. DPT:1.001 for KNX datapoint type 1.001.

mode

disable, read, write or readwrite

Defines if this address is only used to read, write, both readwrite or none of them ``disable`.

value

string

Fixed value sent to this address.

on

click, down or up

Event on which a value should be sent to this address (only useful in mode=``write or readwrite`), also needs ``value.

target

string

Target in the parent widget the value if this address should be use for. The possible values depend on the parent widget.

format-pos

decimal

Position for format string when multiple addresses are used.

qos

decimal

Only MQTT: QoS

retain

true or false

Only MQTT: retain flag

selector

string

Only MQTT: JSON selector

backend

string

Optional name of the backend this address belongs to.

mapping

string

Map the bus value to a different value, text or symbol for displaying. See also mapping

format

string

Formatting of the value (printf syntax).

delay

positiveInteger

Optional delay in milliseconds that a write-request to this address is delayed.

send-mode

on-change or always

Usually the elements that are using this address receive an update-event only when that value hast changed (on-change). This check can be disabled always to send the update-event every time when a new value has been received from the backend.

cv-status
  • cv-address

    • #text

string

The GA (like: 12/0/7) for KNX-backends, the item name for openHAB-backend or the MQTT topic

Element

Attribute

Structure

Name

Content

Description

cv-status
  • cv-address-group

operator

+, -, * or /

Math operator used for calculation.

round

true or false

Round the result.

factor

float

Multiply the result with this value.

cv-status
  • cv-address-group

  • cv-address

transform

string

Transformation of the bus system value to be shown.

mode

disable, read, write or readwrite

“disable” deactivates the communication, “read” will only fetch data from the backend, “write” will only write to it and an address with “readwrite” will be both, read from and written to.

variant

string

format-pos

decimal

Position for format string when multiple addresses are used.

selector

string

Only MQTT: JSON selector

qos

decimal

Only MQTT: QoS

retain

true or false

Only MQTT: retain flag

ignore-error

true or false

Only MQTT: ignore decode errors.

cv-status
  • cv-address-group

  • cv-address

    • #text

string

The GA (like: 12/0/7) for KNX-backends, the item name for openHAB-backend or the MQTT topic

Element

Attribute

Structure

Name

Content

Description

cv-status
  • p

visible-on

mobile or desktop

Controls this element’s visibility by screen size.

class

string

Add this value to the CSS class so that it can be formatted by a user provided style sheet.

style

string

Custom CSS style rules for this widget.

cv-status
  • p

  • label

  • icon

name

string

Name of the icon registration.

type

string

flavour

string

Selection of a display variant. See also Flavour.

color

string

Color of the icon in CSS notation (e.g. #1188FF).

styling

string

Change the color of the displayed value depending on its value. See also Styling

class

string

Add this value to the CSS class so that it can be formatted by a user provided style sheet.

cv-status
  • p

  • label

    • #text

string

Text to display a label for the widget.

cv-status
  • p

    • #text

string

Element

Attribute

Structure

Name

Content

Description

cv-status
  • label

tr

true or false

Defines that the text content of this element should be translated.

value-size

small, medium, normal or large

Defines the font size.

visible-on

mobile or desktop

Controls this element’s visibility by screen size.

class

string

Add this value to the CSS class so that it can be formatted by a user provided style sheet.

style

string

Custom CSS style rules for this widget.

cv-status
  • label

    • #text

string

Element

Attribute

Structure

Name

Content

Description

cv-status
  • meter

min

integer

max

integer

value

integer

visible-on

mobile or desktop

Controls this element’s visibility by screen size.

class

string

Add this value to the CSS class so that it can be formatted by a user provided style sheet.

style

string

Custom CSS style rules for this widget.

Element

Attribute

Structure

Name

Content

Description

cv-status
  • cv-icon

size

small, large, x-large, xx-large or xxx-large

Defines the size of the icon.

color

string

Icon color.

visible-on

mobile or desktop

Controls this element’s visibility by screen size.

class

string

Add this value to the CSS class so that it can be formatted by a user provided style sheet.

style

string

Custom CSS style rules for this widget.

cv-status
  • cv-icon

    • #text

string

Element

Attribute

Structure

Name

Content

Description

cv-status
  • cv-round-progress

radius

integer

Radius of the circle.

stroke

integer

Stroke width of the circle border.

type

circle or semiCircle

Visualization type.

min

decimal

Minimum value.

max

decimal

Maximum value.

foreground-color

string

Color of the value bar.

background-color

string

Color of the background bar.

visible-on

mobile or desktop

Controls this element’s visibility by screen size.

class

string

Add this value to the CSS class so that it can be formatted by a user provided style sheet.

style

string

Custom CSS style rules for this widget.