Skip to content

Instantly share code, notes, and snippets.

@farmio
farmio / knx-relative-dimming-for-lights.yaml
Last active May 31, 2024 06:53
KNX - relative dimming for lights blueprint
blueprint:
name: KNX - relative dimming for lights
description: Control Home Assistant light entities from KNX switching and relative dimming (DPT 3.007) telegrams.
homeassistant:
# `knx.telegram` trigger and `enabled` templates require Home Assistant 2024.6.0
min_version: "2024.6.0"
domain: automation
input:
target_lights:
name: Light
@cspinetta
cspinetta / decompile-java-classes-cfr
Last active June 4, 2021 17:50
An script to decompile multiple java classes with CFR Java Decompiler: http://www.benf.org/other/cfr/
#!/usr/bin/env bash
# USAGE: ./decompile-java-classes.sh -d {cfr jar} -i {input directory} -n {fiel name pattern} -o {output directory}
# Output directory and file name is optional
# File name accepts wildcard such as '*'
OUTPUTDIR="/tmp/decompiled-classes/"
FILE_NAME="*"