I decided to at the same time create a new user in Home Assistant specifically for Node Red. The first thing we need to do to connect Node Red to Home Assistant is generate an access token. Run docker-compose up -d and then navigate to the host's ip on port 1880. # node to provide a simple timeswitch node to schedule daily on/off events Dockerfileįrom there it was just a simple docker-compose file to get up and running. # Is it that time yet? This node compares a given time to the current time.
Otherwise the message is routed to output 2. If the current time falls within the range specified in the node configuration, the message is routed to output 1. # A simple Node-RED node that routes messages depending on the time. Node-red-contrib-home-assistant-websocket \
INSTEON CAMERA SETUP AASSISTANT INSTALL
RUN npm install node-red-contrib-actionflows \ Here's the Dockerfile I ended up going with: FROM nodered/node-red I think the only other one I needed was node-red-contrib-stoptimer. The most important one here being node-red-contrib-home-assistant-websocket. I started by looking around at the various Dockerfiles out there and tried to pick the various flows that it seemed like I might need installed. Installing Node Redīeing new to Node Red, I had zero idea what I was doing, but knew that I wanted to run it in Docker. Finally we will verify that messages are coming through properly. We will walkthrough installing Node Red in Docker and then setting it up to connect to Home Assistant.