Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
12.22k stars 1.69k forks source link

Tuya Temperature and humidity sensor with clock device - Nous Model SZ-T04 - not updating settings #17599

Closed bumperboy closed 1 year ago

bumperboy commented 1 year ago

What happened?

I bought and added a Tuya Zigbee Temperature and humidity sensor with clock device to my Z2M instance and it is displayed the expected values:

image

The problem is that, if I try to change some of the settings (see screenshot) the changes are not applied and the default values are displayed again

image

What did you expect to happen?

N/A

How to reproduce it (minimal and precise)

N/A

Zigbee2MQTT version

1.30.1-dev commit: fec7fca

Adapter firmware version

7.2.0.0 build 108

Adapter

Zigbee Model TS0601 Zigbee Manufacturer _TZE200_locansqn

Debug log

Debug 2023-05-08 14:58:00Received MQTT message on 'zigbee2mqtt/Nous Temp Quarto Pais/set' with data '{"temperature_report_interval":5}' Debug 2023-05-08 14:58:00Publishing 'set' 'temperature_report_interval' to 'Nous Temp Quarto Pais' Debug 2023-05-08 14:58:01Received MQTT message on 'zigbee2mqtt/Nous Temp Quarto Pais/set' with data '{"humidity_report_interval":120}' Debug 2023-05-08 14:58:01Publishing 'set' 'humidity_report_interval' to 'Nous Temp Quarto Pais' Debug 2023-05-08 14:58:01Received MQTT message on 'zigbee2mqtt/Nous Temp Quarto Pais/set' with data '{"humidity_report_interval":10}' Debug 2023-05-08 14:58:01Publishing 'set' 'humidity_report_interval' to 'Nous Temp Quarto Pais' Debug 2023-05-08 15:01:02Received MQTT message on 'zigbee2mqtt/Nous Temp Quarto Pais/set' with data '{"temperature_report_interval":5}' Debug 2023-05-08 15:01:02Publishing 'set' 'temperature_report_interval' to 'Nous Temp Quarto Pais' Debug 2023-05-08 15:01:08Received MQTT message on 'zigbee2mqtt/Nous Temp Quarto Pais/set' with data '{"temperature_report_interval":5}' Debug 2023-05-08 15:01:08Publishing 'set' 'temperature_report_interval' to 'Nous Temp Quarto Pais' Debug 2023-05-08 15:01:58Received Zigbee message from 'Nous Temp Quarto Pais', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0],"type":"Buffer"},"datatype":4,"dp":9}],"seq":43008}' from endpoint 1 with groupID 0 Info 2023-05-08 15:01:58MQTT publish: topic 'zigbee2mqtt/Nous Temp Quarto Pais', payload '{"battery":18,"humidity":64,"humidity_alarm":"upper_alarm","humidity_report_interval":120,"humidity_sensitivity":6,"linkquality":196,"max_humidity":60,"max_temperature":39,"min_humidity":20,"min_temperature":0,"temperature":20.1,"temperature_alarm":null,"temperature_report_interval":120,"temperature_sensitivity":0.6,"temperature_unit_convert":"celsius"}' Debug 2023-05-08 15:01:58Received Zigbee message from 'Nous Temp Quarto Pais', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,1,134],"type":"Buffer"},"datatype":2,"dp":10}],"seq":43264}' from endpoint 1 with groupID 0 Info 2023-05-08 15:01:58MQTT publish: topic 'zigbee2mqtt/Nous Temp Quarto Pais', payload '{"battery":18,"humidity":64,"humidity_alarm":"upper_alarm","humidity_report_interval":120,"humidity_sensitivity":6,"linkquality":196,"max_humidity":60,"max_temperature":39,"min_humidity":20,"min_temperature":0,"temperature":20.1,"temperature_alarm":null,"temperature_report_interval":120,"temperature_sensitivity":0.6,"temperature_unit_convert":"celsius"}' Debug 2023-05-08 15:01:58Received Zigbee message from 'Nous Temp Quarto Pais', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,0,0],"type":"Buffer"},"datatype":2,"dp":11}],"seq":43520}' from endpoint 1 with groupID 0 Info 2023-05-08 15:01:58MQTT publish: topic 'zigbee2mqtt/Nous Temp Quarto Pais', payload '{"battery":18,"humidity":64,"humidity_alarm":"upper_alarm","humidity_report_interval":120,"humidity_sensitivity":6,"linkquality":196,"max_humidity":60,"max_temperature":39,"min_humidity":20,"min_temperature":0,"temperature":20.1,"temperature_alarm":null,"temperature_report_interval":120,"temperature_sensitivity":0.6,"temperature_unit_convert":"celsius"}' Debug 2023-05-08 15:01:58Received Zigbee message from 'Nous Temp Quarto Pais', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,0,60],"type":"Buffer"},"datatype":2,"dp":12}],"seq":43776}' from endpoint 1 with groupID 0 Info 2023-05-08 15:01:58MQTT publish: topic 'zigbee2mqtt/Nous Temp Quarto Pais', payload '{"battery":18,"humidity":64,"humidity_alarm":"upper_alarm","humidity_report_interval":120,"humidity_sensitivity":6,"linkquality":196,"max_humidity":60,"max_temperature":39,"min_humidity":20,"min_temperature":0,"temperature":20.1,"temperature_alarm":null,"temperature_report_interval":120,"temperature_sensitivity":0.6,"temperature_unit_convert":"celsius"}' Debug 2023-05-08 15:01:58Received Zigbee message from 'Nous Temp Quarto Pais', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,0,20],"type":"Buffer"},"datatype":2,"dp":13}],"seq":44032}' from endpoint 1 with groupID 0 Info 2023-05-08 15:01:58MQTT publish: topic 'zigbee2mqtt/Nous Temp Quarto Pais', payload '{"battery":18,"humidity":64,"humidity_alarm":"upper_alarm","humidity_report_interval":120,"humidity_sensitivity":6,"linkquality":196,"max_humidity":60,"max_temperature":39,"min_humidity":20,"min_temperature":0,"temperature":20.1,"temperature_alarm":null,"temperature_report_interval":120,"temperature_sensitivity":0.6,"temperature_unit_convert":"celsius"}' Debug 2023-05-08 15:01:58Received Zigbee message from 'Nous Temp Quarto Pais', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,0,120],"type":"Buffer"},"datatype":2,"dp":17}],"seq":44288}' from endpoint 1 with groupID 0 Info 2023-05-08 15:01:58MQTT publish: topic 'zigbee2mqtt/Nous Temp Quarto Pais', payload '{"battery":18,"humidity":64,"humidity_alarm":"upper_alarm","humidity_report_interval":120,"humidity_sensitivity":6,"linkquality":196,"max_humidity":60,"max_temperature":39,"min_humidity":20,"min_temperature":0,"temperature":20.1,"temperature_alarm":null,"temperature_report_interval":120,"temperature_sensitivity":0.6,"temperature_unit_convert":"celsius"}' Debug 2023-05-08 15:01:59Received Zigbee message from 'Nous Temp Quarto Pais', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,0,120],"type":"Buffer"},"datatype":2,"dp":18}],"seq":44544}' from endpoint 1 with groupID 0 Info 2023-05-08 15:01:59MQTT publish: topic 'zigbee2mqtt/Nous Temp Quarto Pais', payload '{"battery":18,"humidity":64,"humidity_alarm":"upper_alarm","humidity_report_interval":120,"humidity_sensitivity":6,"linkquality":196,"max_humidity":60,"max_temperature":39,"min_humidity":20,"min_temperature":0,"temperature":20.1,"temperature_alarm":null,"temperature_report_interval":120,"temperature_sensitivity":0.6,"temperature_unit_convert":"celsius"}' Debug 2023-05-08 15:01:59Received Zigbee message from 'Nous Temp Quarto Pais', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,0,6],"type":"Buffer"},"datatype":2,"dp":19}],"seq":44800}' from endpoint 1 with groupID 0 Info 2023-05-08 15:01:59MQTT publish: topic 'zigbee2mqtt/Nous Temp Quarto Pais', payload '{"battery":18,"humidity":64,"humidity_alarm":"upper_alarm","humidity_report_interval":120,"humidity_sensitivity":6,"linkquality":196,"max_humidity":60,"max_temperature":39,"min_humidity":20,"min_temperature":0,"temperature":20.1,"temperature_alarm":null,"temperature_report_interval":120,"temperature_sensitivity":0.6,"temperature_unit_convert":"celsius"}' Debug 2023-05-08 15:01:59Received Zigbee message from 'Nous Temp Quarto Pais', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,0,6],"type":"Buffer"},"datatype":2,"dp":20}],"seq":45056}' from endpoint 1 with groupID 0 Info 2023-05-08 15:01:59MQTT publish: topic 'zigbee2mqtt/Nous Temp Quarto Pais', payload '{"battery":18,"humidity":64,"humidity_alarm":"upper_alarm","humidity_report_interval":120,"humidity_sensitivity":6,"linkquality":196,"max_humidity":60,"max_temperature":39,"min_humidity":20,"min_temperature":0,"temperature":20.1,"temperature_alarm":null,"temperature_report_interval":120,"temperature_sensitivity":0.6,"temperature_unit_convert":"celsius"}' Debug 2023-05-08 15:01:59Received Zigbee message from 'Nous Temp Quarto Pais', type 'commandMcuSyncTime', cluster 'manuSpecificTuya', data '{"payloadSize":177}' from endpoint 1 with groupID 0 Debug 2023-05-08 15:01:59Received Zigbee message from 'Nous Temp Quarto Pais', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,0,201],"type":"Buffer"},"datatype":2,"dp":1}],"seq":45568}' from endpoint 1 with groupID 0 Info 2023-05-08 15:01:59MQTT publish: topic 'zigbee2mqtt/Nous Temp Quarto Pais', payload '{"battery":18,"humidity":64,"humidity_alarm":"upper_alarm","humidity_report_interval":120,"humidity_sensitivity":6,"linkquality":196,"max_humidity":60,"max_temperature":39,"min_humidity":20,"min_temperature":0,"temperature":20.1,"temperature_alarm":null,"temperature_report_interval":120,"temperature_sensitivity":0.6,"temperature_unit_convert":"celsius"}' Debug 2023-05-08 15:01:59Received Zigbee message from 'Nous Temp Quarto Pais', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,0,63],"type":"Buffer"},"datatype":2,"dp":2}],"seq":45824}' from endpoint 1 with groupID 0 Info 2023-05-08 15:01:59MQTT publish: topic 'zigbee2mqtt/Nous Temp Quarto Pais', payload '{"battery":18,"humidity":63,"humidity_alarm":"upper_alarm","humidity_report_interval":120,"humidity_sensitivity":6,"linkquality":196,"max_humidity":60,"max_temperature":39,"min_humidity":20,"min_temperature":0,"temperature":20.1,"temperature_alarm":null,"temperature_report_interval":120,"temperature_sensitivity":0.6,"temperature_unit_convert":"celsius"}' Debug 2023-05-08 15:02:00Received Zigbee message from 'Nous Temp Quarto Pais', type 'commandMcuSyncTime', cluster 'manuSpecificTuya', data '{"payloadSize":181}' from endpoint 1 with groupID 0

kam821 commented 1 year ago

Same issue, Tuya Temperature & Humidity Sensor identified as TS0601 / _TZE200_locansqn / Nous SZ-T04

eloo commented 1 year ago

Also for me the same issue with a device like this: https://de.aliexpress.com/item/1005005118965547.html?spm=a2g0o.detail.1000014.1.175c65226apzqd&gps-id=pcDetailBottomMoreOtherSeller&scm=1007.40000.326746.0&scm_id=1007.40000.326746.0&scm-url=1007.40000.326746.0&pvid=c9517fa1-87b2-4204-8630-1aa1cb807c01&_t=gps-id:pcDetailBottomMoreOtherSeller,scm-url:1007.40000.326746.0,pvid:c9517fa1-87b2-4204-8630-1aa1cb807c01,tpp_buckets:668%232846%238116%23929&pdp_npi=3%40dis%21EUR%2125.48%215.92%21%21%21%21%21%40211b80c216855340933804412e9015%2112000031724291658%21rec%21DE%21

image

CaptInsano commented 1 year ago

Just to add,

Same thing here. I cannot change any values:

Reporting Intervals, temp/humidity alarm values.

Default values just remain.

Device nought after recommendation here:

https://smarthomescene.com/reviews/zigbee-temperature-humidity-sensor-with-a-screen-sz-t04-review/

CaptInsano commented 1 year ago

Fix:

Press the button on the top of the device directly before changing settings in Zigbee2mqtt and the settings changes apply correctly.

Device must not accept settings changes when "asleep".

nolashadow commented 1 year ago

What about the time. Want to change from 24 to 12 hour. Can’t find a way to change it.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

eloo commented 1 year ago

not stale

alehuo commented 10 months ago

Fix:

Press the button on the top of the device directly before changing settings in Zigbee2mqtt and the settings changes apply correctly.

Device must not accept settings changes when "asleep".

Same issue with TuYa TH01Z. (Zigbee Model TS0601, Zigbee Manufacturer _TZE200_locansqn).

Pressing the top button and then changing the parameters work. This should be noted in the instructions page of the device: https://www.zigbee2mqtt.io/devices/TH01Z.html