How to use MHCOZY 4 relay w/temp

1st, I am using a c-7 updated yesterday.

When I pair it to the hub, it sets the wrong driver so I changed it to generic multi point switch and click configure. Now it has the 4 child devices for all 4 relays and the master will turn all 4 relays off or on.

But...when I go to make a rule using the temp sensor, this device is not in the drop-down selections given. I can see the temp and it changes when I grab the temp probe.

What am I missing here?

Thanks

Oh, the model is TYZGTH4CH-B1RF

check the child device drivers?

Use custom attribute in trigger?

2 Likes

Are you saying you see a temperature attribute on the parent device, and it gets updated from the board, but you just cannot find it to make a rule?

I didn't think that the built-in driver creates a temperature attribute, unless it was updated or something. Does the parent device also show as having the temperature capability, by showing up under Temperature Sensors in Rule Machine?

You should just be able to choose it as a custom attribute in RM if it is not listed as a temp sensor, if the temperature attribute is there in the parent, even if the driver does not have the temperature measurement capability.

@chrisbvt

Yes, the parent device shows the actual temp, not the child devices.

And correct on the rule machine does not list it when I go to select the temp devices. (The parent device does not show up under temperature devices.)

Under the parent device it says EP list and (01","02","03","04","F2)

I don't know if that helps.

Hey guys, I just noticed something. Even though the screenshot shows 68.3, it never changes so I believe it is useless to continue down this line of questions.

Thanks for the replies though. Your the best

Where were you seeing the temperature change?

When I first added the device it was choosing a incorrect driver that would not create child devices. It was that driver that was able to see the temp change.

The generic driver shows the relays (as child devices) but the temp does not change now.

For a test, I removed the relay board from the hub, I reset it and re-paired it. It defaults to driver:

Tuya Temperature Humidity Illuminance LCD Display with a Clock

With that driver it does create two child devices, one for relay one and another for the temperature and I can use the temp to turn on off any switch or the first relay on the 4-relay board.

That is why I tried the generic zigbee multi-point switch but this driver can control the 4 relays but not the temperature even though it does make a child device for the temperature and a main switch child device that supposed to turn all relays on or off, but that doesn't work either. The temp just doesn't change and it (temp or main switch) can not be used in a rule if that makes sense.

To bad the two drivers can't be used for the same device. Lol. Or, maybe they could be combined into one driver labeled:

MHCOZY 4-RELAY BOARD

Hint hint. Is there anyone out there (@kkossev) that can do this? It is beyond my skills at the present time.

Hi Paul,

I can look at this device in the next days.

2 Likes

Funny timing, as I just had AI write me a custom driver for these 4-channel boards, because I wanted to modify the board to be an actual device (This was for my Swamp Cooler and a Tower Fan, specifically).

One thing I did see were the other endpoints reporting data with parse(), endpoints that were not for endpoints 1-4 (the relays). One of those is most likely temp.

I see your EpList state variable has an "F2" endpoint. That was probably the temperature endpoint left-over from when you had the first driver installed that actually was reporting temp. (all these boards do temp, most just do not come with the probe).

I see @kkossev is offering to help

I don't think it would be much for me to take my custom AI driver for this board and add the temperature reporting to it.

Note: These boards have an RF receiver built in as well. You can buy the remotes for them cheap on Ali Express and add them using the instructions that came with your board. (should you have a need for a remote).

Edit: Deepseek says temp on these is a non-standard cluster ID (0xEF00), with data point ID 0x0205.

It even mentioned @kkossev:

Hubitat : Built-in drivers may not expose the temperature. The community has developed custom drivers that can parse the Tuya EF00 cluster. You can search the Hubitat community for kkossev drivers, which are known to work with Tuya device

So this is totally Krassimir's wheelhouse, I really haven't worked with Zigbee clusters until this week. I could probably figure it out but this would be easy stuff him.

Thanks for the info @chrisbvt. I just checked my boxes that mine come in and every one has the thermocouple. Now that I see that, I could use a couple of them for battery temps, and just one for powerhouse temperature.

And yes, they do have the RF receiver in them. Hence the last part of the part number(B1RF). Lol Oh, and they do have one listed without the B1RF too.

Again, thank you for your insight while using these 4-relay boards.

Hey @kkossev, thank you. At least I was able to figure out which apps actual has the temp, and the relays. Lol

I will check back later.

Paul

Hey @chrisbvt,

1st, which AI?

2nd, if it is the chat or ai, I tried to put in build driver and it tells me sorry, I don't know how to do that. Lol

Thanks

@pauljneil2 try the new Tuya Temperature Humidity Illuminance LCD Display with a Clock driver version 2.1.1

When I have a chance, I can show you how to use AI to make a dedicated custom driver for this device.

Ok, I just tried it. I believe it is showing the temp but I will have to wait a little to see if it changes. It did not create a child device for the temperature. It does look like the relays work. One thing that it still won't do is using the temp in rule machine or in basic rules.

Is there anything else you need from me?

Thanks again for looking into this.

Paul

Did it create four child devices for the four relays? Can you control each of the relays independantly?

The 'Tuya Temperature, Humidity, and Illuminance LCD Display with Clock' driver primarily measures temperature, and there is no need to create child devices.

Ok, yes it did create the 4 relay child devices and they work. I needed to use the temp sensors to watch my lifepo4 battery banks and I need to use that temp to heat or cool my powerhouse. As for the driver showing the temp, it does show the temp when installed, but now it doesn't change values.

The driver originally did monitor the temp and when the temp would change (me putting the probe in my fist) it would reflect the change in hubitat.

Let me know if you need anything else.

Oh, why display the temp (in the parent device) if it can not be used to do anything?

I just checked and It does show the temp in my dashboard.

I will run more tests tomorrow. It's dark and raining here.

Thanks

I just checked and the temp has changed so that part is working.

Thanks. Tomorrow is another day.

Thank you, thank you, thank you. It now allows me to use the value in apps now! Hot Dog! I believe you got it!

1 Like

One last request. On the input power port 7-32vdc, can the device show that value like the temp does? If so, that would even solve my battery bank voltage and allow me to turn off loads to keep from the battery from draining my 44 kwh battery bank and preventing damage.

It is just an idea and I am not certif it can do that.