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

Error when using newly supported BP04 #328

Open
DisneyFanatic4 opened this issue Nov 29, 2023 · 6 comments
Open

Error when using newly supported BP04 #328

DisneyFanatic4 opened this issue Nov 29, 2023 · 6 comments

Comments

@DisneyFanatic4
Copy link

I receive the following error when turning the device on or off.

[11/28/2023, 7:36:18 PM] Homebridge v1.7.0 (HAP v0.11.1) (Homebridge 9283) is running on port 51435.
[11/28/2023, 7:36:26 PM] [DysonPureCoolPlatform] <serial # removed> - set Active to 0: {"fpwr":"OFF","fmod":"OFF"}
[11/28/2023, 7:36:26 PM] TypeError: Cannot read properties of undefined (reading '1')
at MqttClient. (/homebridge/node_modules/homebridge-dyson-pure-cool/src/dyson-pure-cool-device.js:675:111)
at MqttClient.emit (node:events:517:28)
at MqttClient._handlePublish (/homebridge/node_modules/homebridge-dyson-pure-cool/node_modules/mqtt/lib/client.js:940:12)
at MqttClient._handlePacket (/homebridge/node_modules/homebridge-dyson-pure-cool/node_modules/mqtt/lib/client.js:305:12)
at work (/homebridge/node_modules/homebridge-dyson-pure-cool/node_modules/mqtt/lib/client.js:261:12)
at Writable.writable._write (/homebridge/node_modules/homebridge-dyson-pure-cool/node_modules/mqtt/lib/client.js:271:5)
at doWrite (/homebridge/node_modules/homebridge-dyson-pure-cool/node_modules/readable-stream/lib/_stream_writable.js:428:64)
at writeOrBuffer (/homebridge/node_modules/homebridge-dyson-pure-cool/node_modules/readable-stream/lib/_stream_writable.js:417:5)
at Writable.write (/homebridge/node_modules/homebridge-dyson-pure-cool/node_modules/readable-stream/lib/_stream_writable.js:334:11)
at Socket.ondata (node:internal/streams/readable:777:22)
[11/28/2023, 7:36:26 PM] Got SIGTERM, shutting down Homebridge...
[11/28/2023, 7:36:31 PM] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
[11/28/2023, 7:36:36 PM] [HB Supervisor] Restarting Homebridge...
[11/28/2023, 7:36:36 PM] [HB Supervisor] Starting Homebridge with extra flags: -I -P /var/lib/homebridge/node_modules --strict-plugin-resolution
[11/28/2023, 7:36:36 PM] [HB Supervisor] Started Homebridge v1.7.0 with PID: 28487

@shanon-p
Copy link

shanon-p commented Dec 1, 2023

Sames. Happens even when just controlling speed on my BP04

[12/2/2023, 12:25:21 AM] [DysonPureCoolPlatform] serial removed meow - set RotationSpeed to 30: {"fnsp":"0003"}
[12/2/2023, 12:25:21 AM] TypeError: Cannot read properties of undefined (reading '1')
at MqttClient. (/usr/local/lib/node_modules/homebridge-dyson-pure-cool/src/dyson-pure-cool-device.js:675:111)
at MqttClient.emit (node:events:390:28)
at MqttClient._handlePublish (/usr/local/lib/node_modules/homebridge-dyson-pure-cool/node_modules/mqtt/lib/client.js:940:12)
at MqttClient._handlePacket (/usr/local/lib/node_modules/homebridge-dyson-pure-cool/node_modules/mqtt/lib/client.js:305:12)
at work (/usr/local/lib/node_modules/homebridge-dyson-pure-cool/node_modules/mqtt/lib/client.js:261:12)
at Writable.writable._write (/usr/local/lib/node_modules/homebridge-dyson-pure-cool/node_modules/mqtt/lib/client.js:271:5)
at doWrite (/usr/local/lib/node_modules/homebridge-dyson-pure-cool/node_modules/readable-stream/lib/_stream_writable.js:428:64)
at writeOrBuffer (/usr/local/lib/node_modules/homebridge-dyson-pure-cool/node_modules/readable-stream/lib/_stream_writable.js:417:5)
at Writable.write (/usr/local/lib/node_modules/homebridge-dyson-pure-cool/node_modules/readable-stream/lib/_stream_writable.js:334:11)
at Socket.ondata (node:internal/streams/readable:754:22)
[12/2/2023, 12:25:21 AM] Got SIGTERM, shutting down Homebridge...
[12/2/2023, 12:25:26 AM] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
[12/2/2023, 12:25:32 AM] [HB Supervisor] Restarting Homebridge...

@demonbane
Copy link

Same issue here. Anytime I interact with my BP03 I get the error and homebridge crashes.

TypeError: Cannot read properties of undefined (reading '1')
    at MqttClient.<anonymous> (/var/lib/homebridge/node_modules/homebridge-dyson-pure-cool/src/dyson-pure-cool-device.js:675:111)
    at MqttClient.emit (node:events:514:28)
    at MqttClient._handlePublish (/var/lib/homebridge/node_modules/homebridge-dyson-pure-cool/node_modules/mqtt/lib/client.js:940:12)
    at MqttClient._handlePacket (/var/lib/homebridge/node_modules/homebridge-dyson-pure-cool/node_modules/mqtt/lib/client.js:305:12)
    at work (/var/lib/homebridge/node_modules/homebridge-dyson-pure-cool/node_modules/mqtt/lib/client.js:261:12)
    at Writable.writable._write (/var/lib/homebridge/node_modules/homebridge-dyson-pure-cool/node_modules/mqtt/lib/client.js:271:5)
    at doWrite (/var/lib/homebridge/node_modules/homebridge-dyson-pure-cool/node_modules/readable-stream/lib/_stream_writable.js:428:64)
    at writeOrBuffer (/var/lib/homebridge/node_modules/homebridge-dyson-pure-cool/node_modules/readable-stream/lib/_stream_writable.js:417:5)
    at Writable.write (/var/lib/homebridge/node_modules/homebridge-dyson-pure-cool/node_modules/readable-stream/lib/_stream_writable.js:334:11)
    at Socket.ondata (node:internal/streams/readable:817:22)

@okleahcim
Copy link

Also getting the same issue with the BP03. Plugin is unusable.

@jnordberg
Copy link

Same, looks like its being detected as the wrong device, or there is an assumption that all devices of that class has a swing mode which this one doesn't have.

https://github.com/lukasroegner/homebridge-dyson-pure-cool/blob/e3ea52e4ef004b02d35b983be6836c9d4d4de9f3/src/dyson-pure-cool-device.js#L675C17-L675C17

@rasmussen-bjoern
Copy link

I loved the plugin but this error crashes the homebridge and everything restarts when I click on the Dyson BP04. A quick fix would be extreme helpful. Or could we just comment out the swing mode somehow? Which would be the correct lines to change? I don't know much about Typescript and js.


[1/11/2024, 10:52:09 AM] TypeError: Cannot read properties of undefined (reading '1')
    at MqttClient.<anonymous> (/opt/homebrew/lib/node_modules/homebridge-dyson-pure-cool/src/dyson-pure-cool-device.js:675:111)
    at MqttClient.emit (node:events:519:28)
    at MqttClient._handlePublish (/opt/homebrew/lib/node_modules/homebridge-dyson-pure-cool/node_modules/mqtt/lib/client.js:940:12)
    at MqttClient._handlePacket (/opt/homebrew/lib/node_modules/homebridge-dyson-pure-cool/node_modules/mqtt/lib/client.js:305:12)

@demonbane
Copy link

If you have a lot of other things talking to homebridge this would be a good opportunity to set up a child bridge for just the Dyson devices to minimize disruptions for the rest of your home.

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

6 participants