# Migrated NR from homeassistant to standalone on Windows pc "extra key errors"

**URL:** <https://discourse.nodered.org/t/migrated-nr-from-homeassistant-to-standalone-on-windows-pc-extra-key-errors/83620>\
**Category:** General\
**Tags:** home-assistant\
**Created:** [11 December 2023 21:40 UTC](https://discourse.nodered.org/t/migrated-nr-from-homeassistant-to-standalone-on-windows-pc-extra-key-errors/83620 "2023-12-11T21:40:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![wrmac](https://avatars.discourse-cdn.com/v4/letter/w/f14d63/32.png) [@wrmac](https://discourse.nodered.org/u/wrmac)\
**Post date:** [11 December 2023 21:40 UTC](https://discourse.nodered.org/t/migrated-nr-from-homeassistant-to-standalone-on-windows-pc-extra-key-errors/83620/1 "2023-12-11T21:40:02Z")

</div>

I had Node red running on my Home assistant VM but wanted to run Node-Red as a standalone app on my PC. I have Node red installed on my PC and the server portion configured with a long-lived token and it seems to be conected as expected.  
When I try to migrate my flows from homeassistant it does not go smoothly.  
This is the most serious error that seems to pop up with all flows I try to migrate. This flow works fine on the Homeassistant instance of Node-red (Version 3.1.0)  
Windows version is 3.1.3  
node --version; npm --version  
v20.10.0  
10.2.3

This is output from the debug

```auto
12/11/2023, 4:18:01 PM[node: Turn Desk light on](http://localhost:1880/#)msg : error

"HomeAssistantError: extra keys not allowed @ data['return_response']. Got False"

```

```auto
[{"id":"591aeb8b268f674c","type":"api-call-service","z":"b11879e99d2f9caf","name":"Turn Desk light on","server":"2bd78eedc8e24927","version":5,"debugenabled":false,"domain":"switch","service":"turn_on","areaId":[],"deviceId":[],"entityId":[],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":430,"y":150,"wires":[["65e4e59a02d966eb"]]},{"id":"2bd78eedc8e24927","type":"server","name":"BMAC","version":5,"addon":false,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":"30","areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":": ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"default","statusTimeFormat":"h:m","enableGlobalContextStore":false}]

```

Thanks for any assistance.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [11 December 2023 21:55 UTC](https://discourse.nodered.org/t/migrated-nr-from-homeassistant-to-standalone-on-windows-pc-extra-key-errors/83620/2 "2023-12-11T21:55:23Z")

</div>

Welcome to the forum @wrmac

Is the api-call-service node a Home Assistant node? If so then you cannot use it if you are using node red without HA.

---

<div class="post-metadata">

**Author:** ![wrmac](https://avatars.discourse-cdn.com/v4/letter/w/f14d63/32.png) [@wrmac](https://discourse.nodered.org/u/wrmac)\
**Post date:** [11 December 2023 22:12 UTC](https://discourse.nodered.org/t/migrated-nr-from-homeassistant-to-standalone-on-windows-pc-extra-key-errors/83620/3 "2023-12-11T22:12:54Z")

</div>

@ Colin Thank you and....hmmm  
I am not sure I understand your question but I will give it a shot. I am running HA and I am running the above flow succeccfully in the HA instance of Node-Red.  
I installed NR on my windows PC and imported the flow. I configured the server section of the flow with a long-lived token and I am able to connect to HA from the windows NR instance.  
The "Deck Light off" node runs fine on the Windows NR instance.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/2/a2465850c1fde40380eab0713250262cba17b97b.png)  
Does that help?

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [11 December 2023 22:30 UTC](https://discourse.nodered.org/t/migrated-nr-from-homeassistant-to-standalone-on-windows-pc-extra-key-errors/83620/4 "2023-12-11T22:30:50Z")

</div>

It seems odd if Node-red is truly standalone that your Home Assistant nodes show up in the palette.

This is what I see if I import a flow with HA nodes into Node-red

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

It looks like your NR is accepting statuses from HA but HA not accepting commands from NR.

Can you explain what you mean by "I configured the server section of the flow with a long-lived token and I am able to connect to HA from the windows NR instance."?

---

<div class="post-metadata">

**Author:** ![wrmac](https://avatars.discourse-cdn.com/v4/letter/w/f14d63/32.png) [@wrmac](https://discourse.nodered.org/u/wrmac)\
**Post date:** [12 December 2023 03:57 UTC](https://discourse.nodered.org/t/migrated-nr-from-homeassistant-to-standalone-on-windows-pc-extra-key-errors/83620/5 "2023-12-12T03:57:19Z")

</div>

@jbudd you have to load the HA pallets on your windows instance of NR in order to use it with HA. IE.  
Following is from windows pallet notice a newer version  
node-red-contrib-home-assistant-websocket  
**0.61.1**  
[32 nodes]

Following is from Homeassistant pallet notice a older version  
node-red-contrib-home-assistant-websocket  
**0.59.0**  
[32 nodes]

I created a basic Flow included below.The following is a screen cap from the HA instance of NR. The server is accessed via http just like the windows instance of NR.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/4/e49fcb1046c05dfdeb3d412090114ca41d56cd90.png)  
The following screen cap is from the windows instance of NR. It is an exact copy of the flows  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/2/a262f8712a9a50e2f584615964c30f0dc21f86a6.png)

This is the code for the simple flow.

```auto
[{"id":"4a3cb5c0a7470c10","type":"debug","z":"0bc69de9b5133f58","name":"debug trigger","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":255,"y":255,"wires":[]},{"id":"2323258f42f90fb9","type":"inject","z":"0bc69de9b5133f58","name":"Trigger","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"Hello","payloadType":"str","x":80,"y":200,"wires":[["54979da0d2f2068b","4a3cb5c0a7470c10"]]},{"id":"54979da0d2f2068b","type":"api-call-service","z":"0bc69de9b5133f58","name":"Toggle switch","server":"2bd78eedc8e24927","version":5,"debugenabled":true,"domain":"switch","service":"toggle","areaId":[],"deviceId":[],"entityId":["switch.desk_lamp"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","output_location":"","output_location_type":"none","x":255,"y":145,"wires":[["688f7e9fdaf2e2f7"]]},{"id":"688f7e9fdaf2e2f7","type":"debug","z":"0bc69de9b5133f58","name":"Debug","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":455,"y":145,"wires":[]},{"id":"2bd78eedc8e24927","type":"server","name":"BMAC","version":5,"addon":false,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":"5","areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":":","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"default","statusTimeFormat":"h:m","enableGlobalContextStore":false}]

```

---

<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:** [10 February 2024 09:15 UTC](https://discourse.nodered.org/t/migrated-nr-from-homeassistant-to-standalone-on-windows-pc-extra-key-errors/83620/8 "2024-02-10T09:15:35Z")

</div>

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