Skip to content

Instantly share code, notes, and snippets.

View spotshare-nick's full-sized avatar

Nicholas McKenna spotshare-nick

View GitHub Profile
@spotshare-nick
spotshare-nick / vzm31-hold-to-dim.yaml
Last active June 12, 2026 06:34
Home Assistant blueprint: Inovelli VZM31-SN real-time hold-to-dim (step-loop, speed derived from switch dimming-speed param; optional transition method)
blueprint:
name: VZM31-SN Hold-to-Dim
description: >
Real-time hold-to-dim for an Inovelli VZM31-SN paddle in Smart Bulb Mode.
Hold Up to brighten / Down to dim the target light, with the ramp speed
derived from the switch's OWN dimming-speed param so the bulb tracks the
LED bar's native ramp. Two methods:
* step — many small absolute brightness steps (use for bulbs that
IGNORE `transition`: Matter, eWeLink/Zigbee, most Govee).
@spotshare-nick
spotshare-nick / vzm31-color-cycle.yaml
Created June 12, 2026 01:36
Home Assistant blueprint: Inovelli VZM31-SN Color Cycle (cycle an editable RGB/Kelvin palette from a button gesture; recolours the LED bar to match)
blueprint:
name: VZM31-SN Color Cycle
description: >
Cycle a light through an editable colour palette (RGB or colour-temperature)
from an Inovelli VZM31-SN button gesture, and recolour the switch LED bar to
match. Attach the cycle to ANY gesture (config press, double-tap, …) — the
action is decoupled from the button. Per-switch palette + index helper make it
reusable across switches/people.
domain: automation
input:
@spotshare-nick
spotshare-nick / vzm31-led-brightness-sync.yaml
Created June 12, 2026 00:09
Home Assistant blueprint: Inovelli VZM31-SN LED Brightness Sync (mirror a bulb's brightness onto the switch LED bar, Smart Bulb Mode)
blueprint:
name: VZM31-SN LED Brightness Sync
description: >
Mirror a controlled light's brightness onto an Inovelli VZM31-SN switch's LED
bar (the switch's internal level). For Smart Bulb Mode switches, where the LED
bar is decoupled from the bulb and would otherwise drift. Pauses while a
"dimming guard" input_boolean is ON, so it won't fight a hold-to-dim loop.
domain: automation
input:
source_light:
@spotshare-nick
spotshare-nick / ha_tuya_smart_button.yaml
Last active January 2, 2025 01:37
Home Assistant - Tuya Smart Button v1
blueprint:
name: ZHA - Tuya Smart Button v1.1
description: 'Control lights with a Tuya Smart Button. Pressing the button once will toggle the lights. Nothing else (yet)
is defined for double press or long press. Based on the great work of richlee91, bjpetit!'
domain: automation
input:
remote:
name: Tuya Smart Button
description: Tuya TS0041
selector: