{ "config": { "abort": { "already_configured": "[%key:common::config_flow::abort::already_configured_account%]" }, "error": { "only_two_keys_allowed": "The sensor configuration must provide two out of 'start', 'end', 'duration'" }, "step": { "options": { "data": { "duration": "Duration", "end": "End", "entity_id": "[%key:component::history_stats::config::step::user::data::entity_id%]", "start": "Start", "state": "[%key:component::history_stats::config::step::user::data::state%]", "state_class": "[%key:component::sensor::entity_component::_::state_attributes::state_class::name%]", "type": "[%key:component::history_stats::config::step::user::data::type%]" }, "data_description": { "duration": "Duration of the measure.", "end": "When to stop the measure (timestamp or datetime). Can be a template.", "entity_id": "[%key:component::history_stats::config::step::user::data_description::entity_id%]", "start": "When to start the measure (timestamp or datetime). Can be a template.", "state": "[%key:component::history_stats::config::step::user::data_description::state%]", "state_class": "The state class for statistics calculation.", "type": "[%key:component::history_stats::config::step::user::data_description::type%]" }, "description": "Read the documentation for further details on how to configure the history stats sensor using these options.", "sections": { "advanced_settings": { "data": { "min_state_duration": "Minimum state duration" }, "data_description": { "min_state_duration": "The minimum state duration to account for the statistics. Default is 0 seconds." }, "name": "Advanced settings" } } }, "state": { "data": { "entity_id": "[%key:component::history_stats::config::step::user::data::entity_id%]", "state": "[%key:component::history_stats::config::step::user::data::state%]" }, "data_description": { "entity_id": "[%key:component::history_stats::config::step::user::data_description::entity_id%]", "state": "[%key:component::history_stats::config::step::user::data_description::state%]" } }, "user": { "data": { "entity_id": "Entity", "name": "[%key:common::config_flow::data::name%]", "state": "State", "type": "Type" }, "data_description": { "entity_id": "Entity to get statistics from.", "name": "Name for the created entity.", "state": "The states you want to track from the entity.", "type": "The type of sensor, one of 'time', 'ratio' or 'count'" }, "description": "Create a history stats sensor" } } }, "options": { "abort": { "already_configured": "[%key:common::config_flow::abort::already_configured_account%]" }, "error": { "only_two_keys_allowed": "[%key:component::history_stats::config::error::only_two_keys_allowed%]" }, "step": { "init": { "data": { "duration": "[%key:component::history_stats::config::step::options::data::duration%]", "end": "[%key:component::history_stats::config::step::options::data::end%]", "entity_id": "[%key:component::history_stats::config::step::user::data::entity_id%]", "start": "[%key:component::history_stats::config::step::options::data::start%]", "state": "[%key:component::history_stats::config::step::user::data::state%]", "state_class": "[%key:component::sensor::entity_component::_::state_attributes::state_class::name%]", "type": "[%key:component::history_stats::config::step::user::data::type%]" }, "data_description": { "duration": "[%key:component::history_stats::config::step::options::data_description::duration%]", "end": "[%key:component::history_stats::config::step::options::data_description::end%]", "entity_id": "[%key:component::history_stats::config::step::user::data_description::entity_id%]", "start": "[%key:component::history_stats::config::step::options::data_description::start%]", "state": "[%key:component::history_stats::config::step::user::data_description::state%]", "state_class": "The state class for statistics calculation. Changing the state class will require statistics to be reset.", "type": "[%key:component::history_stats::config::step::user::data_description::type%]" }, "description": "[%key:component::history_stats::config::step::options::description%]", "sections": { "advanced_settings": { "data": { "min_state_duration": "[%key:component::history_stats::config::step::options::sections::advanced_settings::data::min_state_duration%]" }, "data_description": { "min_state_duration": "[%key:component::history_stats::config::step::options::sections::advanced_settings::data_description::min_state_duration%]" }, "name": "[%key:component::history_stats::config::step::options::sections::advanced_settings::name%]" } } } } }, "selector": { "state_class": { "options": { "measurement": "[%key:component::sensor::entity_component::_::state_attributes::state_class::state::measurement%]", "total_increasing": "[%key:component::sensor::entity_component::_::state_attributes::state_class::state::total_increasing%]" } }, "type": { "options": { "count": "Count", "ratio": "Ratio", "time": "Time" } } }, "services": { "reload": { "description": "Reloads history stats sensors from the YAML-configuration.", "name": "Reload history stats sensors" } }, "title": "History Stats" }