Skip to content
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

LYWSD02MMC not working #125

Open
vbarba opened this issue Dec 10, 2020 · 5 comments
Open

LYWSD02MMC not working #125

vbarba opened this issue Dec 10, 2020 · 5 comments

Comments

@vbarba
Copy link

vbarba commented Dec 10, 2020

Hi,

I just added my LYWSD02MMC and I get the following error:

RangeError [ERR_OUT_OF_RANGE]: The value of "offset" is out of range. It must be >= 0 and <= 14. Received 15

Versions

  • homebridge: 1.2.4
  • homebridge-mi-hygrothermograph: 3.0.3
  • node: node --version
  • OS: raspbian (raspberry pi 3b)

Configuration

        {
            "name": "Termometro5",
            "address": "",
            "temperatureName": "Temperatura5",
            "humidityName": "Humedad5",
            "fakeGatoEnabled": true,
            "timeout": 15,
            "forceDiscovering": true,
            "forceDiscoveringDelay": 2500,
            "disableBatteryLevel": false,
            "lowBattery": 10,
            "temperatureOffset": 0,
            "humidityOffset": 0,
            "updateInterval": 10,
            "accessory": "Hygrotermograph"
        }
@vbarba
Copy link
Author

vbarba commented Dec 30, 2020

Here full details of the error:

RangeError [ERR_OUT_OF_RANGE]: The value of "offset" is out of range. It must be >= 0 and <= 14. Received 15
    at boundsError (internal/buffer.js:83:9)
    at Buffer.readInt16LE (internal/buffer.js:411:5)
    at Parser.parseTemperatureEvent (/homebridge/node_modules/homebridge-mi-hygrothermograph/lib/parser.js:235:32)
    at Parser.parseEventData (/homebridge/node_modules/homebridge-mi-hygrothermograph/lib/parser.js:205:21)
    at Parser.parse (/homebridge/node_modules/homebridge-mi-hygrothermograph/lib/parser.js:64:23)
    at Scanner.parseServiceData (/homebridge/node_modules/homebridge-mi-hygrothermograph/lib/scanner.js:171:52)
    at Scanner.onDiscover (/homebridge/node_modules/homebridge-mi-hygrothermograph/lib/scanner.js:92:25)
    at Noble.emit (events.js:327:22)
    at Noble.onDiscover (/homebridge/node_modules/homebridge-mi-hygrothermograph/node_modules/@abandonware/noble/lib/noble.js:196:10)
    at NobleBindings.emit (events.js:315:20) {
  code: 'ERR_OUT_OF_RANGE'
}

@hannseman
Copy link
Owner

Looks like an issue in noble which is a dependency this plugin use: abandonware/noble#84

@hannseman
Copy link
Owner

Appears like people have had success by using a Bluetooth Dongle or upgrading to RPI4. See akx/hass-ruuvitag#18. Please try that if possible.

@Tapsel99
Copy link

Tapsel99 commented Jan 13, 2022

Node.js Version | v16.13.1
NPM: v8.3.0
Plugin:3.1

I can't find any detailed error log or option in the plugin settings to turn this on.

[13/01/2022 19:35:17.713] [WARN] noble warning: unknown handle 64 disconnected!

I have a fresh HB installation on my new RPI4 with no BT Dongle but it still doesn't work. In the Home app it says unreachable/no response. I have another Plugin that uses BT which connects to a BT Thermostat.

@Ludwigtch
Copy link

Any update? Same error here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants