-
Notifications
You must be signed in to change notification settings - Fork 62
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
[Bug] or [enhancement]?: repeated Shelly BLU button events without having pressed button repeatedly #980
Comments
Thanks for reporting a new issue @stefan-3r!
Otherwise this issue will be closed. |
Well, me neither (since I don't use the blu buttons in production). I will not setup a dev environment and let it run for 6+ hours |
Hi Matthias, point taken ;-) - meanwhile the error occured again two times, every about 6 hours. I added the second orccurence at the end of the log (see down below). You can see the altered pid:
If additional infos will help please give me a hint. Thank you |
Hi Matthias, |
The problem is, that even the pid changed in the second message:
I don't know how to distinguish between a "real" payload and a "status payload". |
That‘s the problem, right … :(. Somehow Shelly itself must be able to distinguish between both, but we don‘t see it in the payload. So only hope is to wait for firmware-update!? |
I'm sure that
Shelly device
Shelly BLU button in combination with Shelly Plus 1
Shelly firmware version
20240430-105743/1.3.1-gd8534ee (plus 1) and 1.0.16 (BLU button)
Protocol
MQTT
The problem
I used the experimental feature to communicate the BLE-device-messages via MQTT to iobroker. It works fine in general but I have one problem with the Shelly BLU button:
After the button is pressed (1x, 2x, 3x or long), the appropriate message is sent. Every abot 5 1/2 hours later the same message is send again ... and again .... I can't determine if the button is pressed again or if this is a repeated message since every value remains the same (except maybe rssi if I'm lucky - and of course pid; therefore the script doesn't filter it out as duplicate).
First thougt was that the BLU button is in beacon mode and sends new messages but it isn't. And the button defininetly isn't pressed again - as I can see, because it's always the same value in the "button"-field as in the first (really pressed) event.
In the changelog of shelly BLU firmware it says for v1.0.15: "Send firmware version on device boot/reboot and 4 times a day" - maybe this is the source of the message? Can you sort that out?
I used your script-version v0.2. I use the shelly-adapter in version 6.9.0 (didn't upgrade to nodejs v18, so I couldn't switch to v7.0.0 yet. If this bug (or maybe a feature to react to a bug in the shelly-firmware!?) is suppodes to be fixed in v7.0.0, please tell me - and I am going to update).
I experienced the bug with v1.0.12 and v1.0.16 of the BLU button firmware, both included in the debug.log. You can't see the second instance of the message unfortunately since I just activated the debug mode for this report and am not patient enough to wait 6 hours. I'll atach it later if neccessary for debugging...
Thanks for your great work and yout advice.
iobroker.current.log (in debug mode!)
debug.log
Version of nodejs
16.20.2
Version of ioBroker js-controller
5.0.12
Version of adapter
6.9.0
The text was updated successfully, but these errors were encountered: