Skip to content

Instantly share code, notes, and snippets.

View remcom's full-sized avatar
😎
-

Remco van Essen remcom

😎
-
View GitHub Profile
blueprint:
name: Room Motion Adaptive Lighting
description: >
Final version: supports up to 10 lights, motion triggers, adaptive brightness,
sleep mode dimming, unified manual override, proper logic separation, always-on
when dark mode, and configurable transition times for smooth lighting changes.
domain: automation
input:
motion_sensor:
name: Motion Sensor
@remcom
remcom / garden_sprinkler_blueprint.yaml
Created May 5, 2025 18:13
Automates a garden sprinkler with a smart switch, using OpenWeather forecast data.
blueprint:
name: Garden Sprinkler Automation (Advanced)
description: >
Automates a garden sprinkler with a smart switch, using OpenWeather forecast data.
- Runs only on selected days and times
- Uses forecasted max temperature for watering decision
- Skips watering if both today and tomorrow have more than 5mm rain forecast
- Adjusts watering duration based on forecast temperature
domain: automation
@remcom
remcom / update_lxc_containers.sh
Created May 2, 2020 11:32
Update all lxc vms
#!/bin/bash
# Purpose: Update all lxc vms
# Note: Tested on Debian 10 only
# -------------------------------------------------------
# Get the vm list
vms="$(lxc-ls --active)"
# Update each vm
update_vm(){