Whenever I send a MQTT command with topic
myBlind1/GET/positionState
the module crashes.
[4/7/2019, 10:00:06 PM] [Küche] Updated TargetPosition: 0 [4/7/2019, 10:00:07 PM] TypeError: Cannot read property '0' of undefined at MqttClient.<anonymous> (/homebridge/node_modules/homebridge-mqtt-blinds/index.js:87:46) at MqttClient.emit (events.js:189:13) at MqttClient._handlePublish (/homebridge/node_modules/mqtt/lib/client.js:987:12) at MqttClient._handlePacket (/homebridge/node_modules/mqtt/lib/client.js:336:12) at work (/homebridge/node_modules/mqtt/lib/client.js:292:12) at Writable.writable._write (/homebridge/node_modules/mqtt/lib/client.js:302:5) at doWrite (/homebridge/node_modules/readable-stream/lib/_stream_writable.js:428:64) at writeOrBuffer (/homebridge/node_modules/readable-stream/lib/_stream_writable.js:417:5) at Writable.write (/homebridge/node_modules/readable-stream/lib/_stream_writable.js:334:11) at Socket.ondata (_stream_readable.js:689:20) [4/7/2019, 10:00:07 PM] Got SIGTERM, shutting down Homebridge...
Whenever I send a MQTT command with topic
myBlind1/GET/positionState
the module crashes.[4/7/2019, 10:00:06 PM] [Küche] Updated TargetPosition: 0 [4/7/2019, 10:00:07 PM] TypeError: Cannot read property '0' of undefined at MqttClient.<anonymous> (/homebridge/node_modules/homebridge-mqtt-blinds/index.js:87:46) at MqttClient.emit (events.js:189:13) at MqttClient._handlePublish (/homebridge/node_modules/mqtt/lib/client.js:987:12) at MqttClient._handlePacket (/homebridge/node_modules/mqtt/lib/client.js:336:12) at work (/homebridge/node_modules/mqtt/lib/client.js:292:12) at Writable.writable._write (/homebridge/node_modules/mqtt/lib/client.js:302:5) at doWrite (/homebridge/node_modules/readable-stream/lib/_stream_writable.js:428:64) at writeOrBuffer (/homebridge/node_modules/readable-stream/lib/_stream_writable.js:417:5) at Writable.write (/homebridge/node_modules/readable-stream/lib/_stream_writable.js:334:11) at Socket.ondata (_stream_readable.js:689:20) [4/7/2019, 10:00:07 PM] Got SIGTERM, shutting down Homebridge...
I tried different values, eg "0", "1", "2".