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

Connecting via home assistant crashes on different port (1881) #3

Open
marcux01 opened this issue Dec 20, 2018 · 0 comments
Open

Connecting via home assistant crashes on different port (1881) #3

marcux01 opened this issue Dec 20, 2018 · 0 comments

Comments

@marcux01
Copy link

Not sure if my issue relates to the port? or another issue altogether, if I start haiku2mqtt like this:

haiku2mqtt -b mqtt://127.0.0.1:1881

I get:
server listening 0.0.0.0:31415

Then as soon as I try to switch the fan off via home assistant's MQTT fan component I get the error:

/usr/local/lib/node_modules/haiku2mqtt/node_modules/rxjs/Subscriber.js:246
throw err;
^

TypeError: Cannot use 'in' operator to search for 'fan' in undefined
at /usr/local/lib/node_modules/haiku2mqtt/dist/index.js:84:26
at Array.reduce ()
at SafeSubscriber._next (/usr/local/lib/node_modules/haiku2mqtt/dist/index.js:83:28)
at SafeSubscriber.__tryOrUnsub (/usr/local/lib/node_modules/haiku2mqtt/node_modules/rxjs/Subscriber.js:242:16)
at SafeSubscriber.next (/usr/local/lib/node_modules/haiku2mqtt/node_modules/rxjs/Subscriber.js:189:22)
at Subscriber._next (/usr/local/lib/node_modules/haiku2mqtt/node_modules/rxjs/Subscriber.js:129:26)
at Subscriber.next (/usr/local/lib/node_modules/haiku2mqtt/node_modules/rxjs/Subscriber.js:93:18)
at CatchSubscriber.Subscriber._next (/usr/local/lib/node_modules/haiku2mqtt/node_modules/rxjs/Subscriber.js:129:26)
at CatchSubscriber.Subscriber.next (/usr/local/lib/node_modules/haiku2mqtt/node_modules/rxjs/Subscriber.js:93:18)
at MqttClient. (/usr/local/lib/node_modules/haiku2mqtt/dist/index.js:139:24)

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

1 participant