zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Reduce reporting interval on the TS0601 air quality sensor

Open CornerBit opened this issue 5 years ago • 48 comments

What happened

The device reports sensor values too frequently at approximately 200ms intervals. Below is an example of the reports I see:

info MQTT publish: topic 'zigbee2mqtt/0x<snip>', payload '{"co2":1,"elapsed":202,"formaldehyd":358,"humidity":56,"last_seen":"2021-10-03T01:33:07.265Z","linkquality":24,"temperature":24,"voc":0}'
info MQTT publish: topic 'zigbee2mqtt/0x<snip>', payload '{"co2":1,"elapsed":199,"formaldehyd":358,"humidity":56,"last_seen":"2021-10-03T01:33:07.465Z","linkquality":18,"temperature":24,"voc":0}'
info MQTT publish: topic 'zigbee2mqtt/0x<snip>', payload '{"co2":1,"elapsed":202,"formaldehyd":358,"humidity":56,"last_seen":"2021-10-03T01:33:07.667Z","linkquality":27,"temperature":24,"voc":0}'

I'm not sure how to reduce the reporting interval on the device. I can see the manuSpecificTuya cluster but no attributes are listed for it under the Reporting tab in the UI. I noticed a few other people have similar reporting interval issues in #7299. Any assistance with this would be greatly appreciated!

Debug info

Zigbee2MQTT version: 1.21.2 Adapter hardware: CC26X2R1

CornerBit avatar Oct 03 '21 01:10 CornerBit

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 Nov 03 '21 00:11 github-actions[bot]

Still seeing this issue in the latest version.

CornerBit avatar Nov 07 '21 09:11 CornerBit

@CornerBit Even when paired to Tuya gateway, this crappy device bombards the Zigbee network every second! I have switched mine off until a device firmware update is available that will allow configuration of the reporting intervals (highly unlikely..)

kkossev avatar Nov 08 '21 16:11 kkossev

@kkossev thanks for confirming it's a bug on the device end. Hopefully they do release an update, but I have my doubts...

CornerBit avatar Nov 10 '21 13:11 CornerBit

Yeah i have the same problem... the zigbee2mqtt is running like crazy with this device turned on.

RuneNyhuus avatar Nov 19 '21 12:11 RuneNyhuus

  • Same problems with T0601_air_quality round box

VikeDragon avatar Nov 19 '21 15:11 VikeDragon

My device never goes below 4 messages/sec and spams up to 10/s. It's pretty crazy. (TZE200_yvx5lh6k / round model)

dedors avatar Nov 24 '21 17:11 dedors

@CornerBit Even when paired to Tuya gateway, this crappy device bombards the Zigbee network every second! I have switched mine off until a device firmware update is available that will allow configuration of the reporting intervals (highly unlikely..)

Where do you even find the latest firmware updates? I was having trouble locating on the Tuya site. I'm having the same issue and it's causing problems with other devices based on the high amount of traffic on the network.

harryohalloran avatar Dec 02 '21 16:12 harryohalloran

Where do you even find the latest firmware updates? I was having trouble locating on the Tuya site. I'm having the same issue and it's causing problems with other devices based on the high amount of traffic on the network.

Firmware updates are available sometimes when the device is paired to Tuya gateway. But currently, there are no updates for TS0601.

There is something that I can't understand. The company (companies) that produce this crap should have become broke already - Tuya charges the manufacturers per the number of the API calls or messages sent to the cloud servers - https://developer.tuya.com/en/docs/iot/membership-service?id=K9m8k45jwvg9j

kkossev avatar Dec 03 '21 05:12 kkossev

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 Jan 03 '22 00:01 github-actions[bot]

also noticing this. Is there no way to limit this ? I have 2 and it's very taxiing on my gateway.

aaamoeder avatar Jan 11 '22 08:01 aaamoeder

also researching this too – i get an update every 2-3 seconds on every sensor in the device. it's not needed and is flooding my network. while i wait for a firmware update, is it at least possible for zigbee2mqtt to increase the interval it reports these values to HA?

jamesanf avatar Jan 19 '22 14:01 jamesanf

also researching this too – i get an update every 2-3 seconds on every sensor in the device. it's not needed and is flooding my network. while i wait for a firmware update, is it at least possible for zigbee2mqtt to increase the interval it reports these values to HA?

I have currently excluded these sensors from the recorder to relieve stress on the Database and have created filter sensors for the ones I like to have historical data for. Not a fix, but a workable workaround.

aaamoeder avatar Jan 19 '22 14:01 aaamoeder

That sounds sort of like what I need to do. Does by filter sensor do you mean a derivative sensor for the overactive ones? If so would you mind sharing your code? I'm interested in how you reduced the update rate of the new sensor

jamesanf avatar Jan 19 '22 16:01 jamesanf

also researching this too – i get an update every 2-3 seconds on every sensor in the device. it's not needed and is flooding my network. while i wait for a firmware update, is it at least possible for zigbee2mqtt to increase the interval it reports these values to HA?

I have currently excluded these sensors from the recorder to relieve stress on the Database and have created filter sensors for the ones I like to have historical data for. Not a fix, but a workable workaround.

I also wonder if you have tried to use the debounce feature in zigbee2mqtt's individual device.yaml settings? I've tried it, but anything above 'debounce: 2' kills all MQTT reporting altogether. But maybe I'm using it wrong?

jamesanf avatar Jan 19 '22 19:01 jamesanf

That sounds sort of like what I need to do. Does by filter sensor do you mean a derivative sensor for the overactive ones? If so would you mind sharing your code? I'm interested in how you reduced the update rate of the new sensor

look into the recorder and filter sensors ;-)

aaamoeder avatar Jan 20 '22 14:01 aaamoeder

above 'debounce: 2' kills all MQ

same here. It's 'better" but still to much messages.

bartplessers avatar Jan 24 '22 21:01 bartplessers

above 'debounce: 2' kills all MQ

same here. It's 'better" but still to much messages.

It basically meant that the device was dead, except for a seemingly random (and seemingly inaccurate) update 2-3 times a day. In the end I gave up; I don't know why the debounce broke it, everything I read seemed to suggest that it would just reduce the messages not eliminate them. I experimented with a few different debounce values before scrapping the device entirely. It will sit in a drawer until somebody can find a good fix – hopefully soon!

All in all, not worth the effort for a cheap and probably not very accurate sensor...

jamesanf avatar Jan 24 '22 21:01 jamesanf

is there any news on this ? I've had to disconnect our sensors due to zigbee network problems caused by the sensors overloading the network apparently..

aaamoeder avatar Feb 28 '22 13:02 aaamoeder

Same issue here, wen't through the available clusters and even the Tuya docs but couldn't find anything relative to this topic...

Related: https://github.com/zigpy/zha-device-handlers/issues/1470 Related: https://github.com/Koenkk/zigbee2mqtt/issues/8154 Related: https://github.com/Koenkk/zigbee2mqtt/issues/8220

@Koenkk Maybe reopen this topic as it's still an issue?

JoryHogeveen avatar Apr 08 '22 13:04 JoryHogeveen