devices.esphome.io

Martin Jerry MJ-ST02

Martin Jerry MJ-ST02

Device Type: switch
Electrical Standard: us
Board: esp8266

Amazon Link

Martin Jerry MJ-ST02 3-Way Switch

I received mine when ordering Tasmota pre-flashed Martin Jerry 3-way switches from Amazon, even though the listing shows them as MJ-ST01 switches.

Notes

This product uses Tuya MCU to control the relay. It requires a baud rate of 9600.

GPIO Pinout

PinFunction
GPIO1Tuya Tx
GPIO3Tuya Rx

Tuya Datapoints

DatapointFunction
1switch
7int value

Basic Configuration

esphome:
name: mj-st02
esp8266:
board: esp01_1m
# OTA flashing
ota:
- platform: esphome
wifi: # Your Wifi network details
# Enable fallback hotspot in case wifi connection fails
ap:
# Enabling the logging component
logger:
baud_rate: 0
# Enable Home Assistant API
api:
# Enable the captive portal
captive_portal:
# Sync RTC with HA
time:
- platform: homeassistant
timezone: America/Chicago
uart:
rx_pin: GPIO3
tx_pin: GPIO1
baud_rate: 9600
tuya:
light:
- platform: tuya
name: mj-st02 Switch
switch_datapoint: 1
Edit this page on GitHub