{ "title": "Integration - Riemann sum integral sensor", "config": { "step": { "user": { "title": "Add Riemann sum integral sensor", "description": "Create a sensor that calculates a Riemann sum to estimate the integral of a sensor.", "data": { "method": "Integration method", "name": "[%key:common::config_flow::data::name%]", "round": "Precision", "source": "Input sensor", "unit_prefix": "Metric prefix", "unit_time": "Time unit" }, "data_description": { "round": "Controls the number of decimal digits in the output.", "unit_prefix": "The output will be scaled according to the selected metric prefix.", "unit_time": "The output will be scaled according to the selected time unit." } } } }, "options": { "step": { "init": { "data": { "round": "[%key:component::integration::config::step::user::data::round%]" }, "data_description": { "round": "[%key:component::integration::config::step::user::data_description::round%]" } } } }, "selector": { "method": { "options": { "trapezoidal": "Trapezoidal rule", "left": "Left Riemann sum", "right": "Right Riemann sum" } }, "unit_time": { "options": { "s": "Seconds", "min": "Minutes", "h": "Hours", "d": "Days" } } } }