Closed Kowy54 closed 5 years ago
There was a typo in the sample config for mqttPositionStateValues. The last s was missing. Could that be the Problem?
If i Push value for positionstatevalue, homebridge will crash with error described on top. Really. I dont know how to work with topic for positionState. "mqttPositionStateValue": ["0", "1", "2"] this i have in config.
Yes, than the typo from the sample config found it's way into your config. It should be "mqttPositionStateValues": ["0", "1", "2"]
Oh. Thanks. I hope that it will work. I'll try after work.
Hi, does it work?
Yes. Thanks man!
I have problem with positionStateValue :( Any help?
TypeError: Cannot read property '0' of undefined at MqttClient. (/usr/lib/node_modules/homebridge-mqtt-blinds/index.js:87:46)
at emitThree (events.js:136:13)
at MqttClient.emit (events.js:217:7)
at MqttClient._handlePublish (/usr/lib/node_modules/homebridge-mqtt-blinds/node_modules/mqtt/lib/client.js:987:12)
at MqttClient._handlePacket (/usr/lib/node_modules/homebridge-mqtt-blinds/node_modules/mqtt/lib/client.js:336:12)
at work (/usr/lib/node_modules/homebridge-mqtt-blinds/node_modules/mqtt/lib/client.js:292:12)
at Writable.writable._write (/usr/lib/node_modules/homebridge-mqtt-blinds/node_modules/mqtt/lib/client.js:302:5)
at doWrite (/usr/lib/node_modules/homebridge-mqtt-blinds/node_modules/readable-stream/lib/_stream_writable.js:428:64)
at writeOrBuffer (/usr/lib/node_modules/homebridge-mqtt-blinds/node_modules/readable-stream/lib/_stream_writable.js:417:5)
at Writable.write (/usr/lib/node_modules/homebridge-mqtt-blinds/node_modules/readable-stream/lib/_stream_writable.js:334:11)