Comments (16)
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.
+1 Same issue here.
I rolled back 3.4.0, and everything is working as intended.
from homebridge-switchbot.
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.
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.
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.
Did this work for you on previous versions?
from homebridge-switchbot.
Getting the same issue. I disabled the Switchbot plugin and everything is working now.
from homebridge-switchbot.
And is this only on Bots for everyone?
from homebridge-switchbot.
And is this only on Bots for everyone?
Yep. I have the same error message as OP.
from homebridge-switchbot.
+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.
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.
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.
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.
v3.5.1 has been released, please install and let me know if this has been resolved.
from homebridge-switchbot.
from homebridge-switchbot.
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)
- Bug: Unknown statusCode HOT 3
- Bug: Hub 2: Hub 2 F0 Internal Server Error, An unexpected error on the SmartThings servers has occurred. These errors should be rare, statusCode: 500 HOT 5
- Bug: HOT 2
- Bug: cannot upgrade beyond v2.13.1 HOT 2
- Bug: v3.5.0-beta crashes on restart HOT 30
- Feature Request: Add Troubleshooting in docs HOT 5
- Feature Request: Customised Mode for Bot HOT 3
- Bug: Switchbot accessory status (Garage Door) stuck at "Opening" HOT 4
- Bug: Request to turn off bot is being sent as turn on request. HOT 3
- Bug: plugin loses humidity values for IO-Sensor during Parsing HOT 7
- Bug: Bug: latest update has broken Custom IR devices HOT 7
- Bug: Homebridge shuts down. If there is a ceiling light. HOT 5
- Bug: IR Air Conditioning will not turn on anymore, but off still works HOT 5
- Bug: switch lock not working throgh homebridge after 3.5 update HOT 3
- libudev.h: No such file or directory HOT 2
- Bug: IR Device A/C shows on HOT 1
- Accessory error in 3.5.1
- Bug: RangeError: Maximum call stack size exceeded
- Bug: new error log messages with latest version (v3.5.1) for SwitchBot Curtain devices
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-switchbot.