Git Product home page Git Product logo

Comments (16)

donavanbecker avatar donavanbecker commented on July 2, 2024 5

I have found part of the issue, just need to figure out a fix and resolve it. I will do it as quick as I can as life allows.

from homebridge-switchbot.

Boscosticks avatar Boscosticks commented on July 2, 2024 2

+1 Same issue here.

I rolled back 3.4.0, and everything is working as intended.

from homebridge-switchbot.

CalamandreiLorenzo avatar CalamandreiLorenzo commented on July 2, 2024 1

Hi, idk if can be of any help, I think the error is also present for hubs, or at least I have a similar error for the humidity retrieving of hub2, the error message seems the same, so it could be related.

TypeError: Cannot read properties of undefined (reading 'CurrentRelativeHumidity') 
at Hub.updateHomeKitCharacteristics (file:///homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/hub.ts: 345:37)
at new Hub (file:///homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/hub.ts:141:10)
at SwitchBotPlatform.createHub2 (file:///homebridge/node_modules/@switchbot/homebridge-switchbot/src/platform.ts: 1094:9)
at processTicksAndRejections (node: internal/process/task_queues: 95:5)

from homebridge-switchbot.

teh-hippo avatar teh-hippo commented on July 2, 2024 1

I don't believe this is stale; I'm still on 3.4.
In case it helps, I'm running on a Raspberry Pi.

[21/06/2024, 8:49:41 am] [SwitchBot] Restoring existing accessory from cache: Hub 2 DeviceID: MY_DEVICE_ID
TypeError: Cannot read properties of undefined (reading 'battery')
    at Meter.BLEparseStatus (file:///var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/meter.ts:155:52)
    at file:///var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/meter.ts:267:18
    at runNextTicks (node:internal/process/task_queues:60:5)
    at listOnTimeout (node:internal/timers:540:9)
    at processTimers (node:internal/timers:514:7)
[21/06/2024, 8:49:47 am] [SwitchBot] Child bridge process ended

from homebridge-switchbot.

teh-hippo avatar teh-hippo commented on July 2, 2024 1

Issue is still occurring.

[21/06/2024, 4:48:10 pm] [SwitchBot] MeterPlus: Server Meter ad: {
  "id": "ab1c234567d8",
  "address": "ab:1c:23:45:67:d8",
  "rssi": -32,
  "serviceData": {
    "model": "i",
    "modelName": "WoSensorTH",
    "modelfriendlyName": "Meter",
    "temperature": {
      "c": 18.6,
      "f": 65.5
    },
    "fahrenheit": false,
    "humidity": 51,
    "battery": 100
  }
}
[21/06/2024, 4:48:12 pm] [SwitchBot] MeterPlus: Server Meter ad: {
  "id": "ab1c234567d8",
  "address": "ab:1c:23:45:67:d8",
  "rssi": -27,
  "serviceData": {
    "model": "i",
    "modelName": "WoSensorTH",
    "modelfriendlyName": "Meter",
    "temperature": {
      "c": 18.6,
      "f": 65.5
    },
    "fahrenheit": false,
    "humidity": 51,
    "battery": 100
  }
}
[21/06/2024, 4:48:14 pm] [SwitchBot] MeterPlus: Server Meter ad: {
  "id": "ab1c234567d8",
  "address": "ab:1c:23:45:67:d8",
  "rssi": -28,
  "serviceData": {
    "model": "i",
    "modelName": "WoSensorTH",
    "modelfriendlyName": "Meter",
    "temperature": {
      "c": 18.6,
      "f": 65.5
    },
    "fahrenheit": false,
    "humidity": 51,
    "battery": 100
  }
}
TypeError: Cannot read properties of undefined (reading 'c')
    at Meter.BLEparseStatus (file:///var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/meter.ts:164:47)
    at runNextTicks (node:internal/process/task_queues:60:5)
    at listOnTimeout (node:internal/timers:540:9)
    at processTimers (node:internal/timers:514:7)
    at file:///var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/meter.ts:263:11
[21/06/2024, 4:48:15 pm] [SwitchBot] Child bridge process ended

from homebridge-switchbot.

donavanbecker avatar donavanbecker commented on July 2, 2024

Did this work for you on previous versions?

from homebridge-switchbot.

badxhabit avatar badxhabit commented on July 2, 2024

Getting the same issue. I disabled the Switchbot plugin and everything is working now.

from homebridge-switchbot.

donavanbecker avatar donavanbecker commented on July 2, 2024

And is this only on Bots for everyone?

from homebridge-switchbot.

Boscosticks avatar Boscosticks commented on July 2, 2024

And is this only on Bots for everyone?

Yep. I have the same error message as OP.

from homebridge-switchbot.

morning3tar avatar morning3tar commented on July 2, 2024

+1 Same issue here.

I rolled back 3.4.0, and everything is working as intended.

I rolled back to the 3.4.0 version but the issue persists and not working.

from homebridge-switchbot.

teh-hippo avatar teh-hippo commented on July 2, 2024

Similar issue as above. Fixed by reverting the version.

[05/06/2024, 12:17:10 pm] [SwitchBot] Restoring existing accessory from cache: Hub 2 DeviceID: ABC123
TypeError: Cannot read properties of undefined (reading 'battery')
    at Meter.BLEparseStatus (file:///var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/meter.ts:155:52)
    at file:///var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/meter.ts:267:18
    at runNextTicks (node:internal/process/task_queues:60:5)
    at listOnTimeout (node:internal/timers:540:9)
    at processTimers (node:internal/timers:514:7)

from homebridge-switchbot.

github-actions avatar github-actions commented on July 2, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from homebridge-switchbot.

donavanbecker avatar donavanbecker commented on July 2, 2024

I don't believe this is stale; I'm still on 3.4. In case it helps, I'm running on a Raspberry Pi.

[21/06/2024, 8:49:41 am] [SwitchBot] Restoring existing accessory from cache: Hub 2 DeviceID: MY_DEVICE_ID
TypeError: Cannot read properties of undefined (reading 'battery')
    at Meter.BLEparseStatus (file:///var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/meter.ts:155:52)
    at file:///var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/meter.ts:267:18
    at runNextTicks (node:internal/process/task_queues:60:5)
    at listOnTimeout (node:internal/timers:540:9)
    at processTimers (node:internal/timers:514:7)
[21/06/2024, 8:49:47 am] [SwitchBot] Child bridge process ended

can you try the latest beta?

from homebridge-switchbot.

donavanbecker avatar donavanbecker commented on July 2, 2024

v3.5.1 has been released, please install and let me know if this has been resolved.

from homebridge-switchbot.

teh-hippo avatar teh-hippo commented on July 2, 2024

from homebridge-switchbot.

morning3tar avatar morning3tar commented on July 2, 2024

Still have some issues.

[01/07/2024, 10:22:15] [SwitchBot] Process Ended. Code: 1, Signal: null
[01/07/2024, 10:22:22] [SwitchBot] Restarting Process...
[01/07/2024, 10:22:22] [SwitchBot] Launched child bridge with PID 3737
[01/07/2024, 10:22:23] Registering platform '@switchbot/homebridge-switchbot.SwitchBot'
[01/07/2024, 10:22:23] [SwitchBot] Loaded @switchbot/homebridge-switchbot v3.5.1 child bridge successfully
[01/07/2024, 10:22:23] Loaded 1 cached accessories from cachedAccessories.0xx4xxxxD43x.
[01/07/2024, 10:22:23] Homebridge v1.8.3 (HAP v0.12.2) (SwitchBot) is running on port 32125.
[01/07/2024, 10:22:24] [SwitchBot] Total SwitchBot Devices Found: 1
[01/07/2024, 10:22:24] [SwitchBot] Restoring existing accessory from cache: SwitchBot deviceId: Dxx533xxxxxx
[01/07/2024, 10:22:29] [SwitchBot] Bot: SwitchBot failed to get serviceData, serviceData: [object Object]
TypeError: Converting circular structure to JSON
    --> starting at object with constructor 'Timeout'
    |     property '_idlePrev' -> object with constructor 'TimersList'
    --- property '_idleNext' closes the circle
    at JSON.stringify (<anonymous>)
    at Bot.BLERefreshConnection (file:///var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:1392:90)
    at file:///var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/src/device/bot.ts:680:22
[01/07/2024, 10:22:29] [SwitchBot] Child bridge process ended
[01/07/2024, 10:22:29] [SwitchBot] Process Ended. Code: 1, Signal: null
[01/07/2024, 10:22:36] [SwitchBot] Restarting Process...

from homebridge-switchbot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.