shelly-script-examples
shelly-script-examples copied to clipboard
Updated BLE unpack code does not work
The last commit of updated BLE unpack code seems to be faulty. The Shelly BLU Button 1 button presses were only identified as undefined actions.
To Reproduce Steps to reproduce the behavior:
- Use the ble-shelly-btn-gateway-for-other-devices.js from current
mainbranch - Adjust it to fit your Shelly BLU Button and perform any action (e.g. toggle a switch).
- Roll out the script on a Shelly Gen 2 device to which the button is connected.
- Press the button and see in the log that the action is
undefinedin the code and the error message "Unknown event type in the config" is thrown in the log.
Expected behavior The button action is identified and the action in the script is executed.
Workaround Use the previous version of ble-shelly-btn-gateway-for-other-devices.jswhich works great.
Device and script details (please complete the following information):
- Shelly BLU Button, FW: 1.0.20
- Shelly Plus 2PM, FW:
20241011-114448/1.4.4-g6d2a586 - Failing script: ble-shelly-btn-gateway-for-other-devices.js
I have got the same issue with Shelly Plus 1 FW: 20241011-114452/1.4.4-g6d2a586 Even the previous script does not work.