mirror of
https://github.com/Electric-Special/ha-core.git
synced 2026-03-21 03:03:17 +01:00
112 lines
5.0 KiB
JSON
112 lines
5.0 KiB
JSON
{
|
|
"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."
|
|
},
|
|
"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%]"
|
|
}
|
|
}
|
|
},
|
|
"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": "[%key:common::action::reload%]"
|
|
}
|
|
},
|
|
"title": "History Stats"
|
|
}
|