Monitoring Disk Free Space and Pending Updates Using MQTT and Home Assistant
This article describes how to send information about available disk space and the number of pending updates to Home Assistant using MQTT. Requirements A running MQTT broker (e.g., Mosquitto). Installed MQTT client (e.g., mosquitto-clients). A Linux system with the apt package manager. Home Assistant configured to support MQTT. Script Configuration The Bash script performs two key operations: Checks the number of pending updates. Calculates the amount of free disk space. Example script:...