ironsheep / RPi-Reporter-MQTT2HA-Daemon

Linux service to collect and transfer Raspberry Pi data via MQTT to Home Assistant (for RPi Monitoring)
GNU General Public License v3.0
442 stars 62 forks source link

SD Card Free space vs used space #81

Closed Darren-Hill closed 1 year ago

Darren-Hill commented 1 year ago

Just updated my daemons and HA card to the latest versions (1.72 I think - nice to see the notification of update available in the card!) but noticed something a bit cosmetically weird.

The HA card shows the free space percentage for the SD card, but if the value is high it is red, changing to amber then blue as the card fills up. To me this is backwards, as the red (warning) should be for a low remaining percentage, not a high one.

Could that be fixed to warn properly when the card starts to become full (low free space), or else swap the percentage free on the card to percentage used?

ironsheep commented 1 year ago

Thanks for reporting this. You are right. This Daemon was reporting the free space badly (indicating used as free) The latest change to this daemon fixed this. The values are now correct. I'll be updating the card later today to fix it as it was correcting for the daemon's bad value and no longer needs to.

ironsheep commented 1 year ago

Changes are committed to the Lovelace card repo and appear in card v1.3.4 and later.