Hi, im recently got my RA3 system up and running with HA. I’m attempting to program short and long presses on the keypad so that a short press runs a specific lighting script, and a long press that basically just increases the brightness (and ideally can dim as well but i havent gotten that far).
This example automation describes my issue best - short press works just fine, but a short press is triggered everytime i do a long press because the integration fires a press and release event for a long press. I can’t figure out how to avoid this behavior, I have tried way more complicated automations and scripts but nothing’s worked. this example is merely to highlight the crux of the issue I haven’t been able to program around. any help would be much appreciated!
description: ""
trigger:
- platform: device
device_id: [ fill in your id ]
domain: lutron_caseta
type: press
subtype: Button 3
id: press
- platform: device
device_id: [ fill in your id ]
domain: lutron_caseta
type: release
subtype: Button 3
id: release
condition: []
action:
- choose:
- conditions:
- condition: trigger
id:
- press
sequence:
- service: script.lights
data:
target_lights: light.all_internal_lights
- conditions:
- condition: trigger
id:
- release
sequence:
- service: light.turn_on
target:
entity_id: light.all_internal_lights
data:
transition: 0.1
brightness_step_pct: 50
mode: single