As of version 2.0, I am only testing against AppDaemon 4.x. The app will likely continue to work with AppDaemon 3.x, but if you have an issue and are using AppDaemon 3.x, I will not be able to provide support.
An app to handle events from a SmartThings Button. See the repository for more details.
Define the app once for every button you have, giving it a unique name each time.
stairs_button:
module: stbutton
class: STButton
device_ieee: "00:00:00:00:00:00:00"
tap_action: toggle
tap_device: light.bar
hold_action: brightness
hold_device: light.bar
double_action: color
double_device: light.bar
double_colors: white,blue,red,green| key | optional | type | default | description |
|---|---|---|---|---|
module |
False | string | stbutton |
|
class |
False | string | STButton |
|
device_ieee |
True | string | The device_ieee of the button, if using ZHA. | |
button_name |
True | string | The name of the button, if using SmartThings integration. One of device_ieee or button_name must be present. |
|
tap_action |
True | string | The action to take when the button is tapped. Can be toggle, brightness, or color. |
|
tap_device |
True | string | The device to take the action on. Currently, only lights, light groups, switches, and input_booleans are supported. | |
tap_colors |
True | string | If tap_action is color, this is required. Specify a comma separated list of colors to cycle through when the button is tapped. |
|
hold_action |
True | string | The action to take when the button is held. Can be toggle, brightness, or color. |
|
hold_device |
True | string | The device to take the action on. Currently, only lights, light groups, switches, and input_booleans are supported. | |
hold_colors |
True | string | If hold_action is color, this is required. Specify a comma separated list of colors to cycle through when the button is held. |
|
double_action |
True | string | The action to take when the button is double-tapped. Can be toggle, brightness, or color. |
|
double_device |
True | string | The device to take the action on. Currently, only lights, light groups, switches, and input_booleans are supported. | |
double_colors |
True | string | If double_action is color, this is required. Specify a comma separated list of colors to cycle through when the button is double-tapped. |
