Skip to content

Instantly share code, notes, and snippets.

View ropg's full-sized avatar

Rop Gonggrijp ropg

View GitHub Profile
@ropg
ropg / easy_setup_zha_philips_hue_v1_dimmer_switch.yaml
Last active October 14, 2023 15:02 — forked from hobbe/zha_blueprint_philips_hue_dimmer_swith_rwl021_fast_setup.yaml
Blueprint for easy setup of Philips Hue Dimmer Switch v1
blueprint:
domain: automation
name: Philips Hue Dimmer Switch v1 (RWL021), ZHA integration, simple yet versatile.
description: "
\_
Set up a house full of these dimmer switches quickly and without going crazy. All you
need to select is the dimmer switch and one or more lights or light groups. The default
behaviour of the buttons is as follows:
@ropg
ropg / axp192.py
Last active October 6, 2021 00:23
Pure python driver for AXP192 Power Management IC
# Python driver for the AXP192 Power Management IC.
#
# https://gist.github.com/ropg/7216ba90a9d7697114d4ba8aea7bee3c
#
# Written in 2021 by Rop Gonggrijp.
#
# Some functionality inspired by C driver written by Mika Tuupola
# (https://github.com/tuupola/axp192) and a fork of that maintained by
# Brian Starkey (https://github.com/usedbytes/axp192)
#