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:...

January 2, 2025 · 2 min · 4ib3r

Home Assistant - Cleaning the Database Using Labels

After the latest updates to Home Assistant, the ability to add labels to entities was introduced. It turned out to be a quite convenient way to manage database cleanup using automation. Labels allow for easy browsing, filtering, and grouping of entities in different views. By leveraging them in automation, you can conveniently adjust its scope without directly editing the automation. alias: Purge frigate data from db description: "" trigger: - platform: time at: "03:00:00" condition: [] action: - service: recorder....

June 16, 2024 · 1 min · 4ib3r

Cat Feeder

Construction Description During a holiday trip, it became necessary to create a device to ensure that the cat left at home wouldn’t go hungry. This isn’t the first attempt at solving this issue; a previous design based on a threaded mechanism to dispense food didn’t work out. It was difficult to control the amount of food dispensed, and the mechanism often jammed. Thus, a new construction was developed based on a 28BYJ-48 stepper motor modified to a bipolar version, which rotates the entire container with compartments....

September 9, 2023 · 2 min · 4ib3r