hass-core/homeassistant/components/utility_meter/strings.json
dougiteixeira 7713cf377d
Add utility meter option for the sensor to always be available (#103481)
* Adds option for the sensor to always be available

* Remove logger debug

* Add migration config entry version

* Update homeassistant/components/utility_meter/config_flow.py

Co-authored-by: Robert Resch <robert@resch.dev>

* Update homeassistant/components/utility_meter/sensor.py

Co-authored-by: Robert Resch <robert@resch.dev>

* Remove migration config entry version

* Change CONF_SENSOR_ALWAYS_AVAILABLE optional in CONFIG_SCHEMA

* Remove CONF_SENSOR_ALWAYS_AVAILABLE in tests

* Remove CONF_SENSOR_ALWAYS_AVAILABLE in tests

* Remove CONF_SENSOR_ALWAYS_AVAILABLE in tests

* Add option in yaml

* Update homeassistant/components/utility_meter/strings.json

Co-authored-by: Robert Resch <robert@resch.dev>

* Update homeassistant/components/utility_meter/strings.json

Co-authored-by: Robert Resch <robert@resch.dev>

* Changes tests

* Add test_always_available

* Use freezegun

* Update homeassistant/components/utility_meter/strings.json

---------

Co-authored-by: Robert Resch <robert@resch.dev>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2024-01-25 20:46:33 +01:00

76 lines
3.1 KiB
JSON

{
"title": "Utility Meter",
"config": {
"step": {
"user": {
"title": "Add Utility Meter",
"description": "Create a sensor which tracks consumption of various utilities (e.g., energy, gas, water, heating) over a configured period of time, typically monthly. The utility meter sensor optionally supports splitting the consumption by tariffs, in that case one sensor for each tariff is created as well as a select entity to choose the current tariff.",
"data": {
"always_available": "Sensor always available",
"cycle": "Meter reset cycle",
"delta_values": "Delta values",
"name": "[%key:common::config_flow::data::name%]",
"periodically_resetting": "Periodically resetting",
"net_consumption": "Net consumption",
"offset": "Meter reset offset",
"source": "Input sensor",
"tariffs": "Supported tariffs"
},
"data_description": {
"always_available": "If activated, the sensor will always be show the last known value, even if the source entity is unavailable or unknown.",
"delta_values": "Enable if the source values are delta values since the last reading instead of absolute values.",
"net_consumption": "Enable if the source is a net meter, meaning it can both increase and decrease.",
"periodically_resetting": "Enable if the source may periodically reset to 0, for example at boot of the measuring device. If disabled, new readings are directly recorded after data inavailability.",
"offset": "Offset the day of a monthly meter reset.",
"tariffs": "A list of supported tariffs, leave empty if only a single tariff is needed."
}
}
}
},
"options": {
"step": {
"init": {
"data": {
"always_available": "[%key:component::utility_meter::config::step::user::data::always_available%]",
"source": "[%key:component::utility_meter::config::step::user::data::source%]",
"periodically_resetting": "[%key:component::utility_meter::config::step::user::data::periodically_resetting%]"
},
"data_description": {
"always_available": "[%key:component::utility_meter::config::step::user::data_description::always_available%]",
"periodically_resetting": "[%key:component::utility_meter::config::step::user::data_description::periodically_resetting%]"
}
}
}
},
"selector": {
"cycle": {
"options": {
"none": "No cycle",
"quarter-hourly": "Every 15 minutes",
"hourly": "Hourly",
"daily": "Daily",
"weekly": "Weekly",
"monthly": "Monthly",
"bimonthly": "Every two months",
"quarterly": "Quarterly",
"yearly": "Yearly"
}
}
},
"services": {
"reset": {
"name": "Reset",
"description": "Resets all counters of a utility meter."
},
"calibrate": {
"name": "Calibrate",
"description": "Calibrates a utility meter sensor.",
"fields": {
"value": {
"name": "Value",
"description": "Value to which set the meter."
}
}
}
}
}