Skip to content

script ble-shelly-motion.js contains unknown vars #156

@trickert76

Description

@trickert76

Describe the bug
The script ble-shelly-motion.js contains the 'logger' variable, which is not available on OS 1.6.2. It must be console.log

To Reproduce
Steps to reproduce the behavior:

  1. Import the Script ble-shelly-motion.js into your Shelly
  2. Configure it with an attached BLE motion MAC address and start it
  3. Wait for an event
  4. See console error "logger variable or function is unknown"

Expected behavior
I think, the script wasnt updated. In the past "logger" was ok, but now it's not working anymore. See line 17x etc.

Device and script details (please complete the following information):

  • Firmware version 1.6.2
  • Link to the script you were running: ble-shelly-motion.js
  • Tried on Shelly 1PM Mini Gen3

Additional context
By replacing all accurances of "logger" with "console.log" the script works fine. Don't know, if this is also an issue for other scripts

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions