Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save alexbaldwin/2bc50163b0f0d9442b2095dfbe9a3d1b to your computer and use it in GitHub Desktop.
Save alexbaldwin/2bc50163b0f0d9442b2095dfbe9a3d1b to your computer and use it in GitHub Desktop.
Blueprint for Lutron Aurora automations in Hue. Toggles light on each button press
blueprint:
name: Hue - Lutron Aurora Dimmer - Toggle v1.0
description: 'Control lights with a Lutron Aurora Dimmer Pressing in the dimmer
button will toggle lights regardless of dimmer status. Rotating the dimmer will increase and decrease the light brightness.
Adjust the sensitivity if updates from the dimmer are being sent too quickly. Based on the great work of bjpetit!'
domain: automation
input:
remote:
name: Lutron Aurora Dimmer Switch
description: Lutron Aurora Z3-1BRL
selector:
device:
integration: hue
manufacturer: Lutron
light:
name: Light(s)
description: The light(s) to control
selector:
target:
entity:
domain: light
sensitivity:
name: Sensitivity
description: Reducing sensitivity will reduce rate of changes being sent to
lights
default: 3
selector:
number:
min: 1.0
max: 3.0
mode: slider
step: 1.0
source_url: https://gist.github.com/richlee91/01e13b35364e464b48a3dfa27024da70
mode: restart
max_exceeded: silent
trigger:
- platform: event
event_type: hue_event
event_data:
device_id: !input 'remote'
action:
- variables:
sensitivity_input: !input 'sensitivity'
selected_light: !input 'light'
command: '{{ trigger.event.data.type }}'
presstype: '{{ trigger.event.data.subtype }}'
- choose:
- conditions:
- '{{ command == ''short_release'' }}'
- '{{ presstype == 1 }}'
sequence:
- service: light.toggle
target: '{{ selected_light }}'
- conditions:
- '{{ command == ''short_press'' }}'
- '{{ presstype == 2 }}'
sequence:
- service: light.toggle
target: '{{ selected_light }}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment