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

@EarMaster
EarMaster / README.md
Created June 5, 2026 00:13
pgo: Fast Proxmox Guest Connector & Status Viewer

pgo: Fast Proxmox Guest Connector & Status Viewer

A lightweight set of Bash scripts for Proxmox VE to quickly list and enter LXC containers and Virtual Machines directly from the node console. It bypasses the Proxmox Perl API by reading configuration files and PID states directly, reducing query times from several seconds to milliseconds.

Supports resolving targets by ID or exact hostname.

Installation

  1. Place both files (pgo and list-targets) into a directory that is part of your $PATH (e.g., ~/.local/bin/ or /usr/local/bin/).
  2. Make the scripts executable: