# ISSUE: v2.1.4 HA connection

**URL:** <https://discourse.nodered.org/t/issue-v2-1-4-ha-connection/56344>\
**Category:** General\
**Created:** [9 January 2022 13:38 UTC](https://discourse.nodered.org/t/issue-v2-1-4-ha-connection/56344 "2022-01-09T13:38:43Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hamsterman](https://avatars.discourse-cdn.com/v4/letter/h/c6cbf5/32.png) [@Hamsterman](https://discourse.nodered.org/u/Hamsterman)\
**Post date:** [9 January 2022 13:38 UTC](https://discourse.nodered.org/t/issue-v2-1-4-ha-connection/56344/1 "2022-01-09T13:38:43Z")

</div>

It seems I can't connect to a Home Assistant server in 2.1.4.  
It's not possible to "add a new server"

- Using Node Red in Docker.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/9/b97b71599ac18cc3b602086fbfe31f64c680d3d7.png)

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [9 January 2022 13:49 UTC](https://discourse.nodered.org/t/issue-v2-1-4-ha-connection/56344/2 "2022-01-09T13:49:45Z")

</div>

Hi.

- What node is this (Node-red-contrib-????)

- What browser are you using?

- Can you check your browsers console for errors (press F10 to access browser console)

---

<div class="post-metadata">

**Author:** ![Hamsterman](https://avatars.discourse-cdn.com/v4/letter/h/c6cbf5/32.png) [@Hamsterman](https://discourse.nodered.org/u/Hamsterman)\
**Post date:** [9 January 2022 14:04 UTC](https://discourse.nodered.org/t/issue-v2-1-4-ha-connection/56344/3 "2022-01-09T14:04:55Z")

</div>

It's any note - the screenshot is from this one

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/3/a3d0dcf4ff0c1f251227b789919f4a32af7590ad.png)

I am using Chrome.

"breeders console" ? - do you meen if there are any javascript errors reported in the browser?

---

<div class="post-metadata">

**Author:** ![Hamsterman](https://avatars.discourse-cdn.com/v4/letter/h/c6cbf5/32.png) [@Hamsterman](https://discourse.nodered.org/u/Hamsterman)\
**Post date:** [9 January 2022 14:08 UTC](https://discourse.nodered.org/t/issue-v2-1-4-ha-connection/56344/4 "2022-01-09T14:08:31Z")

</div>

> [@Hamsterman](#):
>
> breeders console

When I open the note there is an error in the browser console.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/e/5ee13c5e111c227613dcd09a54b0cbf3ced54d25.png)

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [9 January 2022 14:15 UTC](https://discourse.nodered.org/t/issue-v2-1-4-ha-connection/56344/5 "2022-01-09T14:15:54Z")

</div>

> [@Hamsterman](#):
>
> "breeders console" ? - do you meen if there are any javascript errors reported in the browser

I did indeed (stoopid autocorrect) 😃

What happens if you use the IP of the device rather than host name?

PS: there are not a great deal of HA users on this forum - it is possible this is a well known issue on the [HA forum](https://community.home-assistant.io/latest)

---

<div class="post-metadata">

**Author:** ![Hamsterman](https://avatars.discourse-cdn.com/v4/letter/h/c6cbf5/32.png) [@Hamsterman](https://discourse.nodered.org/u/Hamsterman)\
**Post date:** [9 January 2022 17:25 UTC](https://discourse.nodered.org/t/issue-v2-1-4-ha-connection/56344/6 "2022-01-09T17:25:11Z")

</div>

I am missing the "Server Edit" button from the field. Orelse I have no where to input in the HA credentials.

It used to look like this:

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/9/39147efe2815b4862f4d1d3f11b0a6744d7650a4.png)

---

<div class="post-metadata">

**Author:** ![Hamsterman](https://avatars.discourse-cdn.com/v4/letter/h/c6cbf5/32.png) [@Hamsterman](https://discourse.nodered.org/u/Hamsterman)\
**Post date:** [10 January 2022 20:18 UTC](https://discourse.nodered.org/t/issue-v2-1-4-ha-connection/56344/7 "2022-01-10T20:18:43Z")

</div>

I looked at the file node-red-contrib-home-assistant-websocket.json in the NodeRed folder and if I delete and restart NodeRed it is recreated. But it is empty:  
{}

Maybe the error is that this file should be filled properly. Anyone can check a working instance and see what your file says.

Also this was in the log:  
[node-red-contrib-home-assistant-websocket/server] Error: Cannot find module '/data/node\_modules/has/src'. Please verify that the package.json has a valid "main" entry

---

<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:** [10 January 2022 20:24 UTC](https://discourse.nodered.org/t/issue-v2-1-4-ha-connection/56344/8 "2022-01-10T20:24:59Z")

</div>

Trying reinstalling the HA Websocket integration package as it appears you may have a corrupted install

> **[node-red-contrib-home-assistant-websocket](https://flows.nodered.org/node/node-red-contrib-home-assistant-websocket)**
>
> Node-RED integration with Home Assistant through websocket and REST API

Craig

---

<div class="post-metadata">

**Author:** ![Hamsterman](https://avatars.discourse-cdn.com/v4/letter/h/c6cbf5/32.png) [@Hamsterman](https://discourse.nodered.org/u/Hamsterman)\
**Post date:** [10 January 2022 21:35 UTC](https://discourse.nodered.org/t/issue-v2-1-4-ha-connection/56344/9 "2022-01-10T21:35:33Z")

</div>

Since it's run in Docker I just tried recreating it. Both with latest version and version 1.3.5.  
Same issue - So the data must be bad somehow.

I gotta do some more testing.

---

<div class="post-metadata">

**Author:** ![Hamsterman](https://avatars.discourse-cdn.com/v4/letter/h/c6cbf5/32.png) [@Hamsterman](https://discourse.nodered.org/u/Hamsterman)\
**Post date:** [11 January 2022 07:11 UTC](https://discourse.nodered.org/t/issue-v2-1-4-ha-connection/56344/10 "2022-01-11T07:11:03Z")

</div>

I think I found the issue

Burger Menu \> Manage Palette:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/f/bf9ecc591ae63be2d59e14f19f1050cf46abbee7.png)

I am guess that the error "[object Object]" is the reason it's not working.  
Clicking update to 0.41.3 generates and error in the log.

```auto
2022-01-11T07:05:47.762Z Install : node-red-contrib-home-assistant-websocket 0.41.3
2022-01-11T07:05:47.759Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-home-assistant-websocket@0.41.3
2022-01-11T07:05:52.983Z [err] npm ERR! code Unknown system error -74
2022-01-11T07:05:52.983Z [err] npm ERR! syscall unlink
2022-01-11T07:05:52.983Z [err] npm ERR! path /data/node_modules/.has-symbols.DELETE/test/shams
2022-01-11T07:05:52.983Z [err] npm ERR! errno -74
2022-01-11T07:05:52.988Z [err] npm ERR! Unknown system error -74: Unknown system error -74, unlink '/data/node_modules/.has-symbols.DELETE/test/shams'
2022-01-11T07:05:53.003Z [err] 
2022-01-11T07:05:53.003Z [err] npm ERR! A complete log of this run can be found in:
2022-01-11T07:05:53.004Z [err] npm ERR! /data/.npm/_logs/2022-01-11T07_05_52_993Z-debug.log
2022-01-11T07:05:53.011Z rc=182

```

I tried creating a completly new docker instance and importing my flows there. That seems to work much better and I must therefore conclude that the my original instance has gone bad.

---

<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:** [12 March 2022 07:12 UTC](https://discourse.nodered.org/t/issue-v2-1-4-ha-connection/56344/11 "2022-03-12T07:12:03Z")

</div>

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