# Node Red won't start issue with home-assistant websocket

**URL:** <https://discourse.nodered.org/t/node-red-wont-start-issue-with-home-assistant-websocket/31049>\
**Category:** General\
**Created:** [2 August 2020 12:52 UTC](https://discourse.nodered.org/t/node-red-wont-start-issue-with-home-assistant-websocket/31049 "2020-08-02T12:52:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![GChapo](https://avatars.discourse-cdn.com/v4/letter/g/2acd7d/32.png) [@GChapo](https://discourse.nodered.org/u/GChapo)\
**Post date:** [2 August 2020 12:52 UTC](https://discourse.nodered.org/t/node-red-wont-start-issue-with-home-assistant-websocket/31049/1 "2020-08-02T12:52:13Z")

</div>

Running (or trying to) Node Red version v1.1.2, node JS v 12.18.3, RPI 3+ home-assistant (Hassio) 0.113.3 on Tinkerboard

Log is;

(node:12484) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'isConnected' of undefined  
at TriggerState.get isIntegrationLoaded [as isIntegrationLoaded] (/home/pi/.node-red/node\_modules/node-red-contrib-home-assistant-websocket/lib/base-node.js:270:34)  
at TriggerState.init (/home/pi/.node-red/node\_modules/node-red-contrib-home-assistant-websocket/lib/events-ha-node.js:43:18)  
(node:12484) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see [https://nodejs.org/api/cli.html#cli\_unhandled\_rejections\_mode](https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode)). (rejection id: 23)  
(node:12484) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'isConnected' of undefined  
at TriggerState.get isIntegrationLoaded [as isIntegrationLoaded] (/home/pi/.node-red/node\_modules/node-red-contrib-home-assistant-websocket/lib/base-node.js:270:34)  
at TriggerState.init (/home/pi/.node-red/node\_modules/node-red-contrib-home-assistant-websocket/lib/events-ha-node.js:43:18)

I have tried the CLI flag suggested after node-red-start (not sure if that's right) but it hasn't work.

Any assistance would be greatly appreciated.

Thanks in advance

Glenn

---

<div class="post-metadata">

**Author:** ![ristomatti](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ristomatti/32/5857_2.png) [@ristomatti](https://discourse.nodered.org/u/ristomatti)\
**Post date:** [2 August 2020 16:06 UTC](https://discourse.nodered.org/t/node-red-wont-start-issue-with-home-assistant-websocket/31049/2 "2020-08-02T16:06:06Z")

</div>

The CLI flag is for `node` itself so the message is a bit misleading. With luck someone here can help but I'd suggest reporting this as an issue at [https://github.com/zachowj/node-red-contrib-home-assistant-websocket](https://github.com/zachowj/node-red-contrib-home-assistant-websocket) or asking in the Home Assistant forum.

---

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [3 August 2020 07:21 UTC](https://discourse.nodered.org/t/node-red-wont-start-issue-with-home-assistant-websocket/31049/3 "2020-08-03T07:21:39Z")

</div>

Yep definitely raise it in the 3rd party forum on the HA forum - the author has a long thread and is very responsive.

Have you installed this to a standalone NR installation - or the integrated one with HACS ?

Craig

---

<div class="post-metadata">

**Author:** ![GChapo](https://avatars.discourse-cdn.com/v4/letter/g/2acd7d/32.png) [@GChapo](https://discourse.nodered.org/u/GChapo)\
**Post date:** [3 August 2020 08:26 UTC](https://discourse.nodered.org/t/node-red-wont-start-issue-with-home-assistant-websocket/31049/4 "2020-08-03T08:26:11Z")

</div>

Thank you both,

I will take it up on Github.

There seems to be similar issues which I haven't looked into in great detail.

It's standalone, hence the websocket version.

Glenn

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [2 October 2020 08:26 UTC](https://discourse.nodered.org/t/node-red-wont-start-issue-with-home-assistant-websocket/31049/5 "2020-10-02T08:26:21Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
