shelly-script-examples icon indicating copy to clipboard operation
shelly-script-examples copied to clipboard

Updated BLE unpack code does not work

Open StefanZ8n opened this issue 11 months ago • 1 comments

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:

  1. Use the ble-shelly-btn-gateway-for-other-devices.js from current main branch
  2. Adjust it to fit your Shelly BLU Button and perform any action (e.g. toggle a switch).
  3. Roll out the script on a Shelly Gen 2 device to which the button is connected.
  4. Press the button and see in the log that the action is undefined in 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):

StefanZ8n avatar Jan 03 '25 22:01 StefanZ8n

I have got the same issue with Shelly Plus 1 FW: 20241011-114452/1.4.4-g6d2a586 Even the previous script does not work.

gerico79 avatar Jan 11 '25 18:01 gerico79