Node-RED in Docker for Home Assistant on Synology - #006

preview_player
Показать описание
In 6th episode of Home Assistant series we will install Node-RED in Docker on Synology.

Terminal Emulator - PuTTY
--------------------
For connecting via SSH, you will need terminal application, and I use for this Putty. Download link is:

Node-RED site:
--------------------

Command to download Node-RED image:
--------------------
sudo docker run -itd --name="nodered" --restart=always --net=host -p 1880:1880 -e TZ=Europe/Zagreb -v /volume1/docker/nodered:/data nodered/node-red

If you have problems with permissions, use this command to fix it:

sudo chown -R 1000:1000 /volume1/docker/nodered

Thank you for visiting and watching this video. If you have any questions or suggestions, please leave comment below.

Please, give me a thumb up if you liked this video, subscribe if you still haven't and I'll see you next time!

Have fun!
BeardedTinker

🧡 If you would like to support me and this channel, you can JOIN and become channel member!

✅Twitter: @BeardedTinker
#HomeAssistant #nodered #synology
Рекомендации по теме
Комментарии
Автор

Thanks once again for another brill tutorial - I've learned more about Docker in one day by following your series of vid's than i would in a month of Sundays elsewhere.!

peteriches
Автор

hi.. i have a question....i installed on docker synology node red and home assistant.. I installed component home assistant websocket.. I tried to add server home assistant but I don't find it... what's the problem? please?

merlinorn
Автор

Hi, to me chown -v 1000:1000 node-red
was not enough to solve permission issue. I was needed to run also chmod 700 node-red before container started properly

ИльяПопов-тн
Автор

Hi, Can you explain whats the advantage of the portainer.io? Why do I need it on the Synology? What can I do with it what the original "tool" cant do?

socke
Автор

Do you plan to make a video about Pi Hole / Synology Docker too?

Merwenus
Автор

Great video. I can't resolve the permissions despite changing ownership. What PUID/GUID does docker use to run? In my other docker installs I add environment variables to specify.

macguy
Автор

Since the only way to have nodered work with my home-assistant is via SSL connection. Is there away to secure nodered with domain + SSL on Docker?

krdesigns
Автор

Thanks again for this helpful tutorial. Very happy I didn't have to invent all this work by myself:) Finally got NodeRed and MQTT running, and I hope to add some cool ESP32 action to Home-Assistant without ESPhome. Can't wait to start with this.
As far as I understand ESPhome is mostly for sensors, I want to connect a stepper motor + some end switches to Home Assistant and didn't see an easy way with Home-Assistant so hope MQTT & Nodered are the way to integrate this. Do you have anything like this connected to Home Assistant?

koeiekop
Автор

Great Videos! I didn’t changed the TZ to mine when installing Node-Red using your command to download the image. The “time-range” node appears to works correctly with my local time as far as I tested. However the display under the node displays the sunrise/sunset by 5 hour off. Is there an easy way to change the time zone of node red to my time zone? Or do I have to delete the image and re-download it? Anything to look for if I have to do delete the image? Thanks.

PS, I wish I could run hass.io on my NAS to as I did on my Pi.

MikeySoft
Автор

I guess this was a good video, solves a common problem with the permissions. But I don't understand why connecting the home assistant server to node-red so it can be used with home assistant was left out. Seems like an important part of the process considering the title of the video.

Steve-qngn
Автор

really enjoyed your videos and they have enabled me to install lots of things in my docker on my 920+

However, Ive come unstuck on nodered and even though I have followed your instructions to the letter, it doesn't run on my docker and in fact it keeps on starting

Ive included park of the logs below in case you can see anything obvious. Only thing I can imagine is that the install process has changed a bit since you put that video out which could be causing the issues...that said it appears to install fine...it just doesn't want to run properly.

THanks in advance



Error: EACCES: permission denied, copyfile -> '/data/settings.js'

at Object.copyFileSync (fs.js:1728:3)

at copyFile

at onFile

at getStats

at startCopy

at handleFilterAndCopy

at Object.copySync

at Object.<anonymous>

at Module._compile

at Object.Module._extensions..js

npm ERR! code ELIFECYCLE

npm ERR! errno 1


npm ERR! Exit status 1

npm ERR!


npm ERR! This is probably not a problem with npm. There is likely additional logging output above.


> node $NODE_OPTIONS node_modules/node-red/red.js $FLOWS "--userDir" "/data"

fs.js:114

throw err;

^

JBR.
Автор

Hello, thank you for the video BeardedTinker. The installation went well. How do I now connect the node-red with my home assistant running in a docker on my synology NAS?

christophecorneillie
Автор

As usual great video :-) I wonder if you have any experience with UDP commands and NR running in Synology? If I use the simple UDP component in NR I can easily get it to work when I use a raspberry sending UDP messages to another UDP receiver (192.168.72.105:7090) on the same LAN. However in Synology (DS218+) the same code does not work, I think it might be missing docker UDP port mapping? I today have installed NR via the HA Supervisor. I'm thinking of using your method here where I can map UDP docker ports during the installation. Any thoughts are welcome:-)

Novation