Skip to content

Tasmota Switch

Tasmota Switch

  • Manufacturer: Tasmota
  • Device ID: TasmotaSwitch
  • Controller types: Light (TasmotaSwitchLightController), Zigbee2MQTT Light (TasmotaSwitchZ2MLightController), Switch (TasmotaSwitchSwitchController), Cover (TasmotaSwitchCoverController)
  • Integrations: Tasmota (tasmota)

Build the configuration for this device

Light

  • Class: TasmotaSwitchLightController
  • Entity parameter: light
  • Default delay: 350ms

Default mapping

Each row shows the events fired by the device for each integration and the predefined action they trigger by default. You can change it with a custom mapping.

Tasmota Predefined action
TOGGLE toggle
ON on
OFF off
HOLD on_min_max_brightness

Example configuration

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
  • Entity parameter: light

Default mapping

Each row shows the events fired by the device for each integration and the predefined action they trigger by default. You can change it with a custom mapping.

Tasmota Predefined action
TOGGLE toggle
ON on
OFF off
HOLD set_half_brightness

Example configuration

example_app:
  module: controllerx
  class: TasmotaSwitchZ2MLightController
  integration:
    name: tasmota
    component: MyComponent
  controller: stat/tasmota_device/RESULT
  light: my_entity_id

Switch

  • Class: TasmotaSwitchSwitchController
  • Entity parameter: switch

Default mapping

Each row shows the events fired by the device for each integration and the predefined action they trigger by default. You can change it with a custom mapping.

Tasmota Predefined action
TOGGLE toggle
ON on
OFF off
HOLD No action

Example configuration

example_app:
  module: controllerx
  class: TasmotaSwitchSwitchController
  integration:
    name: tasmota
    component: MyComponent
  controller: stat/tasmota_device/RESULT
  switch: switch.my_entity_id

Cover

  • Class: TasmotaSwitchCoverController
  • Entity parameter: cover

Default mapping

Each row shows the events fired by the device for each integration and the predefined action they trigger by default. You can change it with a custom mapping.

Tasmota Predefined action
TOGGLE toggle_open
ON open
OFF close
HOLD toggle_close

Example configuration

example_app:
  module: controllerx
  class: TasmotaSwitchCoverController
  integration:
    name: tasmota
    component: MyComponent
  controller: stat/tasmota_device/RESULT
  cover: cover.my_entity_id