Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entities for storage usage #612

Open
nsprawling opened this issue Feb 1, 2024 · 2 comments
Open

Entities for storage usage #612

nsprawling opened this issue Feb 1, 2024 · 2 comments
Labels
enhancement New feature or request pinned

Comments

@nsprawling
Copy link

Is your feature request related to a problem? Please describe.
Entities for storage consumption to allow for notifications when storage use is high, disk is becoming full, or lovelace sensor cards

@NickM-27 NickM-27 added the enhancement New feature or request label Feb 1, 2024
@7floor
Copy link

7floor commented Feb 1, 2024

@nsprawling you can use the following in your configuration.yaml

mqtt:
  sensor:
    - name: "Frigate Storage Total"
      unique_id: "frigate_storage_total"
      state_topic: "frigate/stats"
      value_template: "{{ value_json.service['storage']['/media/frigate/recordings']['total'] / 1024 }}"
      device_class: data_size
      unit_of_measurement: 'GiB'
      icon: mdi:database
    - name: "Frigate Storage Used"
      unique_id: "frigate_storage_used"
      state_topic: "frigate/stats"
      value_template: "{{ value_json.service['storage']['/media/frigate/recordings']['used'] / 1024 }}"
      device_class: data_size
      unit_of_measurement: 'GiB'
      icon: mdi:database
    - name: "Frigate Storage Free"
      unique_id: "frigate_storage_free"
      state_topic: "frigate/stats"
      value_template: "{{ value_json.service['storage']['/media/frigate/recordings']['free'] / 1024 }}"
      device_class: data_size
      unit_of_measurement: 'GiB'
      icon: mdi:database

@nsprawling
Copy link
Author

Perfect, thanks!

@NickM-27 NickM-27 reopened this Feb 5, 2024
@NickM-27 NickM-27 added the pinned label Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pinned
Projects
None yet
Development

No branches or pull requests

3 participants