Try this blog post Installation Methods & Community Guides Wiki
Hi, thanks to @juampe I managed how to manually integrate Node-Red with Home Assistant, manually and without supervised.
If I understand well, supervised works adding some “application” in docker container, installing also the custom components for HomeAssistant and the communication component for the “containerized” application. So application can communicate with HomeAssistant and vice versa.
For example, to integrate “node-red” and HomeAssistant" core, you need:
- Dockerized
node-red
withnode-red-contrib-home-assistant-websocket
palette (plug-in) installed - Dockerized (or not)
Home-Assistant
whithass-node-red
custom component installed (you can fined here: hass-node-red.
In order to do this you need to know how docker, docker-compose works:
This is an extract of my docker-compose:
# node-red con with blynk integration and home assistant
node-red:
build: domus-node-red
container_name: domus-node-red
image: bsaul/node-red:latest
environment:
#this is for my proxy
VIRTUAL_HOST: "node-red.mydomain.it"
VIRTUAL_PORT: "1880"
VIRTUAL_PROTO: "http"
CERT_NAME: "default"
volumes:
- "reddomus:/data"
networks:
- "domus-net"
- "domus-assistant"
# HASSOS / Home Assistant only core
assistant:
container_name: domus-assistant
image: homeassistant/home-assistant:stable
volumes:
- "./domus-assistant/config:/config"
restart: unless-stopped
environment:
TZ : "Europe/Rome"
networks:
- "external-net"
- "domus-assistant"
....
networks:
domus-assistant:
name: "domus-assistant"
internal: true
external-net:
name: "external-net"
driver: macvlan
driver_opts:
parent: bond0
ipam:
config:
- subnet: 192.168.1.0/24
gateway: 192.168.1.1
ip_range: 192.168.1.113/32
Please note that i don’t like “host” network and I used docker macvlan
network to expose HomeAssistant in my network. Also I use named volumes.
So in order to have a node-red link in HomeAssistant we need to add this lines in configuration.yaml:
panel_iframe:
nodered:
title: "Node-Red"
icon: "mdi:nodejs"
url: "http://domus-node-red:1880"
Well that will work, but you do not need to dockerise anything.
Just install node-red and the connector thingy.
EDIT When I say “connector thingy” I mean node-red-contrib-home-assistant-websocket
You know all this talk about docker is fine, but HA neglects to say that running docker on BTRFS file systems with snapshots is a bad idea, The two don’t work well together. Now seeing that Fedora is BTRFS by default and Debian has added BTRFS as a filesystem in their installer a little better information for new users might be forth coming from the HA
Just sayin.
Document it then.
Just sayin’