Repository: NotoriousBDG Add-Ons (Node-RED, HA Bridge, and Gogs)

I don’t know if HA Bridge supports Chinese natively. Does it work if you install HA Bridge separately? If so, what steps do you need to do to get it to support Chinese? If it doesn’t support Chinese outside of hassio, then I’d suggest opening an issue with HA Bridge. The issue No german "umlaute" in device name · Issue #238 · bwssytems/ha-bridge · GitHub might be related to what you’re seeing.

I haven’t tested any of this myself, but here are the high level steps of what I’d attempt:

this hassio base cenots7 ,locale include zh_cn,

root@27e642c6-ha-bridge:/data# locale
LANG=
LANGUAGE=
LC_CTYPE=“POSIX”
LC_NUMERIC=“POSIX”
LC_TIME=“POSIX”
LC_COLLATE=“POSIX”
LC_MONETARY=“POSIX”
LC_MESSAGES=“POSIX”
LC_PAPER=“POSIX”
LC_NAME=“POSIX”
LC_ADDRESS=“POSIX”
LC_TELEPHONE=“POSIX”
LC_MEASUREMENT=“POSIX”
LC_IDENTIFICATION=“POSIX”
LC_ALL=
root@27e642c6-ha-bridge:/data# locale -a
C
C.UTF-8
POSIX

this locale seem ok, no problem, but web also no support chinese

today, i use docker install shuaiger/habridge ,but is ok!!! This locale is

[root@centos core]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
fb5aa2a55fa9 shuaiger/habridge “/sbin/my_init” 4 seconds ago Up 3 seconds HaBridge
[root@centos core]# docker exec -t -i HaBridge /bin/bash
root@centos:/# locale
LANG=
LANGUAGE=
LC_CTYPE=“POSIX”
LC_NUMERIC=“POSIX”
LC_TIME=“POSIX”
LC_COLLATE=“POSIX”
LC_MONETARY=“POSIX”
LC_MESSAGES=“POSIX”
LC_PAPER=“POSIX”
LC_NAME=“POSIX”
LC_ADDRESS=“POSIX”
LC_TELEPHONE=“POSIX”
LC_MEASUREMENT=“POSIX”
LC_IDENTIFICATION=“POSIX”
LC_ALL=
root@centos:/# locale -a
C
C.UTF-8
POSIX
en_AG
en_AG.utf8
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IN
en_IN.utf8
en_NG
en_NG.utf8
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US
en_US.iso88591
en_US.utf8
en_ZA.utf8
en_ZM
en_ZM.utf8
en_ZW.utf8

So I don’t know where the problem is

The shuaiger/habridge image seems to be using a hotfix for HA Bridge. You could try installing that hotfix manually to see if that helps. You should see a folder under your share samba share called habridge. Copy the jar there, then update the version in the hassio addon to match the filename after ha-bridge-. For example, \\hassio.local\share\habridge\ha-bridge-4.5.6-fix671.jar would be the hotfix jar and 4.5.6-fix671 is what you’d put for the version in the addon.

You may also want to try 5.0.0rc2 from https://github.com/bwssytems/ha-bridge/issues/735. That would be \\hassio.local\share\habridge\ha-bridge-5.0.0rc2.jar for the jar and 5.0.0rc2 for the version in the addon.

not this reason,i add " ENV LANG C.UTF-8 " to dockerfile and reinstall then ok!
thank you

Started getting the same issue, lastest hassio with node red addon. If I am making a lot of changes, node red seems to crash and a similar error is listed.
edit: I think it is related to the harmony node I added but I can’t seem to uninstall that node (says “in use”) I disabled it but it is still giving the error.
@NotoriousBDG, any thoughts on how I can remove the harmony node completely or if that error is even the problem?

17 Nov 12:02:56 - Error: MAX_CLIENTS=6
    at Connection.onStanza (/data/node_modules/node-xmpp-core/lib/Connection.js:355:17)
    at StreamParser.<anonymous> (/data/node_modules/node-xmpp-core/lib/Connection.js:226:10)
    at emitOne (events.js:96:13)
    at StreamParser.emit (events.js:188:7)
    at SaxLtx.<anonymous> (/data/node_modules/node-xmpp-core/lib/StreamParser.js:58:14)
    at emitOne (events.js:96:13)
    at SaxLtx.emit (events.js:188:7)
    at SaxLtx._handleTagOpening (/data/node_modules/ltx/lib/parsers/ltx.js:31:18)
    at SaxLtx.write (/data/node_modules/ltx/lib/parsers/ltx.js:105:26)
    at StreamParser.write (/data/node_modules/node-xmpp-core/lib/StreamParser.js:123:17)
npm info lifecycle [email protected]~start: Failed to exec start script
npm ERR! Linux 4.4.50
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start" "--" "--userDir" "/data"
npm ERR! node v6.11.0
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: `node $NODE_OPTIONS node_modules/node-red/red.js -v $FLOWS "--userDir" "/data"`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] start script 'node $NODE_OPTIONS node_modules/node-red/red.js -v $FLOWS "--userDir" "/data"'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the node-red-docker package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node $NODE_OPTIONS node_modules/node-red/red.js -v $FLOWS "--userDir" "/data"
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs node-red-docker
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls node-red-docker
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     /usr/src/node-red/npm-debug.log

I haven’t encountered that myself. If you need to get into the container to do more debugging, you could try ssh’ing to the hassio host (https://home-assistant.io/developers/hassio/debugging/) then bash into the container (docker exec -it addon_27e642c6_nodered /bin/bash).

hmm, doesn’t work from hassio, docker: not found

Sounds SSH’ed into the SSH addon instead of the host. See https://home-assistant.io/developers/hassio/debugging/ for instructions.

Yeah, I had done all that. It’s alright, I ended up restoring a snapshot from before I did the harmony node and then pasted my flows back in to node-red. All seems good so far. Thanks for the responses though!

1 Like

Do I need to install something else before I can use this node?

I think it is related to the harmony node I added but I can’t seem to uninstall that node (says “in use”) I disabled it but it is still giving the error.

Mine’s not crashing but I am having a similar error trying to uninstall some nodes. It is especially giving me problems on similarly named nodes (ie. I tried 2 different counters, and even after uninstalling/restarting it seems to be confused about which one I have installed).

Will try connecting to the container directly.

@NotoriousBDG Would it be possible to have the node red flows stored somewhere accessible like the /share folder? I’ve essentially moved all of my automations to Node Red and it would be great to have an easy way to back them up. Kind of makes me nervous just having everything in the container, I could copy and paste them manually but I’d rather use syncthing.

Are you sure you have the right url in your config node? I have `http://localhost:8123’ and it works fine.

I just updated the Node-RED addon to support authentication. Try updating to the latest version then define your users in the addon config.

I also updated the addon to relocate all Node-RED files to /share/node-red. You should be able to manipulate or backup the files from that more accessible location.

Thanks for your suggestion.

I tried using https://localhost and https://192.168.X.X (IP address of the HA server) and it didn’t work. It only worked when I used https://xxxxxxxx.duckdns.org (my subdomain).

1 Like

Thank you, this also allowed me to clean up the nodes that wouldn’t uninstall!

Not really. If you can’t remove them using the palate manager, then you might want to bash into the container and try removing using command line.

Hi @NotoriousBDG I updated the latest version now its gr8 we can have a username and a password so there is some security to our system… but the UI is still accessible direct can we password protect that too ? if yes where can I find the option please guide!

Oh, I see that the UI requires a different configuration for authentication than the IDE. I’ll have to make some additional changes to add authentication to the UI as well. I’ll add that to my todo list…

@NotoriousBDG Thanks for making this! Been looking for a better way to automate in HA for some time and NR seems like the ticket with lots of help online.

I installed 0.1.5 this evening and changed the password for ‘admin’ to my own but I cannot login when using the panel_iframe method you suggest. Just takes me back to the login screen every time. If I go direct to the NR URL, I can login with admin and my new password.

Am I missing something?

Thanks Man… I am looking forward for the update!!!

Is anyone able to get node red to start automatically with hassio?

I always have to go in and manually start node red in the addons, not a deal breaker but I want to move all my automations to node red but cant until I am able to reliably start node red with hassio because one of my automations is a brightness limiter for and LED light, it defaults to full brightness and gets quite hot.