Open ChristusM opened 6 years ago
Debug output:
haiku2mqtt -b mqtt://192.168.5.14 -v debug
server listening 0.0.0.0:31415
2018-01-29 03:50:03.934
TypeError: Cannot read property 'publish' of undefined
at SenseMe.setupNewDevice (/usr/local/lib/node_modules/haiku2mqtt/dist/index.js:53:12)
at SenseMe.emit (events.js:160:13)
at SenseMe._handleDeviceFound (/usr/local/lib/node_modules/haiku2mqtt/node_modules/haiku-senseme/dist/SenseMe.js:110:22)
at Socket.
The following events are published immediately before/after the crash.
haiku:20:F8:5E:E0:B5:9F/connected 1 haiku:20:F8:5E:E0:B5:9F/connected 0 haiku:20:F8:5E:E0:75:D9/connected 0 haiku:20:F8:5E:E5:97:D1/connected 0 haiku:20:F8:5E:12:EF:81/connected 0 haiku:20:F8:5E:E0:9E:08/connected 0 haiku:20:F8:5E:F7:31:D4/connected 0 haiku:20:F8:5E:DB:F1:B7/connected 0 haiku:20:F8:5E:E0:6A:7E/connected 0 haiku:20:F8:5E:12:F6:32/connected 0 haiku:20:F8:5E:DB:EC:05/connected 0 haiku:20:F8:5E:E2:72:4B/connected 0
I saw the same type of error running latest version using node red with node-red-contrib-mqtt-broker. Works for a little while then receive very similar error.
Any progress finding a resolution?
Still looking for a resolution or another solution to integrate Big Ass products with mqtt.
chris@mfi:~$ haiku2mqtt -b mqtt://192.168.5.14 server listening 0.0.0.0:31415 /usr/local/lib/node_modules/haiku2mqtt/dist/index.js:53 client.publish(getTopic(device, 'connected'), '2', STATUS_OPTS); ^
TypeError: Cannot read property 'publish' of undefined
at SenseMe.setupNewDevice (/usr/local/lib/node_modules/haiku2mqtt/dist/index.js:53:12)
at SenseMe.emit (events.js:160:13)
at SenseMe._handleDeviceFound (/usr/local/lib/node_modules/haiku2mqtt/node_modules/haiku-senseme/dist/SenseMe.js:110:22)
at Socket.
Interested in a free Haiku light to fix this?
@pponce , were you able to resolve?
Nope. I'm using the homebridge haiku plugin to control my fans now.
Not an expert here so this may well be user error... A bit more background. My haiku devices are all lights. The mqtt server is Mosquito and is shared with a number of devices.
Let me know if you need any more detail. Below is the console output.
Chris
root@haiku2mqtt:/home/pi# haiku2mqtt -b mqtt://192.168.5.14 server listening 0.0.0.0:31415 /usr/local/lib/node_modules/haiku2mqtt/dist/index.js:53 client.publish(getTopic(device, 'connected'), '2', STATUS_OPTS); ^
TypeError: Cannot read property 'publish' of undefined at SenseMe.setupNewDevice (/usr/local/lib/node_modules/haiku2mqtt/dist/index.js:53:12) at SenseMe.emit (events.js:160:13) at SenseMe._handleDeviceFound (/usr/local/lib/node_modules/haiku2mqtt/node_modules/haiku-senseme/dist/SenseMe.js:110:22) at Socket. (/usr/local/lib/node_modules/haiku2mqtt/node_modules/haiku-senseme/dist/SenseMe.js:233:28)
at Socket.emit (events.js:160:13)
at UDP.onMessage [as onmessage] (dgram.js:658:8)
root@haiku2mqtt:/home/pi#