MHCOZY Zigbee Dry Contact Relay for Lights, Garage Opener etc

For anyone interested… I have 3 garage door openers but MyQ only supports 2 so I needed a solution. Since I needed something new I wanted a local fix. I found the MHCOZY dry contact relays in single, dual and four relay configurations on amazon and thought I would give it a go. They have Zigbee and WiFi, I chose Zigbee. They also support a 433 Mhz Remote if you want. They have a common, normally closed and normally open contact on each channel.

It has 3 modes of operation, which is why I chose it. You cannot operate each relay in a different mode.

1: Each relay latches independently of the other. Good for lights.
2: Each relay independently makes a momentary (about a second) contact. Good for garage door button.
3: The relays latch opposite of each other. Good for ???

Two of my doors are in one garage another is separate so I have it wired to 2 of my door buttons in one garage with the relay set to momentary and it works perfectly.

My Conbee 1 found the device immediately and configured it as two light’s. I added a button for each door and changed the icon to a garage door. I also put a door/window sensor on each door so I could see if they were open or closed.

I highly recommend these if you want a dry contact relay for your project.

Amazon Link to what I used they are on eBay too if you are not in a hurry.

It does not have a box but if you have a 3D printer or know someone I made one the file is here.

There are other variations as well… This four channel Zigbee has a box and you can order remotes as well.

2 Likes

Interesting! Any chance you have an idea what the power draw is?

Would I be able to run this off batteries for 1+ year?

There is no way for me to answer your question it would depend on your specific use case. I run mine off a USB wall charger.

obviously you wouldn’t know my use case, I was just hoping you know the power draw in idle mode (just to stay connected to the network).

No idea what the power draw is you would need to check their documentation if you can find it.
Once you find the power draw battery life would depend on the chosen battery specification as it is meant to have a power supply either 5V or 12V as stated. So once again no idea without knowledge of your use case… I wasn’t trying to be a wise guy you’ll have to do some research.

What I can say is this has been working great for me with zero issues.

Hey,

Can you confirm that this relay:

MHCOZY 4 Channel 85-220V ZigBee Relay Switch with Clean Contact, Adjustable Self-Lock and Momentary Interlock Working Mode,Automate Garage Gate Door Blind(Zigbee Hub Needed) https://a.co/d/hjROlhS

Works with home assitant + Zigbee (ZHA)

Would love to have this controlling my outdoor lights etc.

I have used it with native ZHA and Zigbee2MQTT without any issues… ZHA showed it as a “Light” (on/off) and Zigbee2MQTT knows it’s a switch. As a bonus it also is a range extender (router).

Thanks for your reply :slight_smile:

I will order 2 units immidiately :slight_smile:

Keep in mind they make these in one, two and four contact configurations.

I’ve installed 4 channel version with Conbee2 and ZHA. Unfortunately I can switch on only one channel at time. If I try to switch second one then first turned off. It is not a big deal for my use, but I have not found this information before I did installation

On the 4 relay version the operation mode button (the button by itself) will change that. There are 3 operational modes… each time you push that button it changes the mode.

1: Triggering one relay changes the state of the others (what you have now)
2: The relay turns on and then off immediately (momentary contact)
3: Each relay operates on and off normally

The mode cannot be set for each relay indipendantly, they will all be in the same mode.

1 Like

Hello can u tell me hoe i change the modus?
I have 4 relai version
But i want it so that i turn on the relai it stays on.

There is a mode switch button on the PCB. The one that sits there on it’s one, not one of the 4 that are besides eachother.

How is it possible to configure the time that it stays on. I mean in the mode where it automatically switches off the relay after a specific time.

image

See the button that say’s Mode Switch above the other 4 buttons. It selects either momentary or on/off for the contacts. You cannot change the mode independantly it is all four contacts. For the dual relay it is the button furthest from the relays.

Each time you press the mode button it changes the mode type so don’t keep pressing it select what you need and leave it alone. I use these for garage doors so I set them to momentary.

Yes I got this. But how to configure the time that it stay on.
There is a mode where you can turn on the Relais and they switch off automatically. And it should be possible to configure the time that it stay on. But how??

I don’t recall a way to set the momentary time pretty sure it does not exist. You could set the mode to latch and write a script to toggle it at a specified time and call that script from your automation.

1 Like

I would like to use the MHCOZY ZG-005-RF zigbee 4ch for irrigation but I also need the ability to set the momentary switch timeout as mentioned above. I want peace of mind that if HA crashes or zigbee network goes down, the water will still turn off in hardware after max 5min. If I need more cycles I’ll just turn it on multiple times.

I found it kinds works if you send the “on” command and then immediately later you send the “on_with_timed_off” command and you specify "1 in on_time, and the number of seconds to keep it on in the off_wait_time.

So it works in reverse… which means the quirk is probably wrong for the device.

The quirk it uses is this one:

Quirk: zhaquirks.tuya.ts000x.Switch_4G_GPP

If the software crashes or I reboot HA after I turn it on and before I send the on_with_timed_off comand in reverse, I’m back to square one and the irrigation won’t stop and I don’t feel like I can trust this solution with the field set in reverse that appear to be working accidentally.

I wonder if Z2M handles this device better than ZHA for the on_with_timed_off, I haven’t tried.

If this isn’t easily fixable with zha-toolkit or in the zha quirk, I shall probably use two shelly plus 1 instead, those should be easily configurable as fixed 5min temporary switches.

How exactly do you send those two commands? I’m trying to test this out, because my device, when put into Momentary mode with the “Mode” button, will sometimes trigger multiple momentary pulses when controlled from the HA interface. (I am just trying to drive a garage door opener.) A command that has a timed-off seems like a good plan, though not as ideal as if the momentary mode actually worked right from HA.

WARNING: I’m not expert and everything described below could be wrong and unsafe, so if you take advice from this post it is at YOUR OWN RISK.

You need to go in the device page from the zigbee integration and click on “manage zigbee device” from a 3 dots popup. Then you need to find the cluster with the 0x00006 cluster there you will find the on with timed off command (in the command section).

I still didn’t like it because if the server crashes in between the “on” command and the “on with timed off”, it’ll never turn off then. So I structured my setup with irrigation with a 0.2A 250v fuse in front of everything on the phase. After the fuse there’s first thing a shelly 1 gen3 with the 4 layer pcb that I was told doesn’t require the rc snubber for an electrovalve 5w peak load, then a galvanic isolation and protection from short circuits 24v ac transformer, then on the secondary at 24ac I put the version of the mhcozy that can be powered on 12-24v ac that in turn activates the electrovalves that also run from the output of the same 24v ac transfomer.

So in the HA automation I turn on the shelly first with the timer auto off of 11min, then I wait 1 min for the zigbee mhcozy to go online, and then I activate the electrovalve from the mhcozy using zigbee (weird I have to use light.turn_on but I don’t care). So I can do 10min cycles for each electrovalve.

I think this is as good as it gets because the auto off timer will cut the power to the transformer too and I still have control of multiple electrovalves from the mhcozy with the hardware interlock enabled so not more than one electrovalve can run at once.

Best this setup provides full galvanic isolation and protection from short circuits, so I am optimistic it is as secure as SELV would be.

If at any time any of the components on the primary or secondary would draw more than 40w the fuse in line would go and turn off eveything permanently.

1 Like