devices.esphome.io
Martin Jerry MJ-ST02
Martin Jerry MJ-ST02
Device Type: switchElectrical Standard: usBoard: esp8266
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
| Pin | Function |
|---|---|
| GPIO1 | Tuya Tx |
| GPIO3 | Tuya Rx |
Tuya Datapoints
| Datapoint | Function |
|---|---|
| 1 | switch |
| 7 | int value |
Basic Configuration
esphome: name: mj-st02
esp8266: board: esp01_1m # OTA flashingota: - platform: esphome
wifi: # Your Wifi network details # Enable fallback hotspot in case wifi connection fails ap:
# Enabling the logging componentlogger: baud_rate: 0
# Enable Home Assistant APIapi:
# Enable the captive portalcaptive_portal:
# Sync RTC with HAtime: - 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