Skip to content

Instantly share code, notes, and snippets.

View kylewright's full-sized avatar

Kyle Wright kylewright

View GitHub Profile
blueprint:
name: ZHA - Philips Hue Dimmer Switch Config - V2024.11.25
description: |
Control lights with a Philips Hue Dimmer Switch (only RWL020 (US) and RWL021 (EU), RWL022, the one that says 'hue' on the bottom, has a different button layout.)
This blueprint is a simplified version of stefanroelofs's `ZHA - Philis Hue Dimmer Switch V2', but this one has no default inputs and with full configuration available. This makes the remote easily configurable for purposes other than controlling lights.
If you are intending to just use it for use as a light switch, I recommend using his blueprint, which you can find at https://gist.github.com/stefanroelofs/775e2e0a3cdb3d72a9451fb247492d59
It includes customizable 'on' button behaviour and default setup of the dimmer buttons to dim as they normally would. To make the configuration available for other automations, I had to remove these very useful functionalities.
@kylewright
kylewright / sonoff_zigbee_button_battery.yaml
Created January 17, 2026 13:00
Home Assistant Blueprint: Sonoff eWeLink Zigbee Button (WB01 / SNZB-01P) with Battery Alerts ZHA-compatible blueprint for Sonoff wireless buttons. Map single press, double press, and hold to any Home Assistant action. Features optional low battery monitoring with configurable threshold and mobile notifications. Supports single, restart, queued, …
blueprint:
name: Sonoff Zigbee Button
description: Setup actions for three functions of the SONOFF Zigbee button with
Press, Double Press, and Hold. Includes optional low battery notifications.
domain: automation
input:
button_id:
name: Button
description: The button to configure.
selector:
@kylewright
kylewright / leak_sensor_ha_blueprint.yaml
Last active January 16, 2026 17:13
Home Assistant Blueprint: Water Leak Detection & Low Battery Alerts Monitor any Zigbee/Z-Wave moisture sensor with battery voltage tracking. Sends mobile push notifications on leak detection or low battery, with optional automatic HVAC/climate shutoff. Fully configurable inputs for sensor entities, notification device, battery threshold, and app…
blueprint:
name: Leak Detection with Battery Monitoring
description: Monitors a moisture sensor for leaks and battery voltage, sending notifications and optionally controlling HVAC.
domain: automation
input:
appliance_name:
name: Appliance Name
description: Name of the appliance being monitored (used in notifications)
selector: