I’ve been running it with SSL and DuckDNS and it’s worked through several hass.io upgrades and at least one Node-RED update. The only quirk I have is that I had to make a hosts file entry on my Windows box for hass.io, but that (or the lack of) doesn’t affect Node-RED starting up automatically–it’s just needed for the left panel Node-RED link to work.
You can install it by clicking on the hamburger in top right corner of the IDE, click on Manage Palate, click on the Install tab, search for node-red-contrib-home-assistant, then click install.
I just checked in another update for the Node-RED addon that fixes the issue with node-red-admin reinstalling every time the addon starts (thanks @Geoff_Brown for reporting). I’ve also added authentication support for HTTP nodes, which includes the Dashboard UI, that @samrat3star requested.
For anyone having problems with Node-RED seeing entities while using SSL…
The “node-red-contrib-home-assistant” pallette doesn’t seem to work with SSL setups. It would be great if this did work, as it looks like you can select entities from drop-down menus. Anyone have this working??
The “node-red-contrib-home-assistant-ws” pallette does work, but you need to enter entity names. Wildcards are accepted.
Thank you too… Just Updated works well but one thing is still not there… login is there but no logout… now once logged in it stays there… any person using the pc can oprate the system… maybe i might be missing any options to set please tell me if any thing I might have to do to set it right… but … reallly really… thank you for this!!!
It works fine for me, but I use Nginx to provide SSL on port 443 and connect Node-RED to port 8123 which does not have SSL enabled. I’ve never tried pointing it at the SSL port, so I can’t speak to that part. The dropdowns auto-fill for me.
I never could get node-red-contrib-home-assistant-ws to succesfully connect to my Home Assistant, which is why I use node-red-contrib-home-assistant. Granted, I didn’t try very hard to fix it since node-red-contrib-home-assistant worked the first time.
AFAIK, Node-RED doesn’t offer a way to logout for HTTP nodes. I’d suggest submitting a feature request to the Node-RED team.
If you have SSL enabled for Home Assistant, you’ll have to enable SSL for the addon to get it to show in an iframe. BTW, which addon are you referring to?
Yeah, that probably would have been important information to include. I am trying to use Node-Red. To access HA I use mydomain.duckdns.org. When I try to use node-red, it goes to mydomain.duckdns.org:1880. Do I need to forward that port also?
If you’re trying to access it from the internet, then yes, you’d need to forward that port. If you’re just accessing it on the same network, you shouldn’t need to expose the port to the internet.
I am on the same network when trying to access. From the addon options screen I click the Open Web UI link and it goes to mydomain.duckdns.org:1880. From there I get a “Site can’t be reached. Refused to connect” error. I’m sure I’m missing something simple here. Should I just go the iframe route? Appreciate the assistance.
Ah, gotcha. I assumed you were talking about iframe. Are you able to access it at http://IP:1880 or https://IP:1880 if you’ve enabled SSL? If you can, my guess is that mydomain.duckdns.org is resolving to your public IP and there is an issue with NAT loopback on your router.