starkillerOG / reolink_aio

Reolink NVR/camera API PyPI package
MIT License
65 stars 13 forks source link

Get Sdcard/Hdd existance and size used #38

Closed mnpg closed 6 months ago

mnpg commented 1 year ago

Hi @StarKillerOG, i have a other idea to offer the information of the status of the SdCard or Hdd if exists and, if the case, his size used. Through the command GetHddInfo, you get have the status and size used:

If it's a case that storage exists, here how to check the size used

To have the size used of the device, here the command : round(size*100/capacity) In that example : round(779x100)/30462 -> 3%

starkillerOG commented 6 months ago

The HDD/SD card storage sensor will be available in HA 2024.3.0 once this PR is merged: https://github.com/home-assistant/core/pull/110961

It will show the % of storage that is in use.

The entity will only be added if a SD or HDD storage is available

It will go unavailable if the SD card or HDD is no longer accesible.

Since this is now implemented, I will close this issue.