-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
QBKG12LM power state wrong when debounce is use #3572
Comments
Please attach the debug logging of this issue. To enable debug logging set in advanced:
log_level: debug |
See 5th line show off again. Please note this not always happen.. means like 50%.
|
More logs
|
I think you should ignore the debounce of the devices:
'0x12345678':
friendly_name: "my_switch"
debounce: 60
debounce_ignore:
- state_left
- state_right |
This is my config
|
Let me break down the issue on the log
Previous state "state_left":"ON","state_right":"OFF"}
Received "state_left":"ON","state_right":"ON"}. which is correct
For unknown reason this wrong state published "state_left":"OFF","state_right":"OFF"}'
|
Found the issue, should be fixed in latest dev branch, please confirm. |
@Koenkk first of all thank you for all your work with this project. I´ve just moved from Conbee/Deconz to Z2M and it looks promising. I have debounce issues with latest version inc. dev-branch using Symfonisk Volume controller. When not using debounce, everything looks like it should in the log. When using the following settings, I get rotate_left and rotate_stop at the same time after 10s when I stop rotating. I´m expecting to get rotate_left when I start rotating and rotate_stop after 10s when I stop rotating: When I use the following settings, I don´t get rotate_left at all, only rotate_stop Shows the behaviour Without debounce it looks fine Should I create a new issue or is it related to this one? |
@mvjt it's not related to this issue so please create a new one |
Sorry, i dont chance to test on production system yet. Please allow until next week. Thanks for the fix. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Bug Report
What happened
I reported here but I believe this is a BUG.
https://zigbee2mqtt.discourse.group/t/qbkg12lm-spamming-power-non-stop/1195
Wall switch keep sending power update every seconds
I try to stop it by enabling debounce function but introduce a bug.
Initial state off/off
Action turn on light. Receive state_left: On <- Correct
However receive another wrong test right after that <- Wrong
What did you expect to happen
Wrong state should not be sent
How to reproduce it (minimal and precise)
turn on the light via mqtt several time within 1 mins.
Debug Info
Zigbee2mqtt version: 1.13.0
Adapter hardware: CC2531, CC2530, CC26X2R1 or CC1352P-2: CC2531
Adapter firmware version: Coordinator version 20190608
Possible cause by File receiver.js.
line 31
if (this.isPayloadConflicted(payload, this.debouncers[ieeeAddr].payload, debounceIgnore)) {
// publish previous payload immediately
this.debouncers[ieeeAddr].publish.flush();
}
The text was updated successfully, but these errors were encountered: