Energy entity
Description
The <cv-energy-entity> component displays the electrical energy of a specific device.
It consists of an icon, a value in the unit kilo-watt-hour and an optional direction arrow.
The Energy-Entity is essentially a Svg text value with
predefined color scheme, icon and special mapping for the value. These presets are bound to the type attribute.
Optionally, a direction can be specified via the direction attribute.
There are the following Energy entity types:
|
|
|
|
|
|
|
|
|
Allowed attributes
Element |
Attribute |
|||
|---|---|---|---|---|
Name |
Content |
Description |
||
cv-energy-entity |
id |
string |
ID of this element. |
|
title |
string |
Title of this element. |
||
icon |
string |
Defines the icon, usually the icon is pre-defined by the type, but can be overridden by this attribute. |
||
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). |
||
x |
integer |
Position of this element on the x-axis. |
||
y |
integer |
Position of this element on the y-axis. |
||
row |
decimal |
Row this element is placed in. |
||
column |
decimal |
Column this element is placed in. |
||
rowspan |
decimal |
Number of rows this element spans |
||
colspan |
decimal |
Number of columns this element spans |
||
type |
pv, battery, grid, consumer, charger, heatpump or house |
Type of this entity. |
||
direction |
none, incoming or outgoing |
Defines the direction of the energy flow. |
||
Allowed child elements and their attributes
Element |
Attribute |
|||
|---|---|---|---|---|
Structure |
Name |
Content |
Description |
|
|
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 |
||
value |
string |
Fixed value sent to this address. |
||
on |
click, down or up |
Event on which a |
||
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 ( |
||
|
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 |
|
|
operator |
+, -, * or / |
Math operator used for calculation. |
|
round |
true or false |
Round the result. |
||
factor |
float |
Multiply the result with this 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. |
||
|
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. |
||
|
string |
The GA (like: 12/0/7) for KNX-backends, the item name for openHAB-backend or the MQTT topic |
||