zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

All Tuya thermostats are dangerous for zigbee network.

Open NikitaKorneev opened this issue 3 years ago • 44 comments

What happened?

_TZE200_ye5jkfsb TS0601, _TZE200_znzs7yaw TS0601, _TZE200_aoclfnxz TS0601 And ALL the other Tuya Zigbee thermostats have a bug in their firmware that floods the network with messages.

Having more than couple of device will shut down an entire network at one point.

debounce option will not help.

What did you expect to happen?

No response

How to reproduce it (minimal and precise)

Add any Tuya - based zigbee thermostat and sniff the network/look at the info logs. You should see over 50 messages per second.

Zigbee2MQTT version

latest

Adapter firmware version

latest (it does not matter, you will see it on any version)

Adapter

Egony stick v4

Debug log

No response

NikitaKorneev avatar May 29 '23 14:05 NikitaKorneev

all Tuya Devices are very noisy ;-)

lux73 avatar May 29 '23 14:05 lux73

all Tuya Devices are very noisy ;-)

The reason I created this issue is because devices I am talking about paralyze network entirely!

NikitaKorneev avatar May 29 '23 14:05 NikitaKorneev

all Tuya Devices are very noisy ;-)

The reason I created this issue is because devices I am talking about paralyze network entirely!

I have just tried adding a Moes based one and it is doing the same thing, even when un-joined. Going to have to un-install it I think.

gpshml avatar May 29 '23 21:05 gpshml

@NikitaKorneev can you confirm this also happens with the TuYa gateway? https://www.zigbee2mqtt.io/advanced/zigbee/04_sniff_zigbee_traffic.html

Koenkk avatar May 30 '23 06:05 Koenkk

@NikitaKorneev can you confirm this also happens with the TuYa gateway? https://www.zigbee2mqtt.io/advanced/zigbee/04_sniff_zigbee_traffic.html

I have ordered everything I need for sniffing the network. BRB in about four days. Sorry, cannot do it earlier due to having no hardware

NikitaKorneev avatar May 31 '23 07:05 NikitaKorneev

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

github-actions[bot] avatar Jul 01 '23 00:07 github-actions[bot]

My apologies - had no time to do the sniffing. I will try to do it by the end of next week.

NikitaKorneev avatar Jul 05 '23 06:07 NikitaKorneev

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

github-actions[bot] avatar Aug 06 '23 00:08 github-actions[bot]

Yes, I have this problem too.

smarticz avatar Dec 10 '23 18:12 smarticz

I have the same problem with TZE204_aoclfnxz

kokireg avatar Feb 12 '24 13:02 kokireg

I was unable to sniff the network to get the logs. Does anyone have such ability?

NikitaKorneev avatar Feb 12 '24 16:02 NikitaKorneev

I can confirm it too.

Not all models are affected, but I met at least two already (one is sold as Beco Zigbee Thermostat, another MOES Smart Tuya).

Some models starts spamming the network almost immediately, other can work for months until they go crazy.

Besides significantly reducing the capacity of the Zigbee network by constantly transmitting void messages, devices also become unmanageable.

This is especially problematic, if those at the remote location. I often experienced that they stuck on the "switched on" mode, overheating the house left uninhabited over the winter.

Right now thermostat went crazy. It is uncontrollable, spams at rate of multiple messages per second and stuck in the "heat" state.

Frequent status update (typical for all spammy Tuya thermostats):

Zigbee2MQTT:info  2024-02-21 00:59:48: MQTT publish: topic 'zigbee2mqtt/Теплый пол кухня 2', payload '{"child_lock":null,"current_heating_setpoint":25,"deadzone_temperature":null,"heat":"OFF","linkquality":21,"local_temperature":4,"local_temperature_calibration":null,"max_temperature_limit":null,"min_temperature_limit":null,"preset":"hold","preset_mode":"hold","program":null,"running_state":"idle","sensor":null,"system_mode":"off"}'
Zigbee2MQTT:info  2024-02-21 00:59:49: MQTT publish: topic 'zigbee2mqtt/Теплый пол кухня 2', payload '{"child_lock":null,"current_heating_setpoint":25,"deadzone_temperature":null,"heat":"OFF","linkquality":21,"local_temperature":4,"local_temperature_calibration":null,"max_temperature_limit":null,"min_temperature_limit":null,"preset":"hold","preset_mode":"hold","program":null,"running_state":"idle","sensor":null,"system_mode":"off"}'
Zigbee2MQTT:info  2024-02-21 00:59:49: MQTT publish: topic 'zigbee2mqtt/Теплый пол кухня 2', payload '{"child_lock":null,"current_heating_setpoint":25,"deadzone_temperature":null,"heat":"OFF","linkquality":21,"local_temperature":4,"local_temperature_calibration":null,"max_temperature_limit":null,"min_temperature_limit":null,"preset":"hold","preset_mode":"hold","program":null,"running_state":"idle","sensor":null,"system_mode":"off"}'
Zigbee2MQTT:info  2024-02-21 00:59:49: MQTT publish: topic 'zigbee2mqtt/Теплый пол кухня 2', payload '{"child_lock":null,"current_heating_setpoint":25,"deadzone_temperature":null,"heat":"OFF","linkquality":21,"local_temperature":4,"local_temperature_calibration":null,"max_temperature_limit":null,"min_temperature_limit":null,"preset":"hold","preset_mode":"hold","program":null,"running_state":"idle","sensor":null,"system_mode":"off"}'

Dropping duplicate (debouncing) messages Z2M helps only partially, at least reducing the CPU usage of the Home Assistant server.

I wonder if it is possible to remotely restart such thermostat...

image

In this case this is a _TZE204_aoclfnxz device.

0anton avatar Feb 20 '24 22:02 0anton

Some problem with MOES BHT002/BHT006 device, _TZE204_aoclfnxz . Does anyone knows how to update firmware?

monqui-ulia avatar Sep 05 '24 12:09 monqui-ulia

Some problem with MOES BHT002/BHT006 device, _TZE204_aoclfnxz . Does anyone knows how to update firmware?

As I understand it - Tuya and only Tuya can.

NikitaKorneev avatar Sep 11 '24 11:09 NikitaKorneev

That's sad. Also have this problem. I will ask Beca (manufacturer) to fix their firmware, and share it. You can do the same, via email, or whatsup/we-chat. contact page

[email protected]
[email protected]
skype: Jingzi6789

0086-592-6151256
0086-17850149590

ubombi avatar Oct 19 '24 14:10 ubombi

Upd: Reasonable response from Beca.

Thank you for your feedback and for sharing the link, so that we can learn about the user experience first-hand.

Regarding the problem of Zigbee sending data frequently, we have learned about it and upgraded the program for the BHT-> 006GBZB model.

This problem will not occur again with the new product.

For customers who have already purchased, if you want to upgrade, you need an update tool worth $50, which is more expensive than the thermostat. It is not recommended to buy it.

Also asked for the new firmware. Or we can wait for someone to dump it from a newer device. I assume it requires a UART adapter, but deeply hope OTA is possible (by some default Tuya mechanism)

ubombi avatar Oct 23 '24 17:10 ubombi

Got similar response from Chinese representative of the producer (via Whatsapp, can share the number if needed). Same offer: to reprogram the devicee using some tool. I believe, anyway that a usual RS232-TTL programmer will do the job just fine. Only need to know the attachment points on the board and have an image / programming software. OTA was also told to me as not possible for this kind of devices. I remember this part of the conversation (about OTA) very well, because it somehow surprised me a lot, that they have nothing. He relied, its costs to order the feature in the firmware (!) and costs to maintain the infrastructure (distribution point). I was surprised by such cost awareness and also by seeming very complex and developed ecosystem they live in: hardware manufacturer AND a specialist firmware developer, which charges per each feature (like OTA) and the manufacturer carefully choose the feature set… Still it sucks a lot to have those thermostats with chatter bug, they spam the network a lot, affecting I believe the responsiveness of other devices, like light-button systems (those just hang, getting unresponsive then thermostats fires their bursts of identical messages)…

On Wed 23. Oct 2024 at 20:08, Vitalii Kozlovskyi @.***> wrote:

Upd: Reasonable response from Beca.

Thank you for your feedback and for sharing the link, so that we can learn about the user experience first-hand.

Regarding the problem of Zigbee sending data frequently, we have learned about it and upgraded the program for the BHT-> 006GBZB model.

This problem will not occur again with the new product.

For customers who have already purchased, if you want to upgrade, you need an update tool worth $50, which is more expensive than the thermostat. It is not recommended to buy it.

Also asked for the new firmware. Or we can for someone to dump it from a newer device. I assume it requires a UART adapter, but deeply hope OTA is possible (by some default Tuya mechanism)

— Reply to this email directly, view it on GitHub https://github.com/Koenkk/zigbee2mqtt/issues/17833#issuecomment-2432891687, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEECBZG2OWKENA4I4OGH5C3Z47JYBAVCNFSM6AAAAAAYS2WPZKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZSHA4TCNRYG4 . You are receiving this because you commented.Message ID: @.***>

0anton avatar Oct 23 '24 17:10 0anton

@0anton I would be very interested in a solution to flash a new firmware to these thermostats ... I have a lot of them installed and they are killing my network! I really need a solution .... thanks in advance!

jan0o0sch avatar Nov 07 '24 09:11 jan0o0sch

I have the same problem (2 of these thermostats on my network).

Previously, I had the same problem with Tuya presence sensors, but managed to fix this by flashing them using an ST-Link and jumper cables. Would be great if that could be done here as well.

jvdburgt avatar Jan 09 '25 10:01 jvdburgt

I have the same problem (2 of these thermostats on my network).

Previously, I had the same problem with Tuya presence sensors, but managed to fix this by flashing them using an ST-Link and jumper cables. Would be great if that could be done here as well.

Can you provide a link to what you flashed them with? I have multiple of these presence sensors that constantly spam the network. I would like to try flashing a new firmware.

JagerSprinkles avatar Jan 09 '25 14:01 JagerSprinkles