mirror of https://github.com/home-assistant/core
54 lines
2.0 KiB
JSON
54 lines
2.0 KiB
JSON
{
|
|
"title": "Derivative sensor",
|
|
"config": {
|
|
"step": {
|
|
"user": {
|
|
"title": "Create Derivative sensor",
|
|
"description": "Create a sensor that estimates the derivative of a sensor.",
|
|
"data": {
|
|
"name": "[%key:common::config_flow::data::name%]",
|
|
"round": "Precision",
|
|
"source": "Input sensor",
|
|
"time_window": "Time window",
|
|
"unit_prefix": "Metric prefix",
|
|
"unit_time": "Time unit"
|
|
},
|
|
"data_description": {
|
|
"round": "Controls the number of decimal digits in the output.",
|
|
"time_window": "If set, the sensor's value is a time weighted moving average of derivatives within this window.",
|
|
"unit_prefix": "The output will be scaled according to the selected metric prefix and time unit of the derivative."
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"options": {
|
|
"step": {
|
|
"init": {
|
|
"data": {
|
|
"name": "[%key:common::config_flow::data::name%]",
|
|
"round": "[%key:component::derivative::config::step::user::data::round%]",
|
|
"source": "[%key:component::derivative::config::step::user::data::source%]",
|
|
"time_window": "[%key:component::derivative::config::step::user::data::time_window%]",
|
|
"unit_prefix": "[%key:component::derivative::config::step::user::data::unit_prefix%]",
|
|
"unit_time": "[%key:component::derivative::config::step::user::data::unit_time%]"
|
|
},
|
|
"data_description": {
|
|
"round": "[%key:component::derivative::config::step::user::data_description::round%]",
|
|
"time_window": "[%key:component::derivative::config::step::user::data_description::time_window%]",
|
|
"unit_prefix": "[%key:component::derivative::config::step::user::data_description::unit_prefix%]"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"selector": {
|
|
"time_unit": {
|
|
"options": {
|
|
"s": "Seconds",
|
|
"min": "Minutes",
|
|
"h": "Hours",
|
|
"d": "Days"
|
|
}
|
|
}
|
|
}
|
|
}
|