Skip to content

Instantly share code, notes, and snippets.

View EarMaster's full-sized avatar
🛸

Nico Wiedemann EarMaster

🛸
View GitHub Profile
blueprint:
name: ZHA - Moes Smart Knob for lights
description: 'Control lights with a Moes Smart Knob.
You can set functions for a single press. This allows you to assign,
e.g., a scene or anything else.
Rotating left/right will change the brightness smoothly of the selected light.
Not all functionality of the device is available at time of writing, e.g. double press, long press and press and rotate.'
@EarMaster
EarMaster / update.sh
Created May 17, 2025 22:00
Automates APT updates
#!/bin/bash
# Exit immediately if a command exits with a non-zero status
set -e
# Function to handle errors
error_handler() {
echo "Error occurred at line $1"
exit 1
}
@EarMaster
EarMaster / README.md
Last active May 3, 2026 08:05
Weather-based boiler mode recommendation for Home Assistant. Analyzes the upcoming forecast and triggers a customizable action (notification, light, etc.) when your heating mode should change. No automatic switching — you stay in control.

Heating Mode Recommendation Blueprint for Home Assistant

A Home Assistant automation blueprint that analyzes the upcoming weather forecast and suggests when to manually switch your boiler between Heat, Hot Water, and Off (solar-only) mode — so you stop forgetting to do it yourself.

Designed for setups where the boiler mode must be changed physically (e.g. by pressing a button on the unit), but you still want smart, weather-aware reminders without switching multiple times a week.

Import Blueprint

How it works