esphome / esphome/feature-requests

Add Support for Martin Jerry 3-Way Tasmota Switch (MJ-ST02)

Open
#2,211 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
450
Forks
29
PR merge metrics
No merged PRs in 30d

Description

**Describe the problem you have/What new integration you would like**
Currently this switch has Tasmota already on it, but flashing to ESPHome proves problematic because the relay switches immediately to off so there doesn't appear to be a way to talk to the secondary MCU that this device has and control the switch properly with state (you can just offer a toggle as far as I can tell)

Here's the link to it: https://www.amazon.com/dp/B0BJ9D1NM1

**Please describe your use case for this integration and alternatives you've tried:**
This is the instructions for Tasmota configuration:
```

1. Configure the module as 'Tuya MCU (54)'
2. Set the template to:

{"NAME":"MJ 3Way Switch","GPIO":[255,255,255,255,52,53,0,0,21,9,157,255,0],"FLAG":0,"BASE":18}

3. In the console, enter:

switchmode1 5
TuyaMCU 11,1
```

Which works fine in Tasmota with MQTT but I don't use MQTT. I'd like to be able to create a configuration similar to the MJ-S01 that's in the device documentation and doesn't use Tuya, that sets the LEDs the same way depending on status, and reports proper light status in addition to being able to turn on and off the light.

**Additional context**
Seems to be secondary mcu stuff and I couldn't find any documentation to solve this myself to control communications to the secondary MCU or even how to monitor what the secondary MCU is sending back to the primary one so that I could fake it based on the values that it receives.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the MJ-S01 entry in the device documentation and compare it with the Tasmota template and commands provided here. Investigate how the secondary MCU communicates with the primary device and whether those messages can be observed. Done means the MJ-ST02 supports on/off control, reports light state, and sets its LEDs without MQTT.

Written by the indexing model from the issue text.

Assessment

Domain
embedded-iot
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.