gurumitts / pylutron-caseta

Apache License 2.0
153 stars 98 forks source link

Feature Request - Expose Keypad Button Presses for RA3 System #162

Open lraesly opened 6 months ago

lraesly commented 6 months ago

It looks like keypad button presses are not sent to Home Assistant. It would be very helpful with automations to have HA automations fire when a specific keypad button is pressed.

I can see the entities associated with a keypad button but they appear (and documentation says) that they are stateless. Not certain how to trigger an automation without a state change.

kyleaa commented 6 months ago

The button press comes through as an event, not as state. Use the Device automation trigger and all of your keypad buttons should appear. Here's a sample YAML from one of my automations

trigger:
  - platform: device
    device_id: f3d6a18998e576203788d91de043a5e7
    domain: lutron_caseta
    type: press
    subtype: Button 1
lraesly commented 6 months ago

Thanks, I see now. My confusion was that a keypad is listed twice in the device list. One has triggers and one has no triggers. I kept selecting the wrong one.

Just curious, do you know what the second device with no triggers is used for?

Thanks again!