Trying to add support for (Tuya) MHCOZY TYZGTH16A DS18B20 temperature sensor with relay #23123
Replies: 10 comments 10 replies
-
I bought a Tuya Zigbee hub and ran the steps in "Find the data points" instructions.
Google says: |
Beta Was this translation helpful? Give feedback.
-
From the Tuya debug logs: Switch 1: Off and On switch_auto_1: (control mode could only be set to temperature in the app) Temp >30C turn off, <25C turn on: 80002C0100000001FA00000001 |
Beta Was this translation helpful? Give feedback.
-
I'm following carefully, my TYZGTH16A (Vine program) is also arriving, I'm really curious to understand how to add an unsupported device. |
Beta Was this translation helpful? Give feedback.
-
hi, trying to add custom .js from interface I receive this error: Request 'zigbee2mqtt/bridge/request/options' failed with error: 'external_converters must be array'
The JS file must be inside the /opt/zigbee2mqtt/data/ folder (where the zigbee2mqtt configuration.yaml file is located). The following code should be added to the configuration.yaml file
|
Beta Was this translation helpful? Give feedback.
-
I've just literally received one of these devices.... been trying to add it to ZHA and seen this post.... anyone succeeded ? any advice (novice here) welcomed.... |
Beta Was this translation helpful? Give feedback.
-
If anyone needs a little more help, after playing with the unit I was able to teak the code so that you can now see all of the relays. |
Beta Was this translation helpful? Give feedback.
-
Hi everybody, |
Beta Was this translation helpful? Give feedback.
-
I added the code submitted by emylive. The temperature probe appears to work, but I have a lot of errors in my logs:
I'm not sure about the changes RIcklws added. As far as I can tell there is only one relay in the device. |
Beta Was this translation helpful? Give feedback.
-
After the update the device is working - thank you I used a tasmota device via WLAN and here it was possible to connect multiple sensors to the same GPIO Pin. |
Beta Was this translation helpful? Give feedback.
-
I bought a pretty unique Zigbee device I found on Amazon: https://www.amazon.com/dp/B0D4DV81TH
It is essentially a Zigbee chip and a DS18B20 probe thermometer. The plan is to attach the probe to my dryer vent pipe to be able to determine when the dryer is running and when it is finished. I already have a YoLink sensor unit attached to the dryer vent and this method works very well. The YoLink setup is great, but it uses batteries and this Zigbee unit is mains-powered. I prefer mains-powered sensors when possible. This would also free up the YoLink sensor for some other job.
I tried following the 'support a new Tuya device' instructions and was able to make some headway. I asked around on the Discord and was advised to try using the "modernExtends" format for device support.
So far I have:
I can see a reasonable-looking temperature value in the exposes tab of the Z2M web UI. I can also see a switch. When I press the button on the device the state of the switch in the web UI changes.
When I try to change the state of the switch or change the value of the power-on behavior setting I get an error like this:
Publish 'set' 'state' to 'Dryer vent' failed: 'Error: ZCL command 0xa4c1382c30531e81/0 genOnOff.off({}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Timeout - 14011 - 0 - 227 - 6 - 11 after 10000ms)'
I don't really want to buy a Tuya Zigbee hub to snoop for the other parameters. I believe the device probably has some way to control the relay based on temperature probe input, but I don't see anything like that in the Z2M logs.
Beta Was this translation helpful? Give feedback.
All reactions