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:...
Using GPIO Pins for Power Control in Moonraker
Moonraker is a powerful web API service commonly used with Klipper in 3D printing. One of its useful features is the ability to control GPIO pins directly for managing power devices. This guide explains how to set up raspberry GPIO pins in Moonraker and use them for power control, including handling button inputs. Configure GPIO power switch in Moonraker To use a GPIO pin for power control, you must define it as a power_device in the Moonraker configuration file (moonraker....
How to Use Different Configurations in Klipper
How to Use Different Configurations in Klipper Without Copying Files If you use Klipper and want to manage multiple configurations easily, you can use the KCONFIG_CONFIG environment variable. This allows you to compile the project with a selected configuration file without copying it to .config. In this article, I鈥檒l walk you through how to do this and also show an alternative method using file copying. Creating a Configuration A configuration file for later use can be obtained in two ways: by creating a new configuration or by copying an existing one from the default ....
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....
Cat Feeder
Construction Description During a holiday trip, it became necessary to create a device to ensure that the cat left at home wouldn鈥檛 go hungry. This isn鈥檛 the first attempt at solving this issue; a previous design based on a threaded mechanism to dispense food didn鈥檛 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....