You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
no, there is NO PROBLEM
Describe the solution you'd like
Today, datasets entities provide both: used and available values, but there is no usage in %. It would be very valuable to have such sensor or even attribute without a need of creating it in Home Assistant.
Today, with this super nice integration, to see in HA the usage in % and i.e. act on it if its value is above the defined threshold, I need to:
1- create sensor in HA (template) and calulate it, i.e:
homonto
changed the title
[Feature] disk usage in % availble in the integration instead of calculating it in Home Assistant
[Feature] dataset usage in % availble in the integration instead of calculating it in Home Assistant
Dec 19, 2024
Is your feature request related to a problem? Please describe.
no, there is NO PROBLEM
Describe the solution you'd like
Today, datasets entities provide both: used and available values, but there is no usage in %. It would be very valuable to have such sensor or even attribute without a need of creating it in Home Assistant.
Today, with this super nice integration, to see in HA the usage in % and i.e. act on it if its value is above the defined threshold, I need to:
1- create sensor in HA (template) and calulate it, i.e:
sensors:
truenas_pool_usage:
friendly_name: "Truenas pool usage"
unique_id: truenas_pool_usage
unit_of_measurement: "%"
value_template: "{{ (100 * state_attr('sensor.truenas_datasets_pool', 'Used') / (state_attr('sensor.truenas_datasets_pool', 'Used') + state_attr('sensor.truenas_datasets_pool', 'Available'))) |float|round(1) }}"
2- use the new sensor called: "truenas_pool_usage" in lovelace, i.e.:
3- use the new sensor called: "truenas_pool_usage" in automations to i.e. send the message: "pool usage too high" or so
Describe alternatives you've considered
Manual creation of sensors in HA
The text was updated successfully, but these errors were encountered: