Skip to content

Instantly share code, notes, and snippets.

blueprint:
name: Lutron Pico 5 Button - Light Entity Control
description: "This blueprint allows for the association of up to four Lutron Pico 5 Button (model PJ2-3BRL-GXX-X01) remotes with a light entity. It is designed to simulate the operation of a standard Lutron Caseta wall dimmer including the press and hold functionality for the raise/lower buttons. It allows for the control over the brightness step percentage and transition speed and the assignment of any action to the middle button."
source_url: https://gist.github.com/theadam/25d5a2acb9e6f167648871367d23bde4
domain: automation
input:
pico_1:
name: Pico Device

Keybase proof

I hereby claim:

  • I am theadam on github.
  • I am theadam (https://keybase.io/theadam) on keybase.
  • I have a public key whose fingerprint is 4CF8 C75F A813 F781 B305 EA46 659B 8613 5848 424F

To claim this, I am signing this object:

type generator 'a =
| End
| Next 'a (unit => generator 'a);
let rec intsFrom ::start :generator int => Next start (fun () => intsFrom start::(start + 1));
let ints = intsFrom start::0;
let rec tap fn gen =>
switch gen {
@theadam
theadam / esnextbin.md
Last active January 26, 2017 15:44
esnextbin sketch
@theadam
theadam / esnextbin.md
Created January 18, 2017 16:56
esnextbin sketch
@theadam
theadam / esnextbin.md
Created January 11, 2017 14:22
esnextbin sketch
// Try out by visiting: https://esnextb.in/?gist=e98c7a5295d3e940114ee87b7c273fe2
/*
* Recursively flattens each item in the array.
*/
function flatten(array) {
if (array.length === 0) return array;
const [head, ...tail] = array;
if (Array.isArray(head)) return flatten(head).concat(flatten(tail));
@theadam
theadam / esnextbin.md
Last active January 4, 2017 05:05
esnextbin sketch
@theadam
theadam / esnextbin.md
Created December 29, 2016 21:42
esnextbin sketch
@theadam
theadam / esnextbin.md
Last active November 30, 2016 08:15
esnextbin sketch