moifort / homebridge-create-fan

Connect your create ceiling fan into homekit
Apache License 2.0
8 stars 4 forks source link

Fan suddenly not responding anymore in HomeKit #17

Closed m0kum closed 3 months ago

m0kum commented 3 months ago

Describe The Bug: Device not responding in HomeKit anymore. Previously worked fine without change of config.

Expected behavior: Device responding.

Logs:

[Create Ceiling Fan] Connected

/volume1/homebridge/node_modules/homebridge-create-ceiling-fan/dist/platformAccessory.js:53
            const isOn = data.dps['60'];
                                 ^
TypeError: Cannot read properties of undefined (reading '60')
    at TuyaDevice.stateHook (/volume1/homebridge/node_modules/homebridge-create-ceiling-fan/dist/platformAccessory.js:53:34)
    at TuyaDevice.emit (node:events:526:35)
    at TuyaDevice._packetHandler (/volume1/homebridge/node_modules/homebridge-create-ceiling-fan/node_modules/tuyapi/index.js:840:12)
    at /volume1/homebridge/node_modules/homebridge-create-ceiling-fan/node_modules/tuyapi/index.js:643:39
    at Array.forEach (<anonymous>)
    at Socket.<anonymous> (/volume1/homebridge/node_modules/homebridge-create-ceiling-fan/node_modules/tuyapi/index.js:639:15)
    at Socket.emit (node:events:514:28)
    at addChunk (node:internal/streams/readable:376:12)
    at readableAddChunk (node:internal/streams/readable:349:9)
    at Socket.Readable.push (node:internal/streams/readable:286:10)

Environment: