Skip to content

Instantly share code, notes, and snippets.

View lucasreiners's full-sized avatar

Lucas Reiners lucasreiners

  • Schwerin, Germany
View GitHub Profile
blueprint:
name: ZHA - Philips Hue Dimmer Switch Config - v2024.12.09
description: |
Control lights with a Philips Hue Dimmer Switch
domain: automation
source_url: https://gist.github.com/lucasreiners/59c456f0e05366ec7ce9b3f691ac3b2f
# Define the inputs for the blueprint
@lucasreiners
lucasreiners / hue-remote-dimmer-july-2022.yaml
Last active October 8, 2023 19:32 — forked from lksnyder0/hue-remote-dimmer-january-2022.yaml
Blueprint to create Home Assistant automations based on Hue Remote Dimmer Button Press/Holds (created using the RWL020 dimmer)
blueprint:
name: Hue Dimmer Remote With Hold and Initial Press
description: |
(Jul 2022 Update) Using a Hue bridge with which a dimmer remote is paired, allows you to configure actions based on said Hue Dimmer Remote
NOTE: tested with RWL020 but may also work with RWL021
domain: automation
source_url: https://gist.github.com/lksnyder0/6ad7bd5db9201f1c26019beb8bbb0ee7
input:
dimmer_device:
name: Dimmer Remote Device
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.AttributeSet;
import android.view.View;