zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

TYZGTH1CH-D1RF does not use auto settings to turn on/off the device relais

Open wifiminime opened this issue 9 months ago • 1 comments

What happened?

When using auto settings, the device is not using the settings, via frontend log it seems to send the correct payload towards the device. However, when the device reports its state, some of the settings are missing (or not filled) I think that because of this the autosettings feature does not work at all. (automatic control of the relais when temperature threshold is reached)

device link: https://www.zigbee2mqtt.io/devices/TYZGTH1CH-D1RF.html#mumubiz-tyzgth1ch-d1rf

image of front end UI Image

publish action when pressing the "APPLY" button z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/VloerverwarmingpompTempControl', payload '{"auto_settings":{"enabled":"on","temp_greater_then":"on","temp_greater_value":25,"temp_lower_then":"off","temp_lower_value":15},"child_lock":"UNLOCK","humidity":null,"humidity_calibration":0,"humidity_sensitivity":1,"linkquality":91,"manual_mode":"OFF","power_outage_memory":"restore","state":"OFF","temperature":17,"temperature_calibration":0,"temperature_sensitivity":0.5}'

after this a payload with the state is received where parts are missing: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/VloerverwarmingpompTempControl', payload '{"auto_settings":{"enabled":"on","temp_greater_then":"on","temp_greater_value":25,"temp_lower_value":15},"child_lock":"UNLOCK","humidity":null,"humidity_calibration":0,"humidity_sensitivity":1,"linkquality":91,"manual_mode":"OFF","power_outage_memory":"restore","state":"OFF","temperature":17,"temperature_calibration":0,"temperature_sensitivity":0.5}'

It is visible that something is going wrong when using "temp_lower_then":"off" This value is not reported back. when using "temp_lower_then":"none" it is reported back

However in none of the circumstances the automatic settings appear to be working, this leaves me to believe that the settings are not being used by the device.

What did you expect to happen?

values are used by the device and relais switches based on the settings provided

How to reproduce it (minimal and precise)

fill in settings, change temperature of the sensor by holding it in your hand, nothing happens when threshold is exceeded.

Zigbee2MQTT version

2.1.1 commit: 1accb8b66b95b99658c50e4c0209edcb946a5fe2

Adapter firmware version

20221226

Adapter

zStack3x0

Setup

Containerized, intel NUC

Debug log

No response

wifiminime avatar Mar 20 '25 13:03 wifiminime

@kirovilya since you added this device in https://github.com/Koenkk/zigbee-herdsman-converters/pull/7657, did you test that the auto settings work?

Koenkk avatar Mar 20 '25 19:03 Koenkk

@kirovilya since you added this device in Koenkk/zigbee-herdsman-converters#7657, did you test that the auto settings work?

no, it's doesn't work.

z2m: Publish 'set' 'state' to 'central_heater' failed: 'Error: ZCL command 0xa4c1383cbea202dc/0 genOnOff.on({}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (Delivery failed for '1684'.)'

10der avatar Mar 27 '25 07:03 10der

@kirovilya since you added this device in Koenkk/zigbee-herdsman-converters#7657, did you test that the auto settings work?

btw,

	    // tuya.modernExtend.tuyaOnOff({powerOutageMemory: true, switchType: false}),
            deviceEndpoints({"endpoints":{"0":0,"1":1}}), 
            onOff({"powerOnBehavior":false,"endpointNames":["1"]}),

now device show me the actual state on/off and not error for genOnOff.on

10der avatar Mar 27 '25 08:03 10der

Fixed!

Changes will be available in the dev branch tomorrow and in the next release which is every 1st of the month.

@10der

z2m: Publish 'set' 'state' to 'central_heater' failed: 'Error: ZCL command 0xa4c1383cbea202dc/0 genOnOff.on({}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (Delivery failed for '1684'.)'

This is an intermittent connectivity issue, genOnOff.on was likely not the actual fix (tuya.modernExtend.tuyaOnOff works fine for me)

Koenkk avatar Mar 29 '25 15:03 Koenkk

Thanks guys, you're the best!!!

wifiminime avatar Mar 29 '25 16:03 wifiminime