mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
Add event entities to Lutron (#31841)
This commit is contained in:
parent
abdab9afa1
commit
5d32bf5abb
@ -3,6 +3,7 @@ title: Lutron
|
||||
description: Instructions on how to use Lutron devices with Home Assistant.
|
||||
ha_category:
|
||||
- Cover
|
||||
- Event
|
||||
- Fan
|
||||
- Hub
|
||||
- Light
|
||||
@ -17,6 +18,7 @@ ha_domain: lutron
|
||||
ha_platforms:
|
||||
- binary_sensor
|
||||
- cover
|
||||
- event
|
||||
- fan
|
||||
- light
|
||||
- scene
|
||||
@ -51,15 +53,7 @@ If you are using RadioRA2 software version 12 or later, the default `lutron` use
|
||||
|
||||
## Keypad buttons
|
||||
|
||||
Individual buttons on keypads are not represented as entities. Instead, they fire events called `lutron_event` whose payloads include `id`, `action`, and `uuid` attributes.
|
||||
|
||||
The `id` attribute includes the name of the keypad and the name of the button, normalized the same way entity names are. For example, if the keypad is called "Kitchen Keypad" and the button is called "Dinner" the event's `id` will be `kitchen_keypad_dinner`. If the button has not been assigned a name by the Lutron system installer then the button will have a name of "Unknown Button". In this case the `id` will be suffixed with the underlying Lutron button number and will be of the form `kitchen_keypad_unknown_button_1`. The `uuid` is available to distinguish buttons with the same name on one keypad.
|
||||
|
||||
The `action` attribute varies depending on the button type.
|
||||
|
||||
For raise/lower buttons (dimmer buttons, shade controls, etc.) there will be two values, `pressed` and `released`, fired when the button is pressed and when it's released, respectively.
|
||||
|
||||
For single-action buttons (scene selection, etc.), `action` will be `single`, and there will only be one event fired. This is a limitation of the Lutron controller which doesn't give Home Assistant any way of knowing when a single-action button is released.
|
||||
Keypad buttons actions are provided in event entities.
|
||||
|
||||
## Keypad LEDs
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user