NR crashed and won't load - any ideas on removing bad Node

I installed the node red contrib eufy security app and configured it.

In the config I changed the country from US to UK.

Node Red crashed and won’t restart.

I get this in the logs

13 Apr 16:52:00 - [red] Uncaught Exception:
13 Apr 16:52:00 - [error] InvalidCountryCodeError: Invalid ISO 3166-1 Alpha-2 country code
    at Function.initialize (/config/node_modules/eufy-security-client/src/http/api.ts:232:15)
    at EufySecurity._initializeInternals (/config/node_modules/eufy-security-client/src/eufysecurity.ts:159:34)
    at Function.initialize (/config/node_modules/eufy-security-client/src/eufysecurity.ts:88:28)
    at EufySecurityNode.initialize (/config/node_modules/node-red-contrib-eufy-security/eufy-security/01-eufy-security.js:90:40)
    at new EufySecurityNode (/config/node_modules/node-red-contrib-eufy-security/eufy-security/01-eufy-security.js:75:14)
    at Object.createNode (/opt/node_modules/@node-red/runtime/lib/flows/util.js:211:27)
    at Flow.start (/opt/node_modules/@node-red/runtime/lib/flows/Flow.js:261:54)
    at Object.start [as startFlows] (/opt/node_modules/@node-red/runtime/lib/flows/index.js:403:17)
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped

Trying to work out how to either uninstall or disable the Eufy Security Node but since I moved Node Red into Home Assistant I can no longer access the command line.

Anyone got any ideas at all - much appreciated - most of my automations are offline now.

Go to the NR addon’s page, at the top, click the configuration tab. Enable boot to safe mode, save, restart. You should be able to remove the nodes, you have to delete them from the work space before removing them from the palette manger.

You could also edit the setting to see if you can get it to work. Restart NR to come out of safe mode.

1 Like

Install the Advanced SSH & Web Terminal add-on and turn off the protection mode. This gives the add-on full access to the entire system. You will find the nodes at /homeassistant/node-red/flows.json

Install the Samba share add-on and you can access the Home Assistant config files in your Windows File Manager.

1 Like

AWESOME many thanks for replying!!!

I figured it by dumpster diving the Addon Config files, found the config for the Dufy in the flows.json file, searched for UK changed to GB and Node Red is back up and running!!

Thanks for the information!!! very much appreciated - I have followed your guidance.