zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

TuYa BSD29_1: Updates to measurement polling interval require a restart to apply

Open nARN opened this issue 2 years ago • 3 comments

What happened?

Following up on #21018. Similarly to the @felipebraz I found it confusing that changing measurement poll interval does not affect the frequency of updates until Z2M is restarted.

It seems to only be necessary when polling is initially enabled. When polling interval is set to -1 the next change applies without restarting.

What did you expect to happen?

Either polling interval should apply right away, or, if the restart requirement is intentional, it should be documented (ideally in the UI itself, in addition to the device doc)

How to reproduce it (minimal and precise)

  • On the "Settings (specific)" tab of a TuYa BSD29_1, ensure that measurement poll interval is not -1 (the default of 60 seconds is ok)
  • Set measurement poll interval to a new value
  • Observe update frequency on the corresponding topic. It will be the previous update frequency
  • Restart zigbee2mqtt
  • Observe update frequency on the corresponding topic. It will be the new frequency.

To confirm that updates apply without restarting when polling is disabled:

  • set poll interval to -1
  • restart zigbee2mqtt (to apply the change)
  • set poll interval to a new positive value
  • Observe that updates are now coming through without a restart

Zigbee2MQTT version

1.35.1

Adapter firmware version

20210708

Adapter

Sonoff ZBDongle-P

Setup

RPi, RasPiOS bullseye arm64, systemd

Debug log

No response

nARN avatar Feb 12 '24 16:02 nARN

Yes, I also realised this, the settings doesn't get updated until z2m is restarted.

redpixy avatar Feb 15 '24 06:02 redpixy

Same here (using HomeAssistant). Changed the setting for the polling interval and it did not become active until I restarted zigbee2mqtt. You can easily verify that the setting is applied (or not) by filtering for the relevant messages in the "Log" tab of Homeassistant.

klelifo avatar Feb 18 '24 16:02 klelifo

I can confirm z2m needs a restart after changing the polling setting to make it effective.

verybadsoldier avatar May 20 '24 10:05 verybadsoldier

Can confirm as of 1.39.0 it still requires a restart of Z2M for the changes to take effect.

If this isn't intended to be implemented any time soon, perhaps it's wise to inform the users in the description to measurement_poll_interval to instruct them to restart Z2M for changes to take effect?

ZionFox avatar Jul 15 '24 13:07 ZionFox

Still problem on 1.40.0! Spent hours trying to figure out why my TS011F is not updating with correct power figures, thought it was a faulty plug. When stumbled upon this issue, restarted Z2M and plug now polling at correct intervals.

rolandas-valantinas avatar Oct 07 '24 17:10 rolandas-valantinas

confirm this problem is still present as of october 2024

ericcastro avatar Oct 22 '24 14:10 ericcastro

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

github-actions[bot] avatar Dec 30 '24 00:12 github-actions[bot]

Commenting to remove stale label.

ZionFox avatar Dec 30 '24 05:12 ZionFox

Just run into same problem on Version 2.0.0-2 with Tuya HW BSD29_1. So this issue is still open.

hugogithubs avatar Jan 07 '25 16:01 hugogithubs

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

github-actions[bot] avatar Mar 09 '25 00:03 github-actions[bot]

Still an issue

rolandas-valantinas avatar Mar 09 '25 07:03 rolandas-valantinas

still also here an issue with Tuya TS011F

JoergAdler avatar Apr 05 '25 12:04 JoergAdler