Little Help With a MHCOZY 2 Channel 5V 12V ZigBee Smart Relay?

MHCOZY 2 Channel 5V 12V ZigBee Smart Relay Switch

Well .. Like always I seem to have a problem LOL
I got this on amazon .. and it kinda works ..
I am using the Generic Zigbee Multi-Endpoint Switch
But it switches BOTH at the same time not one :confused:
ep01 and ep02 < work .. but activate both relays. ( see Pic )

Suggestions ??

https://www.amazon.com/dp/B08YY7XFS3?psc=1&ref=ppx_yo2ov_dt_b_product_details

image

1 Like

Have you tried pressing the mode button on the device? There are several modes that control how the relays operate. Itโ€™s the button farthest from the relays.

yea .. I have .. still does it .. just differently

This is a well-known Tuya switches 'effect' when not used with their own Zigbee hub.
It is fixed by casting a magic spell toward the enchanted Tuys devices during the initial pairing, from this point on the device should be back to normal.

  1. Install the Zemismart custom driver - I have added your new device fingerprint in version 0.7.1
  2. Delete the currently paired device from HE (use the red 'REMOVE DEVICE' button).
  3. Pair the MHCOZY relay board again to the HE hub. The Zemismart driver must be automatically selected during the pairing!
  4. Confirm the relays are controlled individually from the child devices.
  5. You can continue using this driver, or you can go back to the HE stock driver, it should be working OK as well.
5 Likes

Dude, you're a rock star.
Without you on this form, it would fall apart. and nothing would ever get done. LOL.

You're fixed worked perfectly and now everything is awesome.!
Thank you so much for taking the time to look into this. It's gonna be very cool for my garage doors to be able to open and close What I want them to. Thanks again. You rock!

1 Like

Fantastic Thanks!!!!! Spent a long time trying to sort this out! 2 minutes after finding this post I am all set!

THANKS!

Scott

I am wondering if the preferences set in the command area are supposed to be retained? I am specifically looking at power on state. I assume this means that if there is a power failure when the device is depowered that it will go to the state selected there. I can select "OFF" but when I save the preferences it resets it to "select" and does not behave as expected.

Is there something else I need to do to get that preference to stick?

UPDATE: the preferences while not reflected in the selection window do now seem to be sticking. I follow this process to get it to stick

  1. Select the desired state: OFF
  2. Press the Power On State button
  3. Save preferences.

That seems to save the preference when saving them alone did not work.

Thanks!

These are not preferences, but commands. First select the option, then click on the button above. Command options can not be retained in HE.

I agree it is confusingโ€ฆ Will change the command to be a preference on the next driver version major update.

1 Like

Thanks for your work! Very much appreciated!

1 Like

OMG, you are a god! Can I have sX with you now to show my gratitude? How on earth can a person be so great? You must eat a lot of chocolate!

I have a use case where I really really really need the mode setting to persist flawlessly. I need the interlock mode (one side on when the other goes off, etc) for an actuator switching polarities.

I suspect it is going to go back to default during a power failure but otherwise I hope there's no glitch that might disrupt how I physically set the mode. I guess this is not software controllable.

Thanks kisses for creating this. I have a similar switch and tried to use this driver with no luck. It this switch/relay:
Yitouniu Zigbee 2CH DC 7-32V Relay Smart Switch Module,Wireless APP Remote Control with Inching/Self-Lock/Interlock Switch modle,Works with Tuya Zigbee Gateway,Alexa,Google Home

Will this driver work for this?

LOL!!! Damn auto correction. kkossev Truly thanks for your help

have had this working since Mar 2024 ( 0 ) Problems :slight_smile:
Love this little gadget !

WarlockWeary, how did you pair the second relay? Mine is made by a different company, but functionally similar so I was hoping to use the same driver, however both relays work at the same time no mater what I do.

does it have two endpoints ?

For Tuya devices, you could try the Tuya dirvers.

I have used this driver, but it is not finding the second switch no matter which one I pair first, I always can only pair one device. While pairing the second device, the first one shows up one the pairing screen along with a button to hide previously paired switches.

Update: I Managed to get this working like everyone else. Thanks kkossev!
Note: On my device, Changing the type on the child devices caused it not to work. I kept the defaulted Generic Component Switch type and they worked independently as expected.

1 Like

Some Tuya devices require to be paired with the custom driver, so that they are 'unlocked' to work with a hub different than Tuya's. Once they pair and are configured properly (this configuration is effective only during a very short time period after the pairing), you can switch back to the HE inbuilt switch drivers, and the device will work properly.