home-assistant.io/source/_integrations/derivative.markdown
2020-01-26 21:42:36 +01:00

1.6 KiB

title, description, ha_category, ha_release, ha_iot_class, logo, ha_qa_scale
title description ha_category ha_release ha_iot_class logo ha_qa_scale
Derivative Sensor Instructions on how to integrate Derivative Sensor into Home Assistant.
Utility
Energy
0.105 Local Push derivative.png internal

The derivative platform provides the numerical derivative or numerical differentiation of the values provided by a source sensor. Derivative sensors are updated upon changes of the source. Fast sampling source sensors provide better results.

Configuration

To enable Derivative Sensor in your installation, add the following to your configuration.yaml file:

# Example configuration.yaml entry
sensor:
  - platform: derivative
    source: sensor.current_speed

{% configuration %} source: description: The entity ID of the sensor providing numeric readings required: true type: string name: description: Name to use in the frontend. required: false default: source entity ID meter type: string round: description: Round the calculated derivative value to at most N decimal places. required: false default: 3 type: integer unit_prefix: description: Metric unit to prefix the derivative result. Available units are k, M, G, T. required: false default: None type: string unit_time: description: SI unit of time to integrate over. Available units are s, min, h, d. required: false default: h type: string unit: description: Unit of Measurement to be used for the derivative. required: false type: string {% endconfiguration %}

If 'unit' is set then 'unit_prefix' and 'unit_time' are ignored.