Skip to content

Instantly share code, notes, and snippets.

@davide125
davide125 / 4button-pico-with-looping-bp.yaml
Last active February 27, 2023 19:33 — forked from crkochan/4button-pico-with-looping-bp.yaml
4button-pico-with-looping-bp.yaml
blueprint:
name: Lutron Caseta Four-Button Scene Pico Actions With Looping
description: Short and long press automations for the Pico four-button remote, with support for looping actions.
domain: automation
input:
pico_remote:
name: Pico Four-Button Scene Remote
description: Select the Pico four-button scene remote to configure.
selector:
device:
@davide125
davide125 / linkind_1key_remote.yaml
Created October 4, 2021 03:28 — forked from kccricket/linkind_1key_remote.yaml
Home Assistant Blueprint for Linkind 1-key Remote Control
blueprint:
name: ZHA - Linkind 1-key Remote Control
description: |
"Control your light(s) with Linkind 1-key Remote Control
Select the Linkind remote and your lights.
You can toggle the lights On/Off, or hold the button to dim the lights."
domain: automation
input:
remote:
# filter_hash() takes two Hash objects and applies the second as a filter
# on the first one.
#
# Usage:
# filter_hash(hash, filter)
#
# Arguments:
# hash: Required Hash. The Hash to be filtered
# filter: Required Hash. The filter to apply against hash
#
@davide125
davide125 / default_spec.rb
Last active August 5, 2020 20:26
attribute allowlist repro
require_relative 'fb_helpers.rb'
describe FB::Helpers do
context 'filter_hash' do
it 'returns a passing hash unchanged' do
hash = {
'fb_sysctl' => {
'kernel.core_uses_pid' => 0,
},
}