Skip to content

Commit

Permalink
Button 7 LED fix
Browse files Browse the repository at this point in the history
  • Loading branch information
FlyingDiver committed Dec 23, 2022
1 parent 136a93b commit 2518f95
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
11 changes: 5 additions & 6 deletions Lutron RadioRA 2.indigoPlugin/Contents/Server Plugin/Devices.xml
Expand Up @@ -172,12 +172,11 @@
<Device type="relay" id="ra2Keypad">
<Name>Lutron Keypad</Name>
<ConfigUI>
<Field id="isButton" type="checkbox" defaultValue="True" hidden="true"/>
<Field id="listType" type="menu" defaultValue="button">
<Field id="isButton" type="menu" defaultValue="true">
<Label>Type:</Label>
<List>
<Option value="button">Keypad Button</Option>
<Option value="LED">Keypad LED</Option>
<Option value="true">Keypad Button</Option>
<Option value="false">Keypad LED</Option>
</List>
</Field>
<Field id="gateway" type="menu">
Expand All @@ -203,10 +202,10 @@
<Title>Add Room</Title>
<CallbackMethod>do_add_room</CallbackMethod>
</Field>
<Field id="keypadButtonDisplayLEDState" type="checkbox" defaultValue="false" visibleBindingId="listType" visibleBindingValue="LED">
<Field id="keypadButtonDisplayLEDState" type="checkbox" defaultValue="false" visibleBindingId="isButton" visibleBindingValue="false" alwaysUseInDialogHeightCalc="true">
<Label>Display LED state instead of button press status:</Label>
</Field>
<Field id="LEDhelp" type="label" enabledBindingId="keypadButtonDisplayLEDState" alignWithControl="keypadButtonDisplayLEDState" visibleBindingId="keypadButtonDisplayLEDState" visibleBindingValue="true" fontColor="orange">
<Field id="LEDhelp" type="label" enabledBindingId="keypadButtonDisplayLEDState" alignWithControl="keypadButtonDisplayLEDState" visibleBindingId="keypadButtonDisplayLEDState" visibleBindingValue="true" fontColor="orange" alwaysUseInDialogHeightCalc="true">
<Label>Display LED state option selected. Please make sure a button corresponding to this LED has also been defined in Indigo. For example, if you added LED 81, make sure you also added Button 1. LED 82 corresponds to Button 2, etc.</Label>
</Field>
</ConfigUI>
Expand Down
Expand Up @@ -46,7 +46,6 @@
PROP_EVENT = "event"
PROP_GROUP = "group"
PROP_CCO_TYPE = "ccoType"
PROP_LIST_TYPE = "listType"
PROP_KEYPADBUT_DISPLAY_LED_STATE = "keypadButtonDisplayLEDState"
PROP_SUPPORTS_STATUS_REQUEST = "SupportsStatusRequest"
PROP_BUTTONTYPE = "ButtonType"
Expand Down Expand Up @@ -2241,7 +2240,6 @@ def createCasetaDevices(self, valuesDict):

props = {
PROP_ROOM: areaName,
PROP_LIST_TYPE: "button",
PROP_GATEWAY: gatewayID,
PROP_INTEGRATION_ID: str(device["ID"]),
PROP_COMPONENT_ID: str(button["Number"]),
Expand Down Expand Up @@ -2513,7 +2511,6 @@ def createRRA2Devices(self, valuesDict):
buttonType = "Unknown"
props = {
PROP_ROOM: room.attrib['Name'],
PROP_LIST_TYPE: "button",
PROP_GATEWAY: gatewayID,
PROP_INTEGRATION_ID: device.attrib['IntegrationID'],
PROP_COMPONENT_ID: component.attrib['ComponentNumber'],
Expand All @@ -2537,7 +2534,6 @@ def createRRA2Devices(self, valuesDict):
address = gatewayID + ":" + device.attrib['IntegrationID'] + "." + keypadLED
props = {
PROP_ROOM: room.attrib['Name'],
PROP_LIST_TYPE: "LED",
PROP_GATEWAY: gatewayID,
PROP_INTEGRATION_ID: device.attrib['IntegrationID'],
PROP_COMPONENT_ID: keypadLED,
Expand Down Expand Up @@ -2573,7 +2569,6 @@ def createRRA2Devices(self, valuesDict):
buttonType = "Unknown"
props = {
PROP_ROOM: room.attrib['Name'],
PROP_LIST_TYPE: "button",
PROP_GATEWAY: gatewayID,
PROP_INTEGRATION_ID: device.attrib['IntegrationID'],
PROP_COMPONENT_ID: component.attrib['ComponentNumber'],
Expand All @@ -2590,7 +2585,6 @@ def createRRA2Devices(self, valuesDict):
address = gatewayID + ":" + device.attrib['IntegrationID'] + "." + keypadLED
props = {
PROP_ROOM: room.attrib['Name'],
PROP_LIST_TYPE: "LED",
PROP_GATEWAY: gatewayID,
PROP_INTEGRATION_ID: device.attrib['IntegrationID'],
PROP_COMPONENT_ID: keypadLED,
Expand Down

0 comments on commit 2518f95

Please sign in to comment.