Trying to add support for (Tuya) MHCOZY TYZGTH16A DS18B20 temperature sensor with relay #23123
Replies: 5 comments 6 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 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