32 lines
750 B
YAML
32 lines
750 B
YAML
blueprint:
|
|
name: Hue dimmer automation via hue integration
|
|
description: Hue dimmer automation via hue integration
|
|
domain: automation
|
|
input:
|
|
switch:
|
|
selector:
|
|
device:
|
|
button1_short_press:
|
|
default:
|
|
selector:
|
|
action:
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- "{{ var_button1 }}"
|
|
attribute: event_type
|
|
to:
|
|
- short_release
|
|
id: button1_short
|
|
conditions: []
|
|
actions:
|
|
- choose:
|
|
- conditions:
|
|
- condition: template
|
|
value_template: >-
|
|
{{ trigger.id == "button1_short"}}
|
|
sequence: !input button1_short_press
|
|
mode: single
|
|
trigger_variables:
|
|
var_switch: !input switch
|
|
var_button1: "{{ device_entities(switch)[1] }}" |