Skip to content

TasmotaSwitch

Picture Controller types Integrations
  • LightTasmotaSwitchLightController
  • Zigbee2MQTT LightTasmotaSwitchZ2MLightController
  • SwitchTasmotaSwitchSwitchController
  • CoverTasmotaSwitchCoverController
  • Tasmota (tasmota)

Light

Class: TasmotaSwitchLightController

Default delay: 350ms

Default mapping:

Tasmota Predefined actions
TOGGLE toggle
ON on
OFF off
HOLD on_min_max_brightness
example_app:
  module: controllerx
  class: TasmotaSwitchLightController
  integration:
    name: tasmota
    component: MyComponent
  controller: stat/tasmota_device/RESULT
  light: light.my_entity_id

Zigbee2MQTT Light

Class: TasmotaSwitchZ2MLightController

Default mapping:

Tasmota Predefined actions
TOGGLE toggle
ON on
OFF off
HOLD set_half_brightness
example_app:
  module: controllerx
  class: TasmotaSwitchZ2MLightController
  integration:
    name: tasmota
    component: MyComponent
  controller: stat/tasmota_device/RESULT
  light: my_entity_id

Switch

Class: TasmotaSwitchSwitchController

Default mapping:

Tasmota Predefined actions
TOGGLE toggle
ON on
OFF off
HOLD No action
example_app:
  module: controllerx
  class: TasmotaSwitchSwitchController
  integration:
    name: tasmota
    component: MyComponent
  controller: stat/tasmota_device/RESULT
  switch: switch.my_entity_id

Cover

Class: TasmotaSwitchCoverController

Default mapping:

Tasmota Predefined actions
TOGGLE toggle_open
ON open
OFF close
HOLD toggle_close
example_app:
  module: controllerx
  class: TasmotaSwitchCoverController
  integration:
    name: tasmota
    component: MyComponent
  controller: stat/tasmota_device/RESULT
  cover: cover.my_entity_id