Skip to content

Instantly share code, notes, and snippets.

View eliroca's full-sized avatar

Elisei Roca eliroca

  • Germany
  • 05:27 (UTC +02:00)
View GitHub Profile
#!/bin/bash
set -euo pipefail
RED='\033[0;31m'
GREEN='\033[0;32m'
NC='\033[0m' # No Color
verbose_mode=false
test_mode=false
@eliroca
eliroca / hue_dimmer_v1.yaml
Last active November 11, 2023 20:03 — forked from stefanroelofs/hue_dimmer_switchV2.yaml
ZHA - Philips Hue Dimmer V1
blueprint:
name: ZHA - Philips Hue Dimmer V1
description: |
Control lights with a Philips Hue Dimmer Switch.
The top "on" button behaviour is adjustable. By default it behaves like this:
- Press it while the light is off, and the light will turn on to the last set brightness.
- Press it again while the light is on, the light will turn to the fixed brightness setting.
Dim up/down buttons will change the brightness smoothly and can be pressed
@eliroca
eliroca / hue_dimmer_v2_dual.yaml
Last active January 8, 2025 09:47 — forked from brodock/HueDimmer_RWL022.yaml
ZHA - Philips Hue Dimmer V2 Dual
blueprint:
name: ZHA - Philips Hue Dimmer V2 Dual
description:
"Control two lights with a Philips Hue Dimmer V2 (RWL022)"
domain: automation
input:
remote:
name: Philips Hue Dimmer
description: Pick a V2 Dimmer (RWL022)
selector:
@eliroca
eliroca / hue_dimmer_v2.yaml
Last active November 25, 2023 14:07
ZHA - Philips Hue Dimmer V2
blueprint:
name: ZHA - Philips Hue Dimmer V2
description:
"Control a Philips Hue Dimmer V2 (RWL022)"
domain: automation
input:
remote:
name: Philips Hue Dimmer
description: Pick a V2 Dimmer (RWL022)
selector: