LAB02-Research / HASS.Agent

Windows-based client for Home Assistant. Provides notifications, quick actions, commands, sensors and more.
https://hassagent.lab02-research.org
MIT License
1.56k stars 68 forks source link

Feature: Add automatic conversion for storage space from bytes to MB or GB or TB #346

Open Shredder5262 opened 1 year ago

Shredder5262 commented 1 year ago

Title pretty much says it all. The sensors come in as bytes, It would be nice if upon sensor creation that the user could choose from a dropdown menu to display as bytes, GB, MB or TB instead of having to instill some code in the configuration to convert these. Note, I am doing this via WMI query...but i would think many people would want to know drive storage of remote machines within their environment.

2023-08-19 08_01_08-Settings – Home Assistant - Vivaldi

amadeo-alex commented 1 year ago

Hello, please use the feature template when requesting features.

Have you checked the "Storage" sensor? Adding this kind of feature request for this sensor would make sense. WMI sensors are up to user to handle as they can perform multitude of functions. If you'd like to stick to WMI sensor to get the drive usage data and don't want to play around in yaml you can always create a PowerShell sensors which gets the WMI object info and then parses it to GB/MB/TB.