mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-20 07:46:52 +00:00
Update style (#11546)
This commit is contained in:
parent
22cc520160
commit
8054e564a9
@ -10,7 +10,7 @@ logo: integral.png
|
|||||||
ha_qa_scale: internal
|
ha_qa_scale: internal
|
||||||
---
|
---
|
||||||
|
|
||||||
The `integration` platform provides the [Riemann sum](https://en.wikipedia.org/wiki/Riemann_sum) of the values provided by a source sensor. The Riemann sum is an approximation of an **integral** by a finite sum. The integration sensors is updated upon changes of the the **source**. Fast sampling source sensors provide better results. In this implementation, the default is the Trapezoidal method, but Left and Right methods can optionally be used.
|
The `integration` platform provides the [Riemann sum](https://en.wikipedia.org/wiki/Riemann_sum) of the values provided by a source sensor. The Riemann sum is an approximation of an **integral** by a finite sum. The integration sensors is updated upon changes of the **source**. Fast sampling source sensors provide better results. In this implementation, the default is the Trapezoidal method, but Left and Right methods can optionally be used.
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
@ -25,7 +25,7 @@ sensor:
|
|||||||
|
|
||||||
{% configuration %}
|
{% configuration %}
|
||||||
source:
|
source:
|
||||||
description: The entity ID of the sensor providing numeric readings
|
description: The entity ID of the sensor providing numeric readings.
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
name:
|
name:
|
||||||
@ -39,27 +39,27 @@ round:
|
|||||||
default: 3
|
default: 3
|
||||||
type: integer
|
type: integer
|
||||||
unit_prefix:
|
unit_prefix:
|
||||||
description: Metric unit to prefix the integration result. Available units are k, M, G, T.
|
description: "Metric unit to prefix the integration result. Available units are `k`, `M`, `G` and `T`."
|
||||||
required: false
|
required: false
|
||||||
default: None
|
default: None
|
||||||
type: string
|
type: string
|
||||||
unit_time:
|
unit_time:
|
||||||
description: SI unit of time to integrate over. Available units are s, min, h, d.
|
description: "SI unit of time to integrate over. Available units are `s`, `min`, `h` and `d`."
|
||||||
required: false
|
required: false
|
||||||
default: h
|
default: h
|
||||||
type: string
|
type: string
|
||||||
unit:
|
unit:
|
||||||
description: Unit of Measurement to be used for the integration.
|
description: Unit of measurement to be used for the integration.
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
method:
|
method:
|
||||||
description: Riemann sum method to be used. Available methods are trapezoidal, left, right.
|
description: Riemann sum method to be used. Available methods are `trapezoidal`, `left` and `right`."
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: trapezoidal
|
default: trapezoidal
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
In case you have an appliance which produces 'spikey' consumption (like an on/off electrical boiler) you should opt for the left method I order to get accurate readings. 'unit' is set then 'unit_prefix' and 'unit_time' are ignored.
|
In case you have an appliance which produces spikey consumption (like an on/off electrical boiler) you should opt for the `left` method to get accurate readings. If `unit` is set then `unit_prefix` and `unit_time` are ignored.
|
||||||
|
|
||||||
## Energy
|
## Energy
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user