Skip to content

TasmotaButton

Picture Controller types Integrations
  • LightTasmotaButtonLightController
  • Zigbee2MQTT LightTasmotaButtonZ2MLightController
  • SwitchTasmotaButtonSwitchController
  • CoverTasmotaButtonCoverController
  • Tasmota (tasmota)

Light

Class: TasmotaButtonLightController

Default delay: 350ms

Default mapping:

Tasmota Predefined actions
TOGGLE, SINGLE toggle
DOUBLE on_min_brightness
TRIPLE set_half_brightness
QUAD on_full_brightness
PENTA No action
HOLD hold_brightness_toggle
CLEAR release
example_app:
  module: controllerx
  class: TasmotaButtonLightController
  integration:
    name: tasmota
    component: MyComponent
  controller: stat/tasmota_device/RESULT
  light: light.my_entity_id

Zigbee2MQTT Light

Class: TasmotaButtonZ2MLightController

Default mapping:

Tasmota Predefined actions
TOGGLE, SINGLE toggle
DOUBLE on_min_brightness
TRIPLE set_half_brightness
QUAD on_full_brightness
PENTA No action
HOLD hold_brightness_toggle
CLEAR release
example_app:
  module: controllerx
  class: TasmotaButtonZ2MLightController
  integration:
    name: tasmota
    component: MyComponent
  controller: stat/tasmota_device/RESULT
  light: my_entity_id

Switch

Class: TasmotaButtonSwitchController

Default mapping:

Tasmota Predefined actions
TOGGLE, SINGLE toggle
DOUBLE on
TRIPLE off
QUAD, PENTA, HOLD, CLEAR No action
example_app:
  module: controllerx
  class: TasmotaButtonSwitchController
  integration:
    name: tasmota
    component: MyComponent
  controller: stat/tasmota_device/RESULT
  switch: switch.my_entity_id

Cover

Class: TasmotaButtonCoverController

Default mapping:

Tasmota Predefined actions
TOGGLE, SINGLE toggle_open
DOUBLE, HOLD close
TRIPLE, QUAD, PENTA, CLEAR No action
example_app:
  module: controllerx
  class: TasmotaButtonCoverController
  integration:
    name: tasmota
    component: MyComponent
  controller: stat/tasmota_device/RESULT
  cover: cover.my_entity_id