Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"throttle" not throttling (some power meter are too talkative) #25030

Open
happyjaxx opened this issue Dec 3, 2024 · 6 comments
Open

"throttle" not throttling (some power meter are too talkative) #25030

happyjaxx opened this issue Dec 3, 2024 · 6 comments
Labels
problem Something isn't working

Comments

@happyjaxx
Copy link

happyjaxx commented Dec 3, 2024

What happened?

Hello !

Updated to 1.41.0 (and 1.42.0 since yesterday with a bit of hope) with the intent of using the 'throttle' (from pull #24122 ) on two _TZE204_ac0fhfiq TS0601_bidirectional_energy meters I set up a month ago to stat some energy in and outs

./update.sh
[....blabla...]
Building...

> zigbee2mqtt@1.42.0 build
> tsc && node index.js writehash

Restore configuration...
Starting Zigbee2MQTT...
Done!

(for context, one is set at the edge of the 'household' after the main grid meter, the other at the leads to the solar panels on the roof, these clamps have a dead band of +/- 300VA of realtime power but cumulative kWh energy metrics are good enough)

The clamps are very talkative and average a message on the zigbee network every 0.2 to 3 seconds on average
MQTT_Explorer

Issue being: I have HASS with the homekit addon and I strongly suspect that these overly talkative meters are generating enough homekit traffic to drain ios/watchos devices (I used homebridge before switching to HASS around the same time, but it was struggling, maybe for the same reasons, dunno, that wasn't very log verbose)... I'm kind of fed up to have to charge my phone and watch more than twice a day... So when I saw the throttle option, I went for it :) (I'd actually end up filtering the meters in HASS if I knew how I could)

Thanks in advance :)

What did you expect to happen?

Having the 'throttle' (without 'debounce') set in the config:

  '0xa4c138c1700ba5ee':
    friendly_name: power_meter_main
    throttle: 10
    homeassistant: {}
    optimistic: true
  '0xa4c13873b945ccd4':
    friendly_name: power_meter_solar
    homeassistant: {}
    optimistic: true
    throttle: 10

I expected to see messages no more often than every ten seconds... but it's still coming it faster than wanted (screenshot above)

How to reproduce it (minimal and precise)

No response

Zigbee2MQTT version

1.42.0

Adapter firmware version

20240710

Adapter

Sonoff Zigbee Plus

Setup

Debian container on Proxmox (with usb binding), mqtt on an Alpine Container

Debug log

log.log

@happyjaxx happyjaxx added the problem Something isn't working label Dec 3, 2024
@RobLeighton67
Copy link

RobLeighton67 commented Dec 4, 2024

Throttle is in 1.41.0 - the versions you mention precede the change ?

@happyjaxx
Copy link
Author

Sorry, I hand typed those, it was meant to be 1.41.0 and 1.42.0 (will edit ticket)

@RobLeighton67
Copy link

If the problem persists in 1.41.0 make sure that you don;t have a global 'debounce' setting as this takes preference.

@happyjaxx
Copy link
Author

Well thought, but unfortunatly no global debounce to be found

zigbee@z2m:/opt/zigbee2mqtt/data$ grep debounce configuration.yaml
zigbee@z2m:/opt/zigbee2mqtt/data$

@happyjaxx
Copy link
Author

And just to oust out any confusion, I am on 1.42.0
Zigbee2MQTT

@mociulski
Copy link

mociulski commented Dec 11, 2024

I do experience the same issue, tried with 1.41.0 and 1.42.0 as well:

image
"0x90395efffe896fc9": {
    "energy_precision": 0,
    "friendly_name": "Climate Energy",
    "homeassistant": {},
    "optimistic": true,
    "throttle": 10
}
I do not have debounce set globally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants