I have installed Node Red In a Docker and cant get the USB port to talk to the docker for the node-red-contrib-rfxcom node.
Tried /dev/ttyusb0 which works with Homeassistant Docker but not Node Red.
And also the node-red-contrib-home-assistant-ws node wont connect.
None of that makes any sense… I’m assuming what you are trying to do is use node-red with Home Assistant? First, the USB port is not involved… nor is node-red-contrib-rfxcom.
Open node red
Go to Manage Palette and install node-red-contrib-home-assistant
Go the Home Assistant palette and drag a block (like events:state) into the flow area
double-click it
In the server field, click the pencil
fill in the address of your server (i.e., http://192.168.1.2:8123) and the password you set up in home assistant (if you have one)
I use node-red in docker on a NUC in my setup (with Home Assistant). In the node-red docker run command, are you mapping in your USB device with the --device=/dev/USBDeviceName ?
So I’m still confused… if you have RFXCom working with HA, then you don’t need to talk to it directly from node-red. Just have node-red talk to HA, then HA will control your 433 MHz devices. If you’re trying to use RFX Comm with Node-red directly without using Home-assistant, then this isn’t really the correct forum
Had a few problems with setting up Docker_compose.yaml
I didnt put in the homeassistant " network_mode: host " .
I use node-red directly with the RFXComm because it is a lot faster getting responses from my 433mhz door sensors. In HA they took 25 seconds to get detected and in node-red its instent.
Thanks i put this into node-red and it worked…
devices:
- /dev/ttyUSB0
The Home Assistant node-red still wont connect i think its not seeing the HA.
I do really appreciate all your help because i am a noob at this docker thing…
I still am having problems with Appdaemon in docker and Google_Assistant as well.
For the Home Assistant connection, assuming you are using THIS one, use the same URL you use the access Home Assistant from your phone or computer. For me, with SSL, its https://xxx.duckdns.org:8123
i had the websockets one installed which did not connnect.
I then tried to install "node-red-contrib-home-assistant 0.3.0 " from within node-red but it said it installed but when i restarted Node-red the nodes went there.
I should mention that the 0.30 Home Assistant nodes look identical to the 0.2.1 nodes, but I did run into some issues. Some flows would work randomly. Others not at all. Others perfectly. I found some notes on the GitHub page about it possibly not being backward compatible, but no solid details. I ended up recreating all of the Home Assistant nodes one by one, deleting the old ones and inserting the new ones into my flows. PITA, but everything works now. I couldn’t tell the difference between the ones I was deleting and the ones I was adding, but there must be some behind the scenes details left out in the upgrade on the old nodes.
It has nothing to do with the compose file version … it’s that there was a change to the node red plugin that required using the v8 version of nodered.
Hi there, new to all this. How do I make that change ‘v8 parameter’ in portainer ? I found my docker-compose file but it appears to be unused and has some default config in it but nothing relating to the few containers I have setup (NR, HA)