Skip to content

Instantly share code, notes, and snippets.

View flfue's full-sized avatar

Florian Fürst flfue

View GitHub Profile
@flfue
flfue / gist:d3670e3ce74401078e8fa6657e6fd92b
Last active January 1, 2026 09:51
Shelly 2PM cover blind script
// Shelly Blinds Controller Script
// This script automatically controls Shelly smart blinds with scheduled actions.
// It executes a morning routine and an evening routine once per day.
// Each routine executes at a randomized time within a configured window,
// and can open, close, or set the blinds to a specific position percentage.
// Routines are managed with daily state tracking to ensure single execution per day.
// Note: When the script starts, it cleans up any existing scheduled jobs related to Cover operations
// === CONFIGURATION ===